Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.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.001664/0.001664, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002121/0.002121, allocations: 210.8 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.513/1.513, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 43.92 kB / 378.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2577, allocations: 53.37 MB / 431.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008533/0.2662, allocations: 6.917 MB / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02236/0.2886, allocations: 16.7 MB / 455.2 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.2897, allocations: 94.94 kB / 455.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002181/0.2919, allocations: 0.7613 MB / 456 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005527/0.2974, allocations: 1.811 MB / 457.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004166/0.3016, allocations: 1.324 MB / 459.2 MB, free: 11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005469/0.307, allocations: 3.318 MB / 462.5 MB, free: 7.668 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000338/0.3074, allocations: 120.9 kB / 462.6 MB, free: 7.523 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009102/0.3083, allocations: 0.595 MB / 463.2 MB, free: 6.926 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007443/0.309, allocations: 0.5356 MB / 463.8 MB, free: 6.387 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.3091, allocations: 40 kB / 463.8 MB, free: 6.348 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003245/0.3124, allocations: 1.175 MB / 465 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.3126, allocations: 170.8 kB / 465.1 MB, free: 5.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005591/0.3131, allocations: 0.5007 MB / 465.6 MB, free: 4.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003045/0.3162, allocations: 2.241 MB / 467.9 MB, free: 2.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3162, allocations: 4 kB / 467.9 MB, free: 2.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3162, allocations: 0 / 467.9 MB, free: 2.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.3162, allocations: 0 / 467.9 MB, free: 2.246 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00311/0.3193, allocations: 1.991 MB / 469.9 MB, free: 216 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3193, allocations: 11.97 kB / 469.9 MB, free: 204 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000253/0.3196, allocations: 206.9 kB / 470.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002029/0.3216, allocations: 1.257 MB / 471.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.3216, allocations: 20.66 kB / 471.4 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.335e-05/0.3217, allocations: 24 kB / 471.4 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008907/0.3226, allocations: 437.8 kB / 471.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.3226, allocations: 3.75 kB / 471.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.3227, allocations: 4 kB / 471.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.3227, allocations: 19.98 kB / 471.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.3237, allocations: 470.4 kB / 472.3 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002688/0.3264, allocations: 1.421 MB / 473.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008989/0.3273, allocations: 343.3 kB / 474.1 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007133/0.328, allocations: 369.9 kB / 474.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01356/0.3416, allocations: 6.996 MB / 481.4 MB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006391/0.3422, allocations: 259.1 kB / 481.7 MB, free: 4.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.053e-06/0.3422, allocations: 4 kB / 481.7 MB, free: 4.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002059/0.3443, allocations: 0.7664 MB / 482.4 MB, free: 3.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.3443, allocations: 63.34 kB / 482.5 MB, free: 3.199 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.3462, allocations: 1.463 MB / 484 MB, free: 1.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.514e-05/0.3462, allocations: 33.7 kB / 484 MB, free: 1.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006799/0.3469, allocations: 0.7232 MB / 484.7 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.74e-05/0.347, allocations: 107.2 kB / 484.8 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/0.3472, allocations: 130 kB / 484.9 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3473, allocations: 322 kB / 485.3 MB, free: 384 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004559/0.3478, allocations: 160.9 kB / 485.4 MB, free: 224 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006257/0.3484, allocations: 358.8 kB / 485.8 MB, free: 15.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.3495, allocations: 0.5378 MB / 486.3 MB, free: 15.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.373e-06/0.3495, allocations: 4 kB / 486.3 MB, free: 15.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001493/0.351, allocations: 0.7517 MB / 487.1 MB, free: 14.38 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.351, allocations: 8 kB / 487.1 MB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.89e-05/0.3511, allocations: 44.84 kB / 487.1 MB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.3514, allocations: 132.8 kB / 487.2 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004128/0.3518, allocations: 103.8 kB / 487.3 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006662/0.3525, allocations: 0.685 MB / 488 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005569/0.3531, allocations: 75.58 kB / 488.1 MB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.697e-05/0.3531, allocations: 36.06 kB / 488.1 MB, free: 13.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004133/0.3535, allocations: 269.7 kB / 488.4 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001993/0.3537, allocations: 198.7 kB / 488.6 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.3555, allocations: 0.7386 MB / 489.3 MB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3555, allocations: 0 / 489.3 MB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3556, allocations: 0 / 489.3 MB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3556, allocations: 7.984 kB / 489.3 MB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.3578, allocations: 1.197 MB / 490.5 MB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.557e-05/0.3578, allocations: 36 kB / 490.6 MB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/0.3581, allocations: 51.88 kB / 490.6 MB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002392/0.3583, allocations: 120.9 kB / 490.7 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.339e-05/0.3584, allocations: 23.98 kB / 490.8 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006026/0.359, allocations: 0.6655 MB / 491.4 MB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.359, allocations: 0 / 491.4 MB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.3603, allocations: 0.7258 MB / 492.2 MB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004577/0.3608, allocations: 208.6 kB / 492.4 MB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.3609, allocations: 8 kB / 492.4 MB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.3613, allocations: 27.95 kB / 492.4 MB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.3615, allocations: 39.95 kB / 492.4 MB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-05/0.3615, allocations: 31.92 kB / 492.5 MB, free: 8.812 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001222/0.3627, allocations: 0.9571 MB / 493.4 MB, free: 7.836 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3627, allocations: 0 / 493.4 MB, free: 7.836 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000862/0.3636, allocations: 335.5 kB / 493.8 MB, free: 7.508 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008393/0.3644, allocations: 0.5771 MB / 494.3 MB, free: 6.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.3657, allocations: 496.2 kB / 494.8 MB, free: 6.422 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3657, allocations: 3.938 kB / 494.8 MB, free: 6.418 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006726/0.3664, allocations: 283.7 kB / 495.1 MB, free: 6.129 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.3677, allocations: 302.9 kB / 495.4 MB, free: 5.828 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003545/0.3712, allocations: 2.255 MB / 497.6 MB, free: 3.531 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005611/0.3718, allocations: 0.5666 MB / 498.2 MB, free: 2.926 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005325/0.3723, allocations: 199.9 kB / 498.4 MB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.3725, allocations: 91.44 kB / 498.5 MB, free: 2.637 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3725, allocations: 0 / 498.5 MB, free: 2.637 MB / 398.1 MB Notification: Performance of Templates: time 0.0357/0.4082, allocations: 21.42 MB / 0.5077 GB, free: 13.46 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.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.249972611665726]