Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 76.06 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 144.4 kB / 24.97 MB, free: 8.926 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.025/1.025, allocations: 173.4 MB / 201.5 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 3.938 kB / 268.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.018e-05/2.18e-05, allocations: 9.625 kB / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009419/0.009441, allocations: 14 MB / 282.1 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1193/0.1287, allocations: 19.7 MB / 301.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.1298, allocations: 140.1 kB / 301.9 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.1316, allocations: 1.142 MB / 303 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003763/0.1354, allocations: 2.424 MB / 305.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002458/0.1379, allocations: 1.45 MB / 306.9 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004801/0.1427, allocations: 6.695 MB / 313.6 MB, free: 9.262 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003928/0.1431, allocations: 264.1 kB / 313.9 MB, free: 9.098 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.1441, allocations: 1.559 MB / 315.4 MB, free: 8.332 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005753/0.1447, allocations: 0.801 MB / 316.2 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.145e-05/0.1448, allocations: 74.81 kB / 316.3 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001536/0.1463, allocations: 1.206 MB / 317.5 MB, free: 7.461 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.1465, allocations: 330.8 kB / 317.8 MB, free: 7.148 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004538/0.1469, allocations: 0.7377 MB / 318.6 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001758/0.1487, allocations: 2.795 MB / 321.4 MB, free: 3.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1487, allocations: 0 / 321.4 MB, free: 3.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1487, allocations: 0 / 321.4 MB, free: 3.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.907e-05/0.1487, allocations: 0 / 321.4 MB, free: 3.93 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002326/0.151, allocations: 3.919 MB / 325.3 MB, free: 15.95 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.1511, allocations: 8.922 kB / 325.3 MB, free: 15.94 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003286/0.1514, allocations: 453.4 kB / 325.7 MB, free: 15.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002096/0.1535, allocations: 2.596 MB / 328.3 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.1535, allocations: 37 kB / 328.4 MB, free: 12.85 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.736e-05/0.1536, allocations: 55.95 kB / 328.4 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006708/0.1543, allocations: 0.5319 MB / 329 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1543, allocations: 0 / 329 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.543e-05/0.1543, allocations: 20 kB / 329 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.1544, allocations: 23.92 kB / 329 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005906/0.155, allocations: 490.4 kB / 329.5 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003/0.158, allocations: 2.865 MB / 332.3 MB, free: 8.84 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004237/0.1584, allocations: 321.3 kB / 332.7 MB, free: 8.512 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004112/0.1588, allocations: 425.8 kB / 333.1 MB, free: 8.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01427/0.1731, allocations: 15.2 MB / 348.3 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003057/0.1734, allocations: 275.8 kB / 348.5 MB, free: 8.281 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.573e-06/0.1734, allocations: 0 / 348.5 MB, free: 8.281 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0008938/0.1743, allocations: 0.8738 MB / 349.4 MB, free: 7.398 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.1743, allocations: 55.41 kB / 349.5 MB, free: 7.332 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002294/0.1766, allocations: 3.173 MB / 352.6 MB, free: 4.133 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.1766, allocations: 37.7 kB / 352.7 MB, free: 4.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009703/0.1776, allocations: 1.666 MB / 354.3 MB, free: 2.414 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.1777, allocations: 174.6 kB / 354.5 MB, free: 2.242 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.1779, allocations: 240 kB / 354.7 MB, free: 2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.178, allocations: 0.5082 MB / 355.3 MB, free: 1.484 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.1782, allocations: 129.9 kB / 355.4 MB, free: 1.355 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004047/0.1786, allocations: 0.651 MB / 356 MB, free: 468 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006468/0.1793, allocations: 0.854 MB / 356.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.1793, allocations: 7.938 kB / 356.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0009894/0.1802, allocations: 1.08 MB / 358 MB, free: 14.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.1803, allocations: 12.22 kB / 358 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.614e-05/0.1803, allocations: 84 kB / 358.1 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.1803, allocations: 16 kB / 358.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003929/0.1807, allocations: 199.7 kB / 358.3 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.752e-05/0.1808, allocations: 31.23 kB / 358.3 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004188/0.1812, allocations: 103.3 kB / 358.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.667e-05/0.1812, allocations: 64 kB / 358.5 MB, free: 13.78 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.0002992/0.1815, allocations: 221.8 kB / 358.7 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/0.1818, allocations: 413.5 kB / 359.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.183, allocations: 1.026 MB / 360.1 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.183, allocations: 8 kB / 360.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.183, allocations: 0 / 360.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.361e-06/0.183, allocations: 7.922 kB / 360.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.1848, allocations: 2.07 MB / 362.2 MB, free: 9.977 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.454e-05/0.1849, allocations: 71.94 kB / 362.3 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002221/0.1851, allocations: 91.94 kB / 362.4 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1851, allocations: 4 kB / 362.4 MB, free: 9.812 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.46e-05/0.1852, allocations: 31.98 kB / 362.4 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1852, allocations: 3.938 kB / 362.4 MB, free: 9.777 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1852, allocations: 0 / 362.4 MB, free: 9.777 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009042/0.1861, allocations: 1.083 MB / 363.5 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/0.1864, allocations: 443.1 kB / 363.9 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/0.1866, allocations: 8 kB / 363.9 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003272/0.1869, allocations: 31.94 kB / 364 MB, free: 8.188 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.187, allocations: 59.94 kB / 364 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/0.1871, allocations: 39.98 kB / 364.1 MB, free: 8.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001386/0.1885, allocations: 1.727 MB / 365.8 MB, free: 6.363 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1885, allocations: 0 / 365.8 MB, free: 6.363 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007894/0.1893, allocations: 0.5891 MB / 366.4 MB, free: 5.773 MB / 314.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.0007602/0.19, allocations: 0.8354 MB / 367.2 MB, free: 4.926 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000636/0.1906, allocations: 0.625 MB / 367.8 MB, free: 4.273 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.1906, allocations: 0 / 367.8 MB, free: 4.273 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.1909, allocations: 348.1 kB / 368.2 MB, free: 3.902 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.1923, allocations: 0.6333 MB / 368.8 MB, free: 3.273 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003658/0.196, allocations: 4.129 MB / 372.9 MB, free: 15.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.1962, allocations: 387.9 kB / 373.3 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005608/0.1968, allocations: 357.1 kB / 373.7 MB, free: 14.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.1969, allocations: 152.5 kB / 373.8 MB, free: 14.17 MB / 330.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1969, allocations: 4 kB / 373.8 MB, free: 14.16 MB / 330.7 MB Notification: Performance of Templates: time 0.0346/0.2315, allocations: 32.57 MB / 406.4 MB, free: 14.11 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.508285481017083]