Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 110.1 kB / 16.92 MB, free: 5.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001179, allocations: 191.5 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 46.31 kB / 300.6 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.09196, allocations: 49.44 MB / 350 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008153/0.1001, allocations: 8.028 MB / 358.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1882/0.2884, allocations: 19.42 MB / 377.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008434/0.2893, allocations: 33.31 kB / 377.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002135/0.2914, allocations: 0.8545 MB / 378.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005291/0.2967, allocations: 1.796 MB / 380.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00506/0.3018, allocations: 1.337 MB / 381.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005661/0.3075, allocations: 3.245 MB / 384.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004266/0.308, allocations: 225 kB / 385 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008704/0.3088, allocations: 0.5416 MB / 385.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005418/0.3094, allocations: 0.563 MB / 386.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.3095, allocations: 42.12 kB / 386.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005569/0.3151, allocations: 1.442 MB / 387.6 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003127/0.3154, allocations: 168 kB / 387.7 MB, free: 6.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.3165, allocations: 0.6855 MB / 388.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004791/0.3213, allocations: 2.191 MB / 390.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3214, allocations: 0 / 390.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3214, allocations: 0 / 390.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.175e-05/0.3214, allocations: 1.031 kB / 390.6 MB, free: 5.559 MB / 302.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.002757/0.3242, allocations: 2.014 MB / 392.6 MB, free: 4.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3242, allocations: 9.125 kB / 392.6 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002103/0.3244, allocations: 189.7 kB / 392.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/0.3261, allocations: 1.369 MB / 394.2 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.3261, allocations: 14.91 kB / 394.2 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.27e-05/0.3262, allocations: 37.64 kB / 394.2 MB, free: 3.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008237/0.327, allocations: 429.7 kB / 394.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.327, allocations: 0 / 394.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.14e-05/0.3271, allocations: 10.03 kB / 394.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.3271, allocations: 19.48 kB / 394.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009989/0.3281, allocations: 471.4 kB / 395.1 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002474/0.3306, allocations: 1.62 MB / 396.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008893/0.3315, allocations: 372.6 kB / 397.1 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006475/0.3322, allocations: 414.9 kB / 397.5 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01414/0.3463, allocations: 15.2 MB / 412.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006728/0.347, allocations: 255.7 kB / 413 MB, free: 1.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 3.416e-06/0.3471, allocations: 0 / 413 MB, free: 1.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002248/0.3493, allocations: 0.8398 MB / 413.8 MB, free: 400 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.3494, allocations: 59.34 kB / 413.9 MB, free: 328 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001651/0.351, allocations: 1.459 MB / 415.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/0.3511, allocations: 29.7 kB / 415.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005556/0.3516, allocations: 0.7209 MB / 416.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.324e-05/0.3517, allocations: 93.41 kB / 416.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.3519, allocations: 130 kB / 416.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.352, allocations: 329.8 kB / 416.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004509/0.3525, allocations: 161 kB / 416.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005558/0.3531, allocations: 367.4 kB / 417.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.3541, allocations: 0.5361 MB / 417.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3541, allocations: 4 kB / 417.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001459/0.3556, allocations: 0.7469 MB / 418.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.3556, allocations: 10.66 kB / 418.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.458e-05/0.3557, allocations: 44.83 kB / 418.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003058/0.356, allocations: 132.8 kB / 418.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/0.3564, allocations: 107.8 kB / 418.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005802/0.357, allocations: 0.685 MB / 419.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007189/0.3577, allocations: 71.97 kB / 419.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.7e-05/0.3578, allocations: 36 kB / 419.5 MB, free: 10.41 MB / 334.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.0004098/0.3582, allocations: 277 kB / 419.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.3584, allocations: 177.8 kB / 420 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001894/0.3603, allocations: 0.7436 MB / 420.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.3603, allocations: 7.938 kB / 420.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3603, allocations: 1.75 kB / 420.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3603, allocations: 0 / 420.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002154/0.3625, allocations: 1.306 MB / 422 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.348e-05/0.3626, allocations: 43.92 kB / 422.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.3628, allocations: 39.95 kB / 422.1 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.3631, allocations: 128.8 kB / 422.2 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.3631, allocations: 20.05 kB / 422.2 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005247/0.3636, allocations: 0.6765 MB / 422.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.3637, allocations: 4.031 kB / 422.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.3649, allocations: 0.706 MB / 423.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000426/0.3654, allocations: 270.8 kB / 423.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/0.3655, allocations: 11.98 kB / 423.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004236/0.366, allocations: 35.72 kB / 423.9 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.3661, allocations: 39.95 kB / 424 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-05/0.3662, allocations: 20 kB / 424 MB, free: 5.773 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001114/0.3673, allocations: 0.9571 MB / 425 MB, free: 4.797 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3673, allocations: 0 / 425 MB, free: 4.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009135/0.3682, allocations: 335.8 kB / 425.3 MB, free: 4.469 MB / 334.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.0007848/0.369, allocations: 0.5724 MB / 425.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.3704, allocations: 0.5246 MB / 426.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3704, allocations: 0 / 426.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006487/0.371, allocations: 288.8 kB / 426.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.3725, allocations: 324.1 kB / 427 MB, free: 2.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.3758, allocations: 2.252 MB / 429.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000589/0.3764, allocations: 1.145 MB / 430.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006775/0.3771, allocations: 199.9 kB / 430.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.3772, allocations: 87.44 kB / 430.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of SimCode: time 1.503e-06/0.3772, allocations: 4 kB / 430.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Templates: time 0.03118/0.4084, allocations: 19.74 MB / 450.4 MB, free: 11.57 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches