Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.001291/0.001291, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 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.001493/0.001493, allocations: 168.8 kB / 24.91 MB, free: 9.199 MB / 18.57 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 0.9011/0.9011, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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.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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 3.938 kB / 273.5 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.572e-05/1.696e-05, allocations: 2.312 kB / 273.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008424/0.008441, allocations: 11.08 MB / 284.5 MB, free: 6.168 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00626/0.0147, allocations: 3.993 MB / 288.5 MB, free: 2.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009467/0.01565, allocations: 75.5 kB / 288.6 MB, free: 2.086 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.01704, allocations: 0.8401 MB / 289.4 MB, free: 1.238 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00193/0.01897, allocations: 1.044 MB / 290.5 MB, free: 192 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.09765/0.1166, allocations: 0.5103 MB / 291 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00371/0.1203, allocations: 3.346 MB / 294.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001773/0.1221, allocations: 1.459 MB / 295.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002875/0.125, allocations: 2.398 MB / 298.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001724/0.1267, allocations: 1.599 MB / 299.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004579/0.1272, allocations: 375.8 kB / 300.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008161/0.128, allocations: 0.5945 MB / 300.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005509/0.1285, allocations: 1.075 MB / 301.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009202/0.1294, allocations: 1.172 MB / 303 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001888/0.1313, allocations: 2.783 MB / 305.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1313, allocations: 0 / 305.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1313, allocations: 3.797 kB / 305.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.764e-05/0.1314, allocations: 0 / 305.8 MB, free: 12.22 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.002696/0.1341, allocations: 3.237 MB / 309 MB, free: 10.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.927e-05/0.1341, allocations: 7.812 kB / 309 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008679/0.135, allocations: 0.5561 MB / 309.6 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.1362, allocations: 1.226 MB / 310.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.074e-05/0.1362, allocations: 187.2 kB / 311 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001892/0.1364, allocations: 258 kB / 311.3 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.1379, allocations: 1.916 MB / 313.2 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.156e-05/0.1379, allocations: 4.5 kB / 313.2 MB, free: 7.426 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.1381, allocations: 107.1 kB / 313.3 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-05/0.1381, allocations: 116.9 kB / 313.4 MB, free: 7.207 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008964/0.139, allocations: 0.7202 MB / 314.1 MB, free: 6.465 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005458/0.1445, allocations: 6.754 MB / 320.9 MB, free: 15.94 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006986/0.1452, allocations: 0.6297 MB / 321.5 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005165/0.1457, allocations: 434.2 kB / 321.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001484/0.1459, allocations: 49.59 kB / 322 MB, free: 14.88 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.1459, allocations: 51.56 kB / 322 MB, free: 14.81 MB / 282.7 MB Notification: Performance of pre-optimization done (n=115): time 2.505e-06/0.1459, allocations: 0 / 322 MB, free: 14.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.004678/0.1506, allocations: 2.92 MB / 324.9 MB, free: 11.94 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.1506, allocations: 64.72 kB / 325 MB, free: 11.86 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000831/0.1514, allocations: 1.217 MB / 326.2 MB, free: 10.86 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/0.1515, allocations: 52.83 kB / 326.3 MB, free: 10.81 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004327/0.1519, allocations: 1.06 MB / 327.3 MB, free: 9.805 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/0.1522, allocations: 492 kB / 327.8 MB, free: 9.352 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002813/0.1524, allocations: 283.1 kB / 328.1 MB, free: 9.102 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.88e-05/0.1525, allocations: 301.1 kB / 328.4 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.1528, allocations: 186.7 kB / 328.6 MB, free: 8.621 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004828/0.1533, allocations: 0.6615 MB / 329.2 MB, free: 7.789 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008643/0.1541, allocations: 1.039 MB / 330.3 MB, free: 6.629 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.1541, allocations: 4 kB / 330.3 MB, free: 6.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001333/0.1555, allocations: 1.127 MB / 331.4 MB, free: 5.594 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.1555, allocations: 12 kB / 331.4 MB, free: 5.582 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.1555, allocations: 16 kB / 331.4 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004917/0.156, allocations: 251.9 kB / 331.7 MB, free: 5.316 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.1567, allocations: 345 kB / 332 MB, free: 5.004 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/0.159, allocations: 3.621 MB / 335.6 MB, free: 1.273 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000551/0.1595, allocations: 63.94 kB / 335.7 MB, free: 1.211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-05/0.1596, allocations: 59.98 kB / 335.8 MB, free: 1.152 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.0003747/0.16, allocations: 217.2 kB / 336 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.1602, allocations: 151.8 kB / 336.1 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.1613, allocations: 0.9116 MB / 337 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.1613, allocations: 16 kB / 337 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1613, allocations: 4 kB / 337 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.1614, allocations: 15.38 kB / 337.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/0.1645, allocations: 2.705 MB / 339.8 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.1645, allocations: 7.938 kB / 339.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004658/0.165, allocations: 210.8 kB / 340 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000606/0.1656, allocations: 326.7 kB / 340.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.327e-05/0.1657, allocations: 39.92 kB / 340.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00287/0.1686, allocations: 4.781 MB / 345.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.1686, allocations: 11.98 kB / 345.1 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001487/0.17, allocations: 1.344 MB / 346.5 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003561/0.1704, allocations: 234.7 kB / 346.7 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.1705, allocations: 39.98 kB / 346.7 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004277/0.171, allocations: 51.97 kB / 346.8 MB, free: 6.145 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.1711, allocations: 112.1 kB / 346.9 MB, free: 6.039 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.377e-05/0.1712, allocations: 35.92 kB / 346.9 MB, free: 6.004 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005247/0.1717, allocations: 0.6236 MB / 347.6 MB, free: 5.457 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1717, allocations: 0 / 347.6 MB, free: 5.457 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001203/0.1729, allocations: 0.539 MB / 348.1 MB, free: 4.918 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.0003035/0.1732, allocations: 197.7 kB / 348.3 MB, free: 4.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.1745, allocations: 1.145 MB / 349.4 MB, free: 3.637 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-05/0.1745, allocations: 21.81 kB / 349.5 MB, free: 3.617 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007684/0.1753, allocations: 0.8536 MB / 350.3 MB, free: 2.781 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000925/0.1762, allocations: 382 kB / 350.7 MB, free: 2.418 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00528/0.1815, allocations: 4.228 MB / 354.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.1819, allocations: 0.5829 MB / 355.5 MB, free: 13.51 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005291/0.1825, allocations: 230.5 kB / 355.7 MB, free: 13.28 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006504/0.1831, allocations: 409.1 kB / 356.1 MB, free: 12.88 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1831, allocations: 0 / 356.1 MB, free: 12.88 MB / 314.7 MB Notification: Performance of Templates: time 0.03306/0.2162, allocations: 26.92 MB / 383 MB, free: 2.422 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.445048173889518]