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.0009441/0.0009441, allocations: 88.3 kB / 16.65 MB, free: 6.535 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.001194/0.001195, allocations: 173.8 kB / 17.56 MB, free: 6.184 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.348/1.348, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003386, allocations: 8.125 kB / 301.4 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1042, allocations: 50.42 MB / 351.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007905/0.1122, allocations: 7.554 MB / 359.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1981/0.3103, allocations: 19.32 MB / 378.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.3114, allocations: 31.75 kB / 378.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002573/0.3139, allocations: 0.7823 MB / 379.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005771/0.3197, allocations: 1.494 MB / 381 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005499/0.3253, allocations: 1.115 MB / 382.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005931/0.3312, allocations: 3.198 MB / 385.3 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004747/0.3317, allocations: 211.2 kB / 385.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001042/0.3328, allocations: 0.5208 MB / 386 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006032/0.3334, allocations: 0.5485 MB / 386.6 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.741e-05/0.3335, allocations: 23.94 kB / 386.6 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00564/0.3391, allocations: 1.439 MB / 388.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.3394, allocations: 147.6 kB / 388.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007626/0.3401, allocations: 0.6843 MB / 388.9 MB, free: 7.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003879/0.344, allocations: 2.12 MB / 391 MB, free: 6.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.344, allocations: 4 kB / 391 MB, free: 6.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.344, allocations: 0 / 391 MB, free: 6.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.244e-05/0.3441, allocations: 0 / 391 MB, free: 6.637 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.00308/0.3472, allocations: 1.792 MB / 392.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.3472, allocations: 9.969 kB / 392.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002094/0.3474, allocations: 196.2 kB / 393 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001654/0.3491, allocations: 1.364 MB / 394.4 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.3491, allocations: 21.36 kB / 394.4 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.771e-05/0.3492, allocations: 33.61 kB / 394.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008961/0.3501, allocations: 455.3 kB / 394.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3501, allocations: 0 / 394.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.3502, allocations: 10.59 kB / 394.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.3502, allocations: 11.38 kB / 394.9 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.3513, allocations: 0.5028 MB / 395.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.3539, allocations: 1.639 MB / 397 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009323/0.3549, allocations: 415.3 kB / 397.4 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006959/0.3556, allocations: 435.5 kB / 397.9 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01428/0.3699, allocations: 15.21 MB / 413.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006993/0.3706, allocations: 283.1 kB / 413.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.785e-06/0.3706, allocations: 0 / 413.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002448/0.3731, allocations: 0.9027 MB / 414.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.3732, allocations: 67.27 kB / 414.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001792/0.375, allocations: 1.457 MB / 415.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.143e-05/0.375, allocations: 33.7 kB / 415.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005795/0.3756, allocations: 0.7187 MB / 416.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.57e-05/0.3757, allocations: 94.19 kB / 416.6 MB, free: 15 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.798e-05/0.3758, allocations: 41.69 kB / 416.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.3759, allocations: 329.9 kB / 417 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000475/0.3764, allocations: 181 kB / 417.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005969/0.377, allocations: 379.4 kB / 417.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3781, allocations: 0.5882 MB / 418.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3781, allocations: 4 kB / 418.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001621/0.3797, allocations: 0.7869 MB / 418.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3797, allocations: 8.844 kB / 418.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-05/0.3798, allocations: 40 kB / 419 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003138/0.3801, allocations: 136.8 kB / 419.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004243/0.3806, allocations: 111.8 kB / 419.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006143/0.3812, allocations: 0.685 MB / 419.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009118/0.3821, allocations: 84.27 kB / 420 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.628e-05/0.3822, allocations: 40.06 kB / 420 MB, free: 11.39 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.0005035/0.3827, allocations: 280.8 kB / 420.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.3829, allocations: 181.8 kB / 420.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/0.3849, allocations: 0.7899 MB / 421.2 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3849, allocations: 4 kB / 421.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3849, allocations: 3.938 kB / 421.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.385, allocations: 11.92 kB / 421.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00233/0.3873, allocations: 1.345 MB / 422.6 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.803e-05/0.3874, allocations: 34.94 kB / 422.6 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.3876, allocations: 56.02 kB / 422.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002447/0.3879, allocations: 128.8 kB / 422.8 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.635e-05/0.3879, allocations: 16 kB / 422.8 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005441/0.3885, allocations: 0.6772 MB / 423.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3885, allocations: 0 / 423.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.3899, allocations: 0.7472 MB / 424.3 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004108/0.3903, allocations: 274.8 kB / 424.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.3904, allocations: 11.94 kB / 424.5 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004546/0.3909, allocations: 35.97 kB / 424.6 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.391, allocations: 43.95 kB / 424.6 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.67e-05/0.3911, allocations: 19.98 kB / 424.6 MB, free: 6.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001195/0.3923, allocations: 0.9649 MB / 425.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3923, allocations: 0 / 425.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009685/0.3933, allocations: 327.8 kB / 425.9 MB, free: 5.293 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.0008595/0.3941, allocations: 0.574 MB / 426.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.3955, allocations: 0.5629 MB / 427.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3955, allocations: 0 / 427.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006823/0.3962, allocations: 323 kB / 427.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.3977, allocations: 300.5 kB / 427.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003622/0.4014, allocations: 2.677 MB / 430.4 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006836/0.4021, allocations: 1.149 MB / 431.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007093/0.4028, allocations: 195.9 kB / 431.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.4029, allocations: 91.44 kB / 431.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4029, allocations: 3.938 kB / 431.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of Templates: time 0.03393/0.4369, allocations: 18.91 MB / 450.7 MB, free: 12.7 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