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.001084/0.001084, allocations: 110 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001152/0.001152, allocations: 209.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 59.89 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2632, allocations: 50.54 MB / 409.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008228/0.2715, allocations: 8.033 MB / 418 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02258/0.2941, allocations: 19.47 MB / 437.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001504/0.2956, allocations: 55.5 kB / 437.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002783/0.2985, allocations: 0.8437 MB / 438.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006549/0.3051, allocations: 1.795 MB / 440.1 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004945/0.31, allocations: 1.35 MB / 441.5 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00524/0.3153, allocations: 3.292 MB / 444.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004338/0.3158, allocations: 220.6 kB / 445 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008263/0.3166, allocations: 0.5639 MB / 445.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006161/0.3172, allocations: 0.559 MB / 446.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.3173, allocations: 40 kB / 446.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003727/0.3211, allocations: 1.447 MB / 447.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.3213, allocations: 178.8 kB / 447.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006428/0.3219, allocations: 0.6792 MB / 448.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003108/0.325, allocations: 2.207 MB / 450.6 MB, free: 8.719 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.417e-05/0.3251, allocations: 0 / 450.6 MB, free: 8.719 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3251, allocations: 4 kB / 450.6 MB, free: 8.715 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.848e-05/0.3251, allocations: 0 / 450.6 MB, free: 8.715 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.002786/0.3279, allocations: 2.008 MB / 452.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.328, allocations: 16.03 kB / 452.7 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002194/0.3282, allocations: 189.7 kB / 452.9 MB, free: 6.441 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001648/0.3298, allocations: 1.354 MB / 454.2 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.3299, allocations: 24.55 kB / 454.2 MB, free: 4.992 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-05/0.33, allocations: 31.94 kB / 454.3 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000871/0.3308, allocations: 429.2 kB / 454.7 MB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3309, allocations: 7.938 kB / 454.7 MB, free: 4.531 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.823e-05/0.3309, allocations: 12 kB / 454.7 MB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3309, allocations: 8 kB / 454.7 MB, free: 4.512 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.332, allocations: 474 kB / 455.2 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/0.3345, allocations: 1.611 MB / 456.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009144/0.3355, allocations: 371.4 kB / 457.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006962/0.3362, allocations: 417.8 kB / 457.6 MB, free: 1.582 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01393/0.3501, allocations: 15.52 MB / 473.1 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006078/0.3508, allocations: 263.1 kB / 473.3 MB, free: 15.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 3.036e-06/0.3508, allocations: 4 kB / 473.3 MB, free: 15.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002019/0.3528, allocations: 0.8407 MB / 474.2 MB, free: 14.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.3529, allocations: 63.33 kB / 474.2 MB, free: 14.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/0.3545, allocations: 1.451 MB / 475.7 MB, free: 13.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.3545, allocations: 33.7 kB / 475.7 MB, free: 13.17 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005646/0.3551, allocations: 0.7187 MB / 476.4 MB, free: 12.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.693e-05/0.3552, allocations: 90.75 kB / 476.5 MB, free: 12.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.3554, allocations: 130 kB / 476.7 MB, free: 12.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3555, allocations: 322 kB / 477 MB, free: 11.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000433/0.3559, allocations: 161 kB / 477.1 MB, free: 11.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005363/0.3564, allocations: 363.4 kB / 477.5 MB, free: 11.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.3575, allocations: 0.5256 MB / 478 MB, free: 10.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.3575, allocations: 0 / 478 MB, free: 10.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0014/0.3589, allocations: 0.7508 MB / 478.8 MB, free: 9.914 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.3589, allocations: 8 kB / 478.8 MB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.363e-05/0.359, allocations: 47.92 kB / 478.8 MB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002951/0.3593, allocations: 137.6 kB / 479 MB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/0.3597, allocations: 103.8 kB / 479.1 MB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005796/0.3603, allocations: 0.6928 MB / 479.7 MB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005849/0.3609, allocations: 67.56 kB / 479.8 MB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/0.361, allocations: 36 kB / 479.8 MB, free: 8.801 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.0004702/0.3614, allocations: 281 kB / 480.1 MB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.3616, allocations: 189.7 kB / 480.3 MB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.3634, allocations: 0.7464 MB / 481.1 MB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.3634, allocations: 4 kB / 481.1 MB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3634, allocations: 0 / 481.1 MB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3634, allocations: 0 / 481.1 MB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.3656, allocations: 1.314 MB / 482.4 MB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.281e-05/0.3657, allocations: 40.05 kB / 482.4 MB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.366, allocations: 51.89 kB / 482.5 MB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002273/0.3662, allocations: 120.8 kB / 482.6 MB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.056e-05/0.3662, allocations: 23.92 kB / 482.6 MB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005403/0.3668, allocations: 0.6696 MB / 483.3 MB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3668, allocations: 3.938 kB / 483.3 MB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.368, allocations: 0.7092 MB / 484 MB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003241/0.3683, allocations: 282.7 kB / 484.3 MB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001485/0.3685, allocations: 8 kB / 484.3 MB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004231/0.3689, allocations: 27.97 kB / 484.3 MB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.369, allocations: 43.89 kB / 484.3 MB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.901e-05/0.3691, allocations: 20 kB / 484.4 MB, free: 4.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001101/0.3702, allocations: 0.9571 MB / 485.3 MB, free: 3.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3702, allocations: 7.938 kB / 485.3 MB, free: 3.137 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008027/0.371, allocations: 327.8 kB / 485.6 MB, free: 2.816 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.0007601/0.3718, allocations: 0.5734 MB / 486.2 MB, free: 2.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.373, allocations: 0.5161 MB / 486.7 MB, free: 1.703 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.373, allocations: 0 / 486.7 MB, free: 1.703 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006315/0.3737, allocations: 291.2 kB / 487 MB, free: 1.406 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.3749, allocations: 323 kB / 487.3 MB, free: 1.086 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.3781, allocations: 2.239 MB / 489.6 MB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005769/0.3787, allocations: 1.149 MB / 490.7 MB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.3789, allocations: 91.44 kB / 490.8 MB, free: 13.54 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3789, allocations: 0 / 490.8 MB, free: 13.54 MB / 414.1 MB Notification: Performance of Templates: time 0.03013/0.409, allocations: 25.94 MB / 0.5046 GB, free: 3.637 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