Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001495/0.001495, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001728/0.001728, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.9865/0.9865, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 273 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.128e-05/2.261e-05, allocations: 6.312 kB / 273 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009793/0.009815, allocations: 14.02 MB / 287.1 MB, free: 3.777 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1327/0.1425, allocations: 19.73 MB / 306.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001878/0.1444, allocations: 138 kB / 306.9 MB, free: 10.08 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002372/0.1468, allocations: 1.141 MB / 308.1 MB, free: 9.547 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005994/0.1527, allocations: 2.433 MB / 310.5 MB, free: 8.105 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003871/0.1566, allocations: 1.444 MB / 311.9 MB, free: 7.117 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006511/0.1631, allocations: 6.776 MB / 318.7 MB, free: 3.805 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006153/0.1637, allocations: 260 kB / 319 MB, free: 3.633 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001564/0.1653, allocations: 1.57 MB / 320.5 MB, free: 2.098 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006597/0.166, allocations: 0.794 MB / 321.3 MB, free: 1.301 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1661, allocations: 75.98 kB / 321.4 MB, free: 1.227 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002614/0.1687, allocations: 1.21 MB / 322.6 MB, free: 16 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002361/0.1689, allocations: 327.3 kB / 322.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007007/0.1696, allocations: 0.7436 MB / 323.7 MB, free: 14.95 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003041/0.1727, allocations: 2.801 MB / 326.5 MB, free: 12.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1727, allocations: 0 / 326.5 MB, free: 12.14 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1727, allocations: 0 / 326.5 MB, free: 12.14 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.717e-05/0.1727, allocations: 0 / 326.5 MB, free: 12.14 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.003366/0.1761, allocations: 3.925 MB / 330.4 MB, free: 8.145 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.1761, allocations: 8.031 kB / 330.4 MB, free: 8.137 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003324/0.1764, allocations: 449.4 kB / 330.9 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002146/0.1786, allocations: 2.591 MB / 333.5 MB, free: 5.008 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.1786, allocations: 33 kB / 333.5 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.008e-05/0.1787, allocations: 55.95 kB / 333.5 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007044/0.1794, allocations: 0.5397 MB / 334.1 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1794, allocations: 0 / 334.1 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.081e-05/0.1795, allocations: 23.94 kB / 334.1 MB, free: 4.348 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.089e-05/0.1795, allocations: 19.98 kB / 334.1 MB, free: 4.328 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005975/0.1801, allocations: 490.4 kB / 334.6 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00344/0.1835, allocations: 2.863 MB / 337.5 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004276/0.184, allocations: 329.3 kB / 337.8 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/0.1844, allocations: 409.8 kB / 338.2 MB, free: 192 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01588/0.2003, allocations: 15.22 MB / 353.4 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003644/0.2006, allocations: 283.7 kB / 353.7 MB, free: 288 kB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.585e-06/0.2006, allocations: 0 / 353.7 MB, free: 288 kB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001074/0.2017, allocations: 0.8621 MB / 354.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.2017, allocations: 63.34 kB / 354.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003437/0.2052, allocations: 3.169 MB / 357.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.172e-05/0.2052, allocations: 41.69 kB / 357.8 MB, free: 12.1 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/0.2065, allocations: 1.666 MB / 359.5 MB, free: 10.42 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.2066, allocations: 170.6 kB / 359.7 MB, free: 10.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/0.2069, allocations: 240 kB / 359.9 MB, free: 10.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.207, allocations: 0.5082 MB / 360.4 MB, free: 9.496 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.2073, allocations: 133.9 kB / 360.5 MB, free: 9.363 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005176/0.2078, allocations: 0.6554 MB / 361.2 MB, free: 8.465 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008353/0.2086, allocations: 0.854 MB / 362 MB, free: 7.375 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.016e-06/0.2086, allocations: 4 kB / 362 MB, free: 7.371 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001411/0.2101, allocations: 1.068 MB / 363.1 MB, free: 6.301 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.2101, allocations: 8 kB / 363.1 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.292e-05/0.2102, allocations: 87.3 kB / 363.2 MB, free: 6.211 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.017e-05/0.2102, allocations: 20 kB / 363.2 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005374/0.2107, allocations: 204.3 kB / 363.4 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002753/0.211, allocations: 28.73 kB / 363.4 MB, free: 5.965 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000753/0.2118, allocations: 107.3 kB / 363.6 MB, free: 5.859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.507e-05/0.2119, allocations: 64 kB / 363.6 MB, free: 5.797 MB / 314.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.0003734/0.2122, allocations: 221 kB / 363.8 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.2126, allocations: 413.5 kB / 364.2 MB, free: 5.164 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00167/0.2143, allocations: 1.02 MB / 365.3 MB, free: 4.141 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.2143, allocations: 4 kB / 365.3 MB, free: 4.137 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2143, allocations: 7.875 kB / 365.3 MB, free: 4.129 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.2143, allocations: 3.984 kB / 365.3 MB, free: 4.125 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.2168, allocations: 2.082 MB / 367.4 MB, free: 1.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.843e-05/0.2169, allocations: 68 kB / 367.4 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003069/0.2172, allocations: 83.88 kB / 367.5 MB, free: 1.832 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.2172, allocations: 4 kB / 367.5 MB, free: 1.828 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.234e-05/0.2172, allocations: 39.92 kB / 367.5 MB, free: 1.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.2172, allocations: 8.062 kB / 367.6 MB, free: 1.781 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2172, allocations: 0 / 367.6 MB, free: 1.781 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.2185, allocations: 1.074 MB / 368.6 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005492/0.219, allocations: 443.1 kB / 369.1 MB, free: 248 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002502/0.2193, allocations: 15.94 kB / 369.1 MB, free: 232 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005073/0.2198, allocations: 19.98 kB / 369.1 MB, free: 212 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.2199, allocations: 63.86 kB / 369.2 MB, free: 148 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-05/0.22, allocations: 39.98 kB / 369.2 MB, free: 108 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002153/0.2221, allocations: 1.731 MB / 370.9 MB, free: 14.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2221, allocations: 3.938 kB / 370.9 MB, free: 14.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001243/0.2234, allocations: 0.593 MB / 371.5 MB, free: 13.78 MB / 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.001049/0.2244, allocations: 0.829 MB / 372.4 MB, free: 12.94 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00091/0.2253, allocations: 0.6214 MB / 373 MB, free: 12.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.2253, allocations: 0 / 373 MB, free: 12.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.2257, allocations: 352.3 kB / 373.3 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/0.2277, allocations: 0.6474 MB / 374 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00502/0.2327, allocations: 4.133 MB / 378.1 MB, free: 7.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.2331, allocations: 383.9 kB / 378.5 MB, free: 6.676 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008404/0.2339, allocations: 357.1 kB / 378.8 MB, free: 6.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002072/0.2341, allocations: 152.5 kB / 379 MB, free: 6.172 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/0.2341, allocations: 0 / 379 MB, free: 6.172 MB / 330.7 MB Notification: Performance of Templates: time 0.03974/0.2738, allocations: 32.61 MB / 411.6 MB, free: 6.086 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.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.4866601061075926]