Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002196/0.002196, allocations: 214.7 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.577/1.577, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 51.91 kB / 379 MB, free: 2.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2055, allocations: 53.36 MB / 432.4 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04264/0.2481, allocations: 34.39 MB / 466.8 MB, free: 4.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02175/0.2699, allocations: 10.37 MB / 477.1 MB, free: 9.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006424/0.2763, allocations: 373.9 kB / 477.5 MB, free: 9.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02082/0.2971, allocations: 8.016 MB / 485.5 MB, free: 1.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0113/0.3084, allocations: 3.508 MB / 489 MB, free: 13.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006992/0.3154, allocations: 2.339 MB / 491.4 MB, free: 11.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01721/0.3326, allocations: 13.05 MB / 0.4926 GB, free: 14.42 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03046/0.3631, allocations: 17.36 MB / 0.5095 GB, free: 12.91 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01041/0.3735, allocations: 6.997 MB / 0.5164 GB, free: 5.891 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01238/0.3859, allocations: 7.915 MB / 0.5241 GB, free: 13.95 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004491/0.3904, allocations: 1.949 MB / 0.526 GB, free: 12 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006241/0.3966, allocations: 2.359 MB / 0.5283 GB, free: 9.641 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005223/0.4018, allocations: 3.963 MB / 0.5322 GB, free: 5.668 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3532/0.755, allocations: 5.905 MB / 0.538 GB, free: 44.12 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.024/0.779, allocations: 26.07 MB / 0.5634 GB, free: 39.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.779, allocations: 0.9062 kB / 0.5634 GB, free: 39.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.779, allocations: 0 / 0.5634 GB, free: 39.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005433/0.7795, allocations: 3.344 kB / 0.5634 GB, free: 39.86 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03599/0.8155, allocations: 15.24 MB / 0.5783 GB, free: 31.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.8156, allocations: 10.41 kB / 0.5783 GB, free: 31.7 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03207/0.8476, allocations: 6.123 MB / 0.5843 GB, free: 28.88 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01634/0.864, allocations: 8.101 MB / 0.5922 GB, free: 23.85 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005567/0.8645, allocations: 0.903 MB / 0.5931 GB, free: 23.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004023/0.8686, allocations: 1.201 MB / 0.5943 GB, free: 22.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0373/0.9059, allocations: 18.92 MB / 0.6127 GB, free: 3.863 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003743/0.9062, allocations: 15.91 kB / 0.6127 GB, free: 3.848 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003408/0.9097, allocations: 0.4969 MB / 0.6132 GB, free: 3.359 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004689/0.9101, allocations: 0.6408 MB / 0.6139 GB, free: 2.719 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03653/0.9467, allocations: 16.75 MB / 0.6302 GB, free: 1.961 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1026/1.049, allocations: 50.65 MB / 0.6797 GB, free: 15.11 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01849/1.068, allocations: 10.27 MB / 0.6897 GB, free: 6.492 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005766/1.074, allocations: 3.398 MB / 0.693 GB, free: 3.082 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01678/1.09, allocations: 7.684 MB / 0.7005 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.715e-05/1.09, allocations: 69.31 kB / 0.7006 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 6.092e-06/1.09, allocations: 0 / 0.7006 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.03674/1.127, allocations: 17.24 MB / 0.7174 GB, free: 10.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.068e-05/1.127, allocations: 98.41 kB / 0.7175 GB, free: 10.09 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007136/1.134, allocations: 4.791 MB / 0.7222 GB, free: 5.293 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003742/1.135, allocations: 89.7 kB / 0.7223 GB, free: 5.199 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004062/1.139, allocations: 5.654 MB / 0.7278 GB, free: 15.53 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001378/1.14, allocations: 1.421 MB / 0.7292 GB, free: 14.13 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00212/1.142, allocations: 1.331 MB / 0.7305 GB, free: 12.79 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.0001278/1.142, allocations: 301.1 kB / 0.7308 GB, free: 12.49 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004711/1.147, allocations: 2.914 MB / 0.7336 GB, free: 9.574 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007252/1.154, allocations: 5.93 MB / 0.7394 GB, free: 2.281 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01299/1.167, allocations: 9.458 MB / 0.7487 GB, free: 7.801 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-05/1.167, allocations: 28 kB / 0.7487 GB, free: 7.773 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2127/1.38, allocations: 9.829 MB / 0.7583 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.958e-05/1.38, allocations: 46.84 kB / 0.7583 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001704/1.38, allocations: 101 kB / 0.7584 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002582/1.383, allocations: 0.9409 MB / 0.7593 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00592/1.389, allocations: 1.589 MB / 0.7609 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009782/1.399, allocations: 9.671 MB / 0.7703 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004551/1.403, allocations: 411.2 kB / 0.7707 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004527/1.404, allocations: 356.5 kB / 0.7711 GB, free: 194.7 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005107/1.409, allocations: 4.251 MB / 0.7752 GB, free: 193.3 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008126/1.41, allocations: 0.5076 MB / 0.7757 GB, free: 193.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009136/1.419, allocations: 6.432 MB / 0.782 GB, free: 190.7 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.94e-05/1.419, allocations: 38.09 kB / 0.782 GB, free: 190.7 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/1.419, allocations: 15.25 kB / 0.7821 GB, free: 190.7 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.92e-05/1.419, allocations: 18.61 kB / 0.7821 GB, free: 190.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01946/1.438, allocations: 13.3 MB / 0.7951 GB, free: 185.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/1.438, allocations: 3.719 kB / 0.7951 GB, free: 185.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003147/1.441, allocations: 0.757 MB / 0.7958 GB, free: 185.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00198/1.443, allocations: 0.7781 MB / 0.7966 GB, free: 185.2 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000246/1.444, allocations: 96.31 kB / 0.7967 GB, free: 185.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007979/1.452, allocations: 8.841 MB / 0.8053 GB, free: 177.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/1.452, allocations: 6.891 kB / 0.8053 GB, free: 177.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01131/1.463, allocations: 9.49 MB / 0.8146 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002498/1.465, allocations: 0.9846 MB / 0.8155 GB, free: 169 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006593/1.466, allocations: 78.88 kB / 0.8156 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/1.468, allocations: 216 kB / 0.8158 GB, free: 168.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004861/1.469, allocations: 283.9 kB / 0.8161 GB, free: 168.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002553/1.469, allocations: 116.2 kB / 0.8162 GB, free: 168.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.003637/1.473, allocations: 3.06 MB / 0.8192 GB, free: 166 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.01e-07/1.473, allocations: 4 kB / 0.8192 GB, free: 166 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.005292/1.478, allocations: 1.88 MB / 0.821 GB, free: 164.1 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005002/1.478, allocations: 253 kB / 0.8213 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.008913/1.487, allocations: 7.221 MB / 0.8283 GB, free: 157 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/1.487, allocations: 4 kB / 0.8283 GB, free: 157 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.003977/1.491, allocations: 3.177 MB / 0.8314 GB, free: 153.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005073/1.496, allocations: 1.17 MB / 0.8326 GB, free: 152.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02654/1.523, allocations: 20.06 MB / 0.8522 GB, free: 132.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005643/1.529, allocations: 6.93 MB / 0.8589 GB, free: 125.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.00499/1.534, allocations: 2.115 MB / 0.861 GB, free: 123.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/1.535, allocations: 403.3 kB / 0.8614 GB, free: 123.1 MB / 0.5763 GB Notification: Performance of SimCode: time 8.92e-07/1.535, allocations: 0 / 0.8614 GB, free: 123.1 MB / 0.5763 GB Notification: Performance of Templates: time 0.111/1.646, allocations: 80.54 MB / 0.94 GB, free: 43.49 MB / 0.5763 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.396486013996764]