Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001289/0.001289, allocations: 109.7 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002244/0.002244, allocations: 212.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.618/2.618, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 55.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3827/0.3849, allocations: 50.53 MB / 409.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01463/0.3996, allocations: 8.044 MB / 418 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04184/0.4415, allocations: 19.46 MB / 437.4 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002179/0.4437, allocations: 63.44 kB / 437.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004002/0.4478, allocations: 0.8412 MB / 438.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01344/0.4613, allocations: 1.798 MB / 440.1 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008724/0.4701, allocations: 1.346 MB / 441.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01341/0.4836, allocations: 3.288 MB / 444.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008124/0.4844, allocations: 224.6 kB / 445 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.486, allocations: 0.5638 MB / 445.5 MB, free: 14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001294/0.4874, allocations: 0.5668 MB / 446.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001908/0.4876, allocations: 40 kB / 446.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006623/0.4942, allocations: 1.444 MB / 447.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004015/0.4947, allocations: 170.8 kB / 447.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001389/0.4961, allocations: 0.6832 MB / 448.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005996/0.5021, allocations: 2.207 MB / 450.6 MB, free: 8.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.5022, allocations: 0 / 450.6 MB, free: 8.875 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5022, allocations: 4 kB / 450.6 MB, free: 8.871 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.083e-05/0.5022, allocations: 0 / 450.6 MB, free: 8.871 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.004696/0.5069, allocations: 2.008 MB / 452.7 MB, free: 6.801 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.507, allocations: 11.97 kB / 452.7 MB, free: 6.789 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003846/0.5074, allocations: 193.7 kB / 452.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003636/0.5111, allocations: 1.35 MB / 454.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.609e-05/0.5111, allocations: 20.55 kB / 454.2 MB, free: 5.156 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.5113, allocations: 31.94 kB / 454.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.5128, allocations: 425.2 kB / 454.7 MB, free: 4.707 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.5128, allocations: 7.922 kB / 454.7 MB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.813e-05/0.5129, allocations: 8 kB / 454.7 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.5129, allocations: 16 kB / 454.7 MB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.5145, allocations: 474.1 kB / 455.2 MB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005028/0.5195, allocations: 1.615 MB / 456.8 MB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.521, allocations: 379.2 kB / 457.1 MB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.5222, allocations: 417.8 kB / 457.6 MB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02861/0.5508, allocations: 15.52 MB / 473.1 MB, free: 72 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00115/0.5521, allocations: 263.2 kB / 473.3 MB, free: 15.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 4.909e-06/0.5521, allocations: 0 / 473.3 MB, free: 15.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.003896/0.556, allocations: 0.8407 MB / 474.2 MB, free: 14.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.5561, allocations: 63.34 kB / 474.2 MB, free: 14.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00367/0.5598, allocations: 1.459 MB / 475.7 MB, free: 13.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.536e-05/0.5599, allocations: 29.7 kB / 475.7 MB, free: 13.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.561, allocations: 0.7187 MB / 476.4 MB, free: 12.6 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.5612, allocations: 90.73 kB / 476.5 MB, free: 12.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003476/0.5616, allocations: 130 kB / 476.7 MB, free: 12.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.5618, allocations: 326 kB / 477 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008824/0.5627, allocations: 165 kB / 477.1 MB, free: 11.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.5639, allocations: 355.5 kB / 477.5 MB, free: 11.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.5658, allocations: 0.5255 MB / 478 MB, free: 10.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.381e-05/0.5659, allocations: 4 kB / 478 MB, free: 10.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003074/0.5689, allocations: 0.7549 MB / 478.8 MB, free: 10.06 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.569, allocations: 8 kB / 478.8 MB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/0.5691, allocations: 47.92 kB / 478.8 MB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005377/0.5697, allocations: 133.4 kB / 479 MB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007372/0.5704, allocations: 107.8 kB / 479.1 MB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.5715, allocations: 0.685 MB / 479.7 MB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/0.5727, allocations: 67.5 kB / 479.8 MB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.5729, allocations: 40.06 kB / 479.8 MB, free: 8.953 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.0008128/0.5737, allocations: 277 kB / 480.1 MB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005083/0.5742, allocations: 189.7 kB / 480.3 MB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003333/0.5776, allocations: 0.7425 MB / 481 MB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.5776, allocations: 7.984 kB / 481.1 MB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.5776, allocations: 0 / 481.1 MB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.5777, allocations: 0 / 481.1 MB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004282/0.582, allocations: 1.318 MB / 482.4 MB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-05/0.5821, allocations: 44.05 kB / 482.4 MB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004801/0.5826, allocations: 39.95 kB / 482.5 MB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004518/0.583, allocations: 124.8 kB / 482.6 MB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.319e-05/0.5831, allocations: 31.98 kB / 482.6 MB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001038/0.5842, allocations: 0.6656 MB / 483.3 MB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5842, allocations: 3.938 kB / 483.3 MB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002518/0.5868, allocations: 0.7131 MB / 484 MB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008119/0.5876, allocations: 270.8 kB / 484.3 MB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00033/0.5879, allocations: 11.98 kB / 484.3 MB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009055/0.5889, allocations: 31.97 kB / 484.3 MB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001915/0.5891, allocations: 43.89 kB / 484.3 MB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.338e-05/0.5892, allocations: 24 kB / 484.4 MB, free: 4.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002531/0.5917, allocations: 0.9532 MB / 485.3 MB, free: 3.297 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5917, allocations: 0 / 485.3 MB, free: 3.297 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00166/0.5934, allocations: 331.8 kB / 485.6 MB, free: 2.973 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.001378/0.5948, allocations: 0.5695 MB / 486.2 MB, free: 2.391 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002215/0.597, allocations: 0.5122 MB / 486.7 MB, free: 1.867 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.323e-06/0.5971, allocations: 0 / 486.7 MB, free: 1.867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.5983, allocations: 295.3 kB / 487 MB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/0.6009, allocations: 321.8 kB / 487.3 MB, free: 1.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006366/0.6073, allocations: 2.255 MB / 489.6 MB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.6085, allocations: 1.149 MB / 490.7 MB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003376/0.6089, allocations: 95.44 kB / 490.8 MB, free: 13.68 MB / 414.1 MB Notification: Performance of SimCode: time 1.332e-06/0.6089, allocations: 0 / 490.8 MB, free: 13.68 MB / 414.1 MB Notification: Performance of Templates: time 0.05825/0.6672, allocations: 26.16 MB / 0.5049 GB, free: 3.566 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time