Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007298/0.0007298, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001085/0.001815, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006901/0.0006901, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009493/0.001639, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9276/0.9276, allocations: 177.5 MB / 190 MB, free: 4.785 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09244/1.02, allocations: 53.87 MB / 243.9 MB, free: 14.84 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.791e-05/1.932e-05, allocations: 5.406 kB / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008335/0.008354, allocations: 11.22 MB / 256.4 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007043/0.0154, allocations: 4.09 MB / 260.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001605/0.017, allocations: 79.5 kB / 260.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.01889, allocations: 0.8557 MB / 261.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002366/0.02125, allocations: 1.032 MB / 262.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000953/0.02221, allocations: 0.5225 MB / 263 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003162/0.02537, allocations: 3.353 MB / 266.4 MB, free: 8.301 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001756/0.02712, allocations: 1.458 MB / 267.8 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00339/0.03051, allocations: 2.636 MB / 270.5 MB, free: 4.102 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002011/0.03252, allocations: 1.602 MB / 272.1 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005299/0.03305, allocations: 376 kB / 272.4 MB, free: 2.129 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009898/0.03404, allocations: 0.6049 MB / 273 MB, free: 1.523 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007053/0.03475, allocations: 0.8689 MB / 273.9 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1067/0.1414, allocations: 0.9613 MB / 274.9 MB, free: 7.453 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003246/0.1447, allocations: 2.604 MB / 277.5 MB, free: 7.227 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.12e-05/0.1447, allocations: 3.156 kB / 277.5 MB, free: 7.227 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1447, allocations: 0 / 277.5 MB, free: 7.227 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001169/0.1448, allocations: 0 / 277.5 MB, free: 7.227 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.005622/0.1504, allocations: 3.858 MB / 281.3 MB, free: 5.867 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1505, allocations: 10.7 kB / 281.3 MB, free: 5.867 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00139/0.1519, allocations: 0.6288 MB / 282 MB, free: 5.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/0.1538, allocations: 1.23 MB / 283.2 MB, free: 5.293 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.119e-05/0.1539, allocations: 194.1 kB / 283.4 MB, free: 5.285 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002604/0.1542, allocations: 257.1 kB / 283.6 MB, free: 5.281 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.1568, allocations: 1.912 MB / 285.6 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.477e-05/0.1568, allocations: 6.594 kB / 285.6 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001505/0.157, allocations: 103.2 kB / 285.7 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/0.1571, allocations: 113.5 kB / 285.8 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.1583, allocations: 0.7189 MB / 286.5 MB, free: 4.793 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008353/0.1666, allocations: 6.786 MB / 293.3 MB, free: 2.211 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008822/0.1675, allocations: 0.6381 MB / 293.9 MB, free: 2.121 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006077/0.1681, allocations: 434 kB / 294.3 MB, free: 2.105 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001809/0.1683, allocations: 56.92 kB / 294.4 MB, free: 2.105 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.1683, allocations: 49.75 kB / 294.4 MB, free: 2.066 MB / 266.7 MB Notification: Performance of pre-optimization done (n=115): time 3.356e-06/0.1683, allocations: 0 / 294.4 MB, free: 2.066 MB / 266.7 MB Notification: Performance of matching and sorting (n=134): time 0.006134/0.1745, allocations: 2.937 MB / 297.4 MB, free: 1.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.1745, allocations: 68.92 kB / 297.4 MB, free: 1.438 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009438/0.1754, allocations: 1.228 MB / 298.7 MB, free: 1.234 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.743e-05/0.1755, allocations: 50.67 kB / 298.7 MB, free: 1.199 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003662/0.1759, allocations: 1.063 MB / 299.8 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002183/0.1761, allocations: 487.4 kB / 300.3 MB, free: 172 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003288/0.1764, allocations: 290.8 kB / 300.5 MB, free: 52 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.293e-05/0.1765, allocations: 308.4 kB / 300.9 MB, free: 15.75 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.1768, allocations: 184.5 kB / 301 MB, free: 15.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000562/0.1774, allocations: 0.6638 MB / 301.7 MB, free: 14.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.1785, allocations: 1.089 MB / 302.8 MB, free: 13.65 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.1786, allocations: 4 kB / 302.8 MB, free: 13.65 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001772/0.1803, allocations: 1.124 MB / 303.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1804, allocations: 16.28 kB / 303.9 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.338e-05/0.1804, allocations: 16 kB / 303.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006391/0.181, allocations: 253.2 kB / 304.2 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.1821, allocations: 403.9 kB / 304.6 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003152/0.1852, allocations: 3.612 MB / 308.2 MB, free: 8.234 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009508/0.1862, allocations: 71.64 kB / 308.3 MB, free: 8.168 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.1863, allocations: 56 kB / 308.3 MB, free: 8.113 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00068/0.187, allocations: 219.8 kB / 308.5 MB, free: 7.914 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002928/0.1872, allocations: 155.8 kB / 308.7 MB, free: 7.762 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.1887, allocations: 0.9171 MB / 309.6 MB, free: 6.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.508e-05/0.1887, allocations: 16 kB / 309.6 MB, free: 6.824 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1887, allocations: 0 / 309.6 MB, free: 6.824 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.1887, allocations: 11.92 kB / 309.6 MB, free: 6.812 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004333/0.193, allocations: 2.703 MB / 312.3 MB, free: 4.391 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.1931, allocations: 7.938 kB / 312.3 MB, free: 4.383 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007346/0.1938, allocations: 249.5 kB / 312.6 MB, free: 4.152 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000462/0.1942, allocations: 234.2 kB / 312.8 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008033/0.1951, allocations: 324.1 kB / 313.1 MB, free: 3.602 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.559e-05/0.1951, allocations: 35.27 kB / 313.2 MB, free: 3.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003441/0.1986, allocations: 4.802 MB / 318 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.1986, allocations: 4 kB / 318 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.2007, allocations: 1.36 MB / 319.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/0.2009, allocations: 32 kB / 319.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006203/0.2015, allocations: 62.94 kB / 319.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.2017, allocations: 104.2 kB / 319.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.241e-05/0.2018, allocations: 43.67 kB / 319.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007064/0.2025, allocations: 0.6301 MB / 320.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2025, allocations: 0 / 320.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001707/0.2042, allocations: 0.5273 MB / 320.7 MB, free: 11.83 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003757/0.2046, allocations: 206.6 kB / 320.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.2062, allocations: 1.158 MB / 322.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.773e-05/0.2062, allocations: 36.42 kB / 322.1 MB, free: 10.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.2073, allocations: 0.9294 MB / 323.1 MB, free: 9.594 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00265/0.21, allocations: 3.582 MB / 326.6 MB, free: 5.324 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0209/0.2309, allocations: 4.368 MB / 331 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005421/0.2314, allocations: 0.5762 MB / 331.6 MB, free: 304 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000858/0.2323, allocations: 234.6 kB / 331.8 MB, free: 64 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006895/0.233, allocations: 405.1 kB / 332.2 MB, free: 15.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.233, allocations: 4 kB / 332.2 MB, free: 15.66 MB / 314.7 MB Notification: Performance of Templates: time 0.03575/0.2687, allocations: 27.65 MB / 359.9 MB, free: 4.449 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4829367361962795]