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.0009959/0.0009959, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009277/0.0009277, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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 0.9725/0.9725, allocations: 173.3 MB / 201.1 MB, free: 9.34 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 2.023e-06/2.023e-06, allocations: 0 / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.199e-05/3.401e-05, allocations: 10.25 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01276/0.01279, allocations: 14.03 MB / 282 MB, free: 8.348 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1717/0.1845, allocations: 19.74 MB / 301.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003245/0.1878, allocations: 135.5 kB / 301.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003913/0.1917, allocations: 1.143 MB / 303 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01055/0.2022, allocations: 2.429 MB / 305.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006552/0.2088, allocations: 1.447 MB / 306.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008615/0.2174, allocations: 6.82 MB / 313.7 MB, free: 9.223 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007154/0.2181, allocations: 260.5 kB / 314 MB, free: 9.055 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001932/0.2201, allocations: 1.574 MB / 315.6 MB, free: 8.277 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009396/0.221, allocations: 0.7922 MB / 316.3 MB, free: 7.969 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002343/0.2212, allocations: 73.5 kB / 316.4 MB, free: 7.969 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003507/0.2247, allocations: 1.201 MB / 317.6 MB, free: 7.223 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.2249, allocations: 336.6 kB / 317.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00095/0.2259, allocations: 0.7422 MB / 318.7 MB, free: 6.176 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003438/0.2293, allocations: 2.794 MB / 321.5 MB, free: 3.566 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2293, allocations: 0 / 321.5 MB, free: 3.566 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2293, allocations: 0 / 321.5 MB, free: 3.566 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.532e-05/0.2294, allocations: 0 / 321.5 MB, free: 3.566 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.00296/0.2324, allocations: 3.918 MB / 325.4 MB, free: 15.58 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2324, allocations: 8.922 kB / 325.4 MB, free: 15.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004352/0.2328, allocations: 453.4 kB / 325.9 MB, free: 15.13 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002719/0.2356, allocations: 2.594 MB / 328.4 MB, free: 12.44 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.2356, allocations: 36.98 kB / 328.5 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-05/0.2357, allocations: 55.95 kB / 328.5 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007308/0.2364, allocations: 0.5397 MB / 329.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.2364, allocations: 0 / 329.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.515e-05/0.2365, allocations: 20 kB / 329.1 MB, free: 11.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.2365, allocations: 23.92 kB / 329.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005888/0.2371, allocations: 490.4 kB / 329.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003297/0.2404, allocations: 2.863 MB / 332.5 MB, free: 8.352 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004429/0.2408, allocations: 321.4 kB / 332.8 MB, free: 8.027 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004193/0.2412, allocations: 413.8 kB / 333.2 MB, free: 7.617 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01691/0.2582, allocations: 15.21 MB / 348.4 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003626/0.2585, allocations: 279.7 kB / 348.7 MB, free: 7.738 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.054e-06/0.2585, allocations: 0 / 348.7 MB, free: 7.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001115/0.2596, allocations: 0.8621 MB / 349.5 MB, free: 6.867 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.2597, allocations: 63.33 kB / 349.6 MB, free: 6.793 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002597/0.2623, allocations: 3.169 MB / 352.8 MB, free: 3.594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.2623, allocations: 37.7 kB / 352.8 MB, free: 3.551 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.2634, allocations: 1.666 MB / 354.5 MB, free: 1.875 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.2635, allocations: 178.6 kB / 354.6 MB, free: 1.699 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.2637, allocations: 232 kB / 354.9 MB, free: 1.465 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2638, allocations: 0.5121 MB / 355.4 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.264, allocations: 129.9 kB / 355.5 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007181/0.2647, allocations: 0.6472 MB / 356.1 MB, free: 15.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007353/0.2655, allocations: 0.8578 MB / 357 MB, free: 14.83 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.2655, allocations: 4 kB / 357 MB, free: 14.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001061/0.2665, allocations: 1.076 MB / 358.1 MB, free: 13.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.2666, allocations: 16.56 kB / 358.1 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.423e-05/0.2666, allocations: 84.83 kB / 358.2 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.2667, allocations: 16 kB / 358.2 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004013/0.2671, allocations: 203.6 kB / 358.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/0.2671, allocations: 19.94 kB / 358.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004999/0.2676, allocations: 107.3 kB / 358.5 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.796e-05/0.2677, allocations: 64.69 kB / 358.6 MB, free: 13.25 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.0003107/0.268, allocations: 220.2 kB / 358.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002505/0.2682, allocations: 413.5 kB / 359.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001244/0.2695, allocations: 1.033 MB / 360.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.2695, allocations: 4 kB / 360.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2695, allocations: 4 kB / 360.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2695, allocations: 7.922 kB / 360.3 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002478/0.272, allocations: 2.073 MB / 362.3 MB, free: 9.434 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.426e-05/0.272, allocations: 72 kB / 362.4 MB, free: 9.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.2723, allocations: 83.88 kB / 362.5 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.2723, allocations: 8 kB / 362.5 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.466e-05/0.2723, allocations: 35.98 kB / 362.5 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.2723, allocations: 3.938 kB / 362.5 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.2723, allocations: 4 kB / 362.5 MB, free: 9.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.2734, allocations: 1.082 MB / 363.6 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004788/0.2739, allocations: 443.1 kB / 364 MB, free: 7.684 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.274, allocations: 8 kB / 364.1 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003282/0.2744, allocations: 23.92 kB / 364.1 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.2745, allocations: 63.92 kB / 364.1 MB, free: 7.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.838e-05/0.2745, allocations: 36 kB / 364.2 MB, free: 7.555 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00165/0.2762, allocations: 1.735 MB / 365.9 MB, free: 5.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2762, allocations: 0 / 365.9 MB, free: 5.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001117/0.2773, allocations: 0.593 MB / 366.5 MB, free: 5.227 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.0009386/0.2782, allocations: 0.8237 MB / 367.3 MB, free: 4.391 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007378/0.279, allocations: 0.625 MB / 367.9 MB, free: 3.738 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.279, allocations: 0 / 367.9 MB, free: 3.738 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003059/0.2793, allocations: 356.4 kB / 368.3 MB, free: 3.355 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.2807, allocations: 0.6355 MB / 368.9 MB, free: 2.723 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004524/0.2853, allocations: 4.129 MB / 373.1 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.2855, allocations: 379.9 kB / 373.4 MB, free: 14.13 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006485/0.2862, allocations: 357.1 kB / 373.8 MB, free: 13.78 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.2863, allocations: 152.5 kB / 373.9 MB, free: 13.63 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.2863, allocations: 0 / 373.9 MB, free: 13.63 MB / 330.7 MB Notification: Performance of Templates: time 0.04463/0.331, allocations: 32.57 MB / 406.5 MB, free: 13.57 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.720612754113972]