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.0008337/0.0008337, allocations: 99.02 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002263/0.0002264, allocations: 11.98 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08523/0.08547, allocations: 51.51 MB / 358.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006386/0.0919, allocations: 7.08 MB / 365.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2182/0.3102, allocations: 17.69 MB / 383.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007246/0.3109, allocations: 31.66 kB / 383.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001754/0.3127, allocations: 0.7149 MB / 384.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004481/0.3172, allocations: 1.409 MB / 385.5 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003892/0.3211, allocations: 1.041 MB / 386.6 MB, free: 6.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005153/0.3263, allocations: 3.08 MB / 389.7 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004738/0.3268, allocations: 206.8 kB / 389.9 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009103/0.3277, allocations: 496.4 kB / 390.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005561/0.3282, allocations: 0.5128 MB / 390.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.702e-05/0.3283, allocations: 23.06 kB / 390.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004823/0.3332, allocations: 1.319 MB / 392.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001556/0.3333, allocations: 143.4 kB / 392.3 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003409/0.3337, allocations: 320.9 kB / 392.7 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001506/0.3352, allocations: 1.562 MB / 394.2 MB, free: 4.164 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3352, allocations: 4 kB / 394.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3352, allocations: 0 / 394.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.591e-05/0.3352, allocations: 1.25 kB / 394.2 MB, free: 4.16 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.002612/0.3379, allocations: 1.802 MB / 396 MB, free: 2.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3379, allocations: 12.25 kB / 396 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002113/0.3381, allocations: 203.7 kB / 396.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/0.3399, allocations: 1.287 MB / 397.5 MB, free: 1.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.3399, allocations: 14.19 kB / 397.5 MB, free: 1.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.561e-05/0.34, allocations: 29.88 kB / 397.6 MB, free: 1.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008531/0.3409, allocations: 454.2 kB / 398 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3409, allocations: 0 / 398 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.3409, allocations: 10.78 kB / 398 MB, free: 1.469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.341, allocations: 18.22 kB / 398 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009929/0.342, allocations: 0.5035 MB / 398.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002378/0.3443, allocations: 1.634 MB / 400.2 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008731/0.3452, allocations: 417.8 kB / 400.6 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006828/0.3459, allocations: 433 kB / 401 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0145/0.3604, allocations: 15.54 MB / 416.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006167/0.3611, allocations: 284.2 kB / 416.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.044e-06/0.3611, allocations: 0 / 416.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.00205/0.3632, allocations: 0.9149 MB / 417.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.3632, allocations: 55.41 kB / 417.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/0.3649, allocations: 1.436 MB / 419.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.3649, allocations: 33.7 kB / 419.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005911/0.3655, allocations: 0.7187 MB / 420 MB, free: 12.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.838e-05/0.3656, allocations: 110.5 kB / 420.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/0.3657, allocations: 12 kB / 420.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3658, allocations: 325.9 kB / 420.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004485/0.3662, allocations: 177 kB / 420.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000536/0.3668, allocations: 379.4 kB / 421 MB, free: 11.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004725/0.3672, allocations: 228.5 kB / 421.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3673, allocations: 0 / 421.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001428/0.3687, allocations: 0.7903 MB / 422 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.3687, allocations: 8 kB / 422 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.457e-05/0.3688, allocations: 44.86 kB / 422 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002864/0.3691, allocations: 128.8 kB / 422.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.3695, allocations: 124.2 kB / 422.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005793/0.3701, allocations: 0.6742 MB / 423 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000622/0.3707, allocations: 83.47 kB / 423 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.435e-05/0.3708, allocations: 36 kB / 423.1 MB, free: 8.922 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003919/0.3712, allocations: 277.1 kB / 423.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.3714, allocations: 189.8 kB / 423.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.3733, allocations: 0.7784 MB / 424.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.3733, allocations: 6 kB / 424.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3733, allocations: 0 / 424.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3733, allocations: 0 / 424.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.3754, allocations: 1.358 MB / 425.7 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.094e-05/0.3755, allocations: 32 kB / 425.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.3757, allocations: 63.94 kB / 425.8 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002264/0.3759, allocations: 124.8 kB / 425.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.376, allocations: 23.98 kB / 425.9 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005332/0.3765, allocations: 0.6579 MB / 426.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3766, allocations: 0 / 426.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.3778, allocations: 0.7592 MB / 427.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003293/0.3782, allocations: 274.7 kB / 427.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.3783, allocations: 11.98 kB / 427.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004256/0.3788, allocations: 35.92 kB / 427.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.3789, allocations: 52.64 kB / 427.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.3789, allocations: 19.98 kB / 427.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.38, allocations: 0.9415 MB / 428.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.38, allocations: 0 / 428.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008651/0.3809, allocations: 323.8 kB / 429 MB, free: 2.836 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007525/0.3817, allocations: 0.554 MB / 429.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.3829, allocations: 0.5498 MB / 430.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3829, allocations: 0 / 430.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006389/0.3835, allocations: 327.2 kB / 430.4 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.3848, allocations: 294.8 kB / 430.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003393/0.3882, allocations: 2.505 MB / 433.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006818/0.3889, allocations: 1.153 MB / 434.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006774/0.3896, allocations: 207.8 kB / 434.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3897, allocations: 87.42 kB / 434.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3897, allocations: 0 / 434.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of Templates: time 0.02997/0.4197, allocations: 18.44 MB / 453.1 MB, free: 10.73 MB / 366.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/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_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches