Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001764/0.001764, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002021/0.002022, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.484/1.484, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001919/0.00192, allocations: 57.06 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1052, allocations: 50.53 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009304/0.1146, allocations: 8.037 MB / 366.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1943/0.3089, allocations: 19.46 MB / 385.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008845/0.3099, allocations: 34.69 kB / 386 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002597/0.3125, allocations: 0.8516 MB / 386.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007177/0.3197, allocations: 1.793 MB / 388.6 MB, free: 4.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005401/0.3251, allocations: 1.341 MB / 389.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005875/0.331, allocations: 3.277 MB / 393.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004604/0.3315, allocations: 233.3 kB / 393.4 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009503/0.3325, allocations: 0.539 MB / 394 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00061/0.3331, allocations: 0.5557 MB / 394.5 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.3332, allocations: 41 kB / 394.6 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004932/0.3382, allocations: 1.443 MB / 396 MB, free: 1.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002604/0.3385, allocations: 179 kB / 396.2 MB, free: 1.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009708/0.3394, allocations: 0.6828 MB / 396.9 MB, free: 1.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004256/0.3437, allocations: 2.196 MB / 399.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3437, allocations: 0 / 399.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3438, allocations: 0 / 399.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.23e-05/0.3438, allocations: 0 / 399.1 MB, free: 15.98 MB / 318.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.003531/0.3473, allocations: 2.018 MB / 401.1 MB, free: 14.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3474, allocations: 9.156 kB / 401.1 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003356/0.3477, allocations: 196.9 kB / 401.3 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002189/0.3499, allocations: 1.362 MB / 402.7 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.35, allocations: 20.03 kB / 402.7 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.279e-05/0.3501, allocations: 32.98 kB / 402.7 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009708/0.351, allocations: 429 kB / 403.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.3511, allocations: 0 / 403.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.886e-05/0.3511, allocations: 10.25 kB / 403.1 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.3511, allocations: 16.58 kB / 403.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.3523, allocations: 480 kB / 403.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003701/0.356, allocations: 1.629 MB / 405.2 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.3571, allocations: 371.8 kB / 405.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008024/0.3579, allocations: 406.6 kB / 406 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01789/0.3758, allocations: 15.52 MB / 421.5 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000691/0.3766, allocations: 255.1 kB / 421.8 MB, free: 9.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.204e-06/0.3766, allocations: 0 / 421.8 MB, free: 9.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002475/0.3791, allocations: 0.8485 MB / 422.6 MB, free: 8.848 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.3791, allocations: 55.41 kB / 422.7 MB, free: 8.781 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002043/0.3812, allocations: 1.455 MB / 424.1 MB, free: 7.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.348e-05/0.3812, allocations: 33.7 kB / 424.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008998/0.3821, allocations: 0.7187 MB / 424.9 MB, free: 6.527 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.3823, allocations: 94.72 kB / 425 MB, free: 6.434 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003792/0.3827, allocations: 126 kB / 425.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.3829, allocations: 329.9 kB / 425.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000717/0.3836, allocations: 165 kB / 425.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009154/0.3845, allocations: 359.4 kB / 425.9 MB, free: 5.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001661/0.3862, allocations: 0.5292 MB / 426.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.3862, allocations: 0 / 426.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002767/0.389, allocations: 0.7548 MB / 427.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.3891, allocations: 8 kB / 427.2 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001004/0.3892, allocations: 43.94 kB / 427.3 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000509/0.3897, allocations: 145.5 kB / 427.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006176/0.3903, allocations: 107.8 kB / 427.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.3915, allocations: 0.6772 MB / 428.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/0.3931, allocations: 71.53 kB / 428.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.3932, allocations: 36 kB / 428.3 MB, free: 2.879 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.0007622/0.394, allocations: 269.6 kB / 428.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004695/0.3944, allocations: 181.8 kB / 428.7 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003278/0.3977, allocations: 0.761 MB / 429.5 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.3978, allocations: 4 kB / 429.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3978, allocations: 0 / 429.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3978, allocations: 0 / 429.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004148/0.402, allocations: 1.307 MB / 430.8 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.522e-05/0.4021, allocations: 40 kB / 430.9 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000394/0.4025, allocations: 43.89 kB / 430.9 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004046/0.4029, allocations: 124.8 kB / 431 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-05/0.403, allocations: 23.98 kB / 431 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009882/0.404, allocations: 0.6694 MB / 431.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.404, allocations: 3.938 kB / 431.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.4064, allocations: 0.706 MB / 432.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.4075, allocations: 278.8 kB / 432.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002611/0.4077, allocations: 4 kB / 432.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007315/0.4085, allocations: 31.95 kB / 432.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.4087, allocations: 39.97 kB / 432.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.909e-05/0.4088, allocations: 23.98 kB / 432.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002126/0.4109, allocations: 0.9571 MB / 433.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4109, allocations: 0 / 433.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001852/0.4128, allocations: 327.8 kB / 434.1 MB, free: 12.92 MB / 350.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.001474/0.4143, allocations: 0.5758 MB / 434.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.4165, allocations: 0.5311 MB / 435.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.4165, allocations: 4.125 kB / 435.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.4176, allocations: 295.1 kB / 435.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002747/0.4203, allocations: 329.9 kB / 435.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005719/0.4261, allocations: 2.278 MB / 438.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/0.4273, allocations: 1.153 MB / 439.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000296/0.4276, allocations: 87.44 kB / 439.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of SimCode: time 1.283e-06/0.4276, allocations: 0 / 439.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of Templates: time 0.05272/0.4803, allocations: 25.78 MB / 465.1 MB, free: 13.86 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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