Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.002488/0.002488, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.002898/0.002898, allocations: 162.4 kB / 25.03 MB, free: 8.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 158.6 MB / 186.8 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 250.3 MB, free: 7.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.673e-05/2.818e-05, allocations: 6.312 kB / 250.4 MB, free: 7.84 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01708/0.01711, allocations: 13.31 MB / 263.7 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02813/0.04524, allocations: 18.77 MB / 282.4 MB, free: 7.629 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002241/0.04748, allocations: 142.4 kB / 282.6 MB, free: 7.488 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003136/0.05062, allocations: 1.11 MB / 283.7 MB, free: 6.371 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007393/0.05801, allocations: 2.389 MB / 286.1 MB, free: 3.965 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004186/0.0622, allocations: 1.398 MB / 287.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01119/0.07339, allocations: 6.558 MB / 294 MB, free: 11.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005946/0.07399, allocations: 257.9 kB / 294.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001955/0.07594, allocations: 1.438 MB / 295.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.07716, allocations: 0.7708 MB / 296.5 MB, free: 9.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002198/0.07738, allocations: 72 kB / 296.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002951/0.08033, allocations: 1.085 MB / 297.6 MB, free: 8.324 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003777/0.08071, allocations: 333.5 kB / 298 MB, free: 7.996 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.08175, allocations: 0.7437 MB / 298.7 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005062/0.08681, allocations: 3.799 MB / 302.5 MB, free: 3.438 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.08681, allocations: 4 kB / 302.5 MB, free: 3.434 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.08682, allocations: 0 / 302.5 MB, free: 3.434 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.798e-05/0.08684, allocations: 0 / 302.5 MB, free: 3.434 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006493/0.09334, allocations: 4.089 MB / 306.6 MB, free: 15.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.09338, allocations: 11.98 kB / 306.6 MB, free: 15.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005797/0.09396, allocations: 461.3 kB / 307.1 MB, free: 14.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004256/0.09821, allocations: 2.607 MB / 309.7 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.841e-05/0.09826, allocations: 40.98 kB / 309.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.09839, allocations: 51.95 kB / 309.8 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.09977, allocations: 0.6484 MB / 310.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.09979, allocations: 3.938 kB / 310.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.192e-05/0.09986, allocations: 16 kB / 310.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.908e-05/0.09989, allocations: 19.98 kB / 310.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001557/0.1014, allocations: 0.707 MB / 311.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006847/0.1083, allocations: 3.355 MB / 314.5 MB, free: 7.195 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.1094, allocations: 441.3 kB / 314.9 MB, free: 6.754 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009286/0.1103, allocations: 0.4899 MB / 315.4 MB, free: 6.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03038/0.1407, allocations: 15.42 MB / 330.9 MB, free: 6.445 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007823/0.1414, allocations: 363.4 kB / 331.2 MB, free: 6.078 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.294e-06/0.1414, allocations: 0 / 331.2 MB, free: 6.078 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.002348/0.1438, allocations: 1.073 MB / 332.3 MB, free: 4.996 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.1438, allocations: 55.41 kB / 332.3 MB, free: 4.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005779/0.1496, allocations: 3.968 MB / 336.3 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.898e-05/0.1497, allocations: 37.7 kB / 336.3 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001976/0.1517, allocations: 1.803 MB / 338.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.1519, allocations: 182.6 kB / 338.3 MB, free: 14.9 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004157/0.1523, allocations: 252 kB / 338.6 MB, free: 14.64 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003404/0.1527, allocations: 0.5277 MB / 339.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005618/0.1532, allocations: 221.9 kB / 339.3 MB, free: 13.89 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.1543, allocations: 0.7487 MB / 340.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.1559, allocations: 1.041 MB / 341.1 MB, free: 11.63 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.1559, allocations: 4 kB / 341.1 MB, free: 11.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002624/0.1586, allocations: 1.247 MB / 342.4 MB, free: 10.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.1586, allocations: 16.59 kB / 342.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001269/0.1587, allocations: 83.94 kB / 342.5 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.377e-05/0.1587, allocations: 20 kB / 342.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007372/0.1595, allocations: 207.6 kB / 342.7 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.982e-05/0.1595, allocations: 23.92 kB / 342.7 MB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009109/0.1604, allocations: 103.3 kB / 342.8 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.1606, allocations: 68 kB / 342.9 MB, free: 9.863 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008405/0.1614, allocations: 480.2 kB / 343.3 MB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004903/0.1619, allocations: 417.5 kB / 343.7 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002746/0.1646, allocations: 1.175 MB / 344.9 MB, free: 7.793 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.1646, allocations: 4 kB / 344.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1646, allocations: 0 / 344.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1646, allocations: 0 / 344.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004377/0.169, allocations: 2.555 MB / 347.5 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001166/0.1691, allocations: 72 kB / 347.6 MB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004518/0.1696, allocations: 87.81 kB / 347.6 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.1696, allocations: 12.05 kB / 347.6 MB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-05/0.1697, allocations: 32 kB / 347.7 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1697, allocations: 0 / 347.7 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.1697, allocations: 4 kB / 347.7 MB, free: 4.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002556/0.1722, allocations: 1.324 MB / 349 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009551/0.1732, allocations: 443.1 kB / 349.4 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002908/0.1735, allocations: 15.98 kB / 349.5 MB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006232/0.1741, allocations: 23.92 kB / 349.5 MB, free: 3.137 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.1743, allocations: 67.92 kB / 349.5 MB, free: 3.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.846e-05/0.1744, allocations: 36 kB / 349.6 MB, free: 3.035 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003234/0.1776, allocations: 2.228 MB / 351.8 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1776, allocations: 0 / 351.8 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001425/0.179, allocations: 0.5969 MB / 352.4 MB, free: 216 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1001/0.2791, allocations: 0.8315 MB / 353.2 MB, free: 106.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.2806, allocations: 0.7954 MB / 354 MB, free: 106.2 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2806, allocations: 0 / 354 MB, free: 106.2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005824/0.2812, allocations: 422.7 kB / 354.4 MB, free: 106 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/0.2832, allocations: 0.5455 MB / 355 MB, free: 106 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004719/0.2879, allocations: 4.423 MB / 359.4 MB, free: 104 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006849/0.2886, allocations: 1.118 MB / 360.5 MB, free: 103.3 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008187/0.2894, allocations: 357.9 kB / 360.9 MB, free: 103 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.2896, allocations: 152.5 kB / 361 MB, free: 102.9 MB / 330.7 MB Notification: Performance of SimCode: time 1.483e-06/0.2896, allocations: 4 kB / 361 MB, free: 102.9 MB / 330.7 MB Notification: Performance of Templates: time 0.0433/0.3329, allocations: 32.59 MB / 393.6 MB, free: 70.33 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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: 5.467435593018308]