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.0007976/0.0007975, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009863/0.0009867, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.7 MB / 246.8 MB, free: 9.785 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002433, allocations: 8 kB / 307.7 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09349/0.09375, allocations: 51.53 MB / 359.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006897/0.1007, allocations: 7.567 MB / 366.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.184/0.2848, allocations: 19.36 MB / 386.2 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008352/0.2856, allocations: 31.94 kB / 386.2 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002096/0.2878, allocations: 0.7883 MB / 387 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005454/0.2932, allocations: 1.481 MB / 388.5 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004655/0.2979, allocations: 1.108 MB / 389.6 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005118/0.303, allocations: 3.236 MB / 392.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003669/0.3034, allocations: 214.2 kB / 393 MB, free: 3.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007932/0.3042, allocations: 0.5285 MB / 393.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005528/0.3048, allocations: 0.5324 MB / 394.1 MB, free: 3.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.07e-05/0.3049, allocations: 28.19 kB / 394.1 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004259/0.3091, allocations: 1.453 MB / 395.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.3093, allocations: 146.8 kB / 395.7 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000629/0.3099, allocations: 0.6905 MB / 396.4 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002689/0.3126, allocations: 2.118 MB / 398.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3126, allocations: 1.375 kB / 398.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3127, allocations: 0 / 398.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.3127, allocations: 0 / 398.5 MB, free: 1.188 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.002485/0.3152, allocations: 1.8 MB / 400.3 MB, free: 15.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3152, allocations: 10.66 kB / 400.3 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.3154, allocations: 195.9 kB / 400.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/0.3173, allocations: 1.362 MB / 401.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.3173, allocations: 19.81 kB / 401.9 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.689e-05/0.3174, allocations: 27.88 kB / 401.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009193/0.3184, allocations: 457.9 kB / 402.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3184, allocations: 0 / 402.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.319e-05/0.3184, allocations: 6.312 kB / 402.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.3184, allocations: 19.2 kB / 402.4 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.3196, allocations: 0.5022 MB / 402.9 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002572/0.3221, allocations: 1.636 MB / 404.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00095/0.3231, allocations: 416.2 kB / 405 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007473/0.3239, allocations: 426.5 kB / 405.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01494/0.3388, allocations: 15.53 MB / 420.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006937/0.3395, allocations: 292.1 kB / 421.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.375e-06/0.3396, allocations: 0 / 421.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002256/0.3418, allocations: 0.911 MB / 422.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.3419, allocations: 55.41 kB / 422.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.3436, allocations: 1.451 MB / 423.6 MB, free: 8.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.997e-05/0.3436, allocations: 33.7 kB / 423.7 MB, free: 8.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006293/0.3443, allocations: 0.7187 MB / 424.4 MB, free: 7.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.728e-05/0.3444, allocations: 94.72 kB / 424.5 MB, free: 7.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.145e-05/0.3444, allocations: 45.7 kB / 424.5 MB, free: 7.785 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3446, allocations: 333.8 kB / 424.8 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005007/0.3451, allocations: 181 kB / 425 MB, free: 7.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006217/0.3457, allocations: 387.4 kB / 425.4 MB, free: 6.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.3468, allocations: 0.5807 MB / 426 MB, free: 6.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3468, allocations: 4 kB / 426 MB, free: 6.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001549/0.3484, allocations: 0.79 MB / 426.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.3484, allocations: 8 kB / 426.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.862e-05/0.3485, allocations: 43.98 kB / 426.8 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002974/0.3488, allocations: 137.6 kB / 426.9 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004288/0.3492, allocations: 107.8 kB / 427.1 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006305/0.3499, allocations: 0.6889 MB / 427.7 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006803/0.3506, allocations: 79.48 kB / 427.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.371e-05/0.3506, allocations: 36 kB / 427.9 MB, free: 4.207 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.0003951/0.351, allocations: 285 kB / 428.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/0.3512, allocations: 186.6 kB / 428.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/0.3532, allocations: 0.7822 MB / 429.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.3533, allocations: 4 kB / 429.1 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3533, allocations: 3.984 kB / 429.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3533, allocations: 0 / 429.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.3555, allocations: 1.354 MB / 430.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.714e-05/0.3556, allocations: 39.94 kB / 430.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.3559, allocations: 55.83 kB / 430.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000246/0.3561, allocations: 132.8 kB / 430.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.23e-05/0.3562, allocations: 12 kB / 430.7 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005499/0.3567, allocations: 0.6695 MB / 431.4 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3567, allocations: 3.938 kB / 431.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.3582, allocations: 0.7554 MB / 432.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000355/0.3585, allocations: 274.8 kB / 432.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.3587, allocations: 8 kB / 432.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004708/0.3592, allocations: 43.95 kB / 432.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3593, allocations: 39.91 kB / 432.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.591e-05/0.3593, allocations: 23.98 kB / 432.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001217/0.3606, allocations: 0.961 MB / 433.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.3606, allocations: 0 / 433.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009529/0.3615, allocations: 331.8 kB / 433.8 MB, free: 14.09 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.0009989/0.3625, allocations: 0.5656 MB / 434.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.364, allocations: 0.5692 MB / 434.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.364, allocations: 0 / 434.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006971/0.3647, allocations: 311.4 kB / 435.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.3663, allocations: 294.8 kB / 435.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003595/0.3699, allocations: 2.672 MB / 438.2 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006364/0.3705, allocations: 1.161 MB / 439.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000678/0.3712, allocations: 199.9 kB / 439.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.3714, allocations: 83.44 kB / 439.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3714, allocations: 0 / 439.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of Templates: time 0.03233/0.4037, allocations: 18.96 MB / 458.6 MB, free: 5.277 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