Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002651/0.002651, allocations: 214.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.538/1.538, allocations: 230.6 MB / 258.2 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 47.92 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2676, allocations: 53.37 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008031/0.2756, allocations: 6.921 MB / 439.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0222/0.2978, allocations: 16.71 MB / 456 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001311/0.2992, allocations: 94.88 kB / 456 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002534/0.3017, allocations: 0.75 MB / 456.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006517/0.3082, allocations: 1.823 MB / 458.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005063/0.3133, allocations: 1.32 MB / 459.9 MB, free: 11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005719/0.319, allocations: 3.307 MB / 463.2 MB, free: 7.688 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003356/0.3193, allocations: 128.8 kB / 463.4 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009104/0.3202, allocations: 0.5873 MB / 464 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006904/0.3209, allocations: 0.5394 MB / 464.5 MB, free: 6.402 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.321, allocations: 40 kB / 464.5 MB, free: 6.363 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003851/0.3249, allocations: 1.171 MB / 465.7 MB, free: 5.191 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.3251, allocations: 174.8 kB / 465.9 MB, free: 5.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005545/0.3256, allocations: 0.5084 MB / 466.4 MB, free: 4.508 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003193/0.3288, allocations: 2.237 MB / 468.6 MB, free: 2.262 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3288, allocations: 0 / 468.6 MB, free: 2.262 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.3288, allocations: 0 / 468.6 MB, free: 2.262 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.3289, allocations: 0 / 468.6 MB, free: 2.262 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.003225/0.3321, allocations: 1.998 MB / 470.6 MB, free: 224 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.3321, allocations: 8.031 kB / 470.6 MB, free: 216 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.3324, allocations: 202.7 kB / 470.8 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002228/0.3346, allocations: 1.257 MB / 472.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.3346, allocations: 20.66 kB / 472.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.251e-05/0.3347, allocations: 24 kB / 472.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009392/0.3357, allocations: 437.8 kB / 472.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.3357, allocations: 3.938 kB / 472.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.1e-05/0.3357, allocations: 12 kB / 472.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.3357, allocations: 8 kB / 472.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.3368, allocations: 486.3 kB / 473.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002763/0.3396, allocations: 1.421 MB / 474.5 MB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009076/0.3405, allocations: 341.2 kB / 474.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007128/0.3412, allocations: 361.9 kB / 475.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0134/0.3546, allocations: 6.996 MB / 482.2 MB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000663/0.3553, allocations: 267 kB / 482.4 MB, free: 4.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.535e-06/0.3553, allocations: 0 / 482.4 MB, free: 4.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002188/0.3575, allocations: 0.7664 MB / 483.2 MB, free: 3.285 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.3575, allocations: 71.31 kB / 483.3 MB, free: 3.203 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.3596, allocations: 1.463 MB / 484.7 MB, free: 1.703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.3596, allocations: 29.7 kB / 484.7 MB, free: 1.668 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008073/0.3604, allocations: 0.7232 MB / 485.5 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.3605, allocations: 103.2 kB / 485.6 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002165/0.3607, allocations: 134 kB / 485.7 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.3609, allocations: 326 kB / 486 MB, free: 388 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004619/0.3614, allocations: 160.9 kB / 486.2 MB, free: 228 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006651/0.3621, allocations: 354.8 kB / 486.5 MB, free: 15.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.3632, allocations: 0.5339 MB / 487.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.3632, allocations: 8 kB / 487.1 MB, free: 15.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001596/0.3648, allocations: 0.7485 MB / 487.8 MB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.3648, allocations: 12.11 kB / 487.8 MB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.878e-05/0.3649, allocations: 40 kB / 487.9 MB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003689/0.3652, allocations: 140.7 kB / 488 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.3656, allocations: 99.81 kB / 488.1 MB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007637/0.3664, allocations: 0.685 MB / 488.8 MB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005829/0.367, allocations: 75.66 kB / 488.9 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.932e-05/0.3671, allocations: 35.98 kB / 488.9 MB, free: 13.28 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.0004464/0.3675, allocations: 269.7 kB / 489.2 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/0.3677, allocations: 198.7 kB / 489.3 MB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001829/0.3696, allocations: 0.7308 MB / 490.1 MB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3696, allocations: 4 kB / 490.1 MB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3696, allocations: 0 / 490.1 MB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.3696, allocations: 7.922 kB / 490.1 MB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.3719, allocations: 1.2 MB / 491.3 MB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.314e-05/0.3719, allocations: 32 kB / 491.3 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002475/0.3722, allocations: 55.95 kB / 491.4 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000254/0.3725, allocations: 120.8 kB / 491.5 MB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.19e-05/0.3725, allocations: 19.98 kB / 491.5 MB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006766/0.3732, allocations: 0.6694 MB / 492.2 MB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3732, allocations: 0 / 492.2 MB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.3747, allocations: 0.7258 MB / 492.9 MB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004995/0.3752, allocations: 208.6 kB / 493.1 MB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.3754, allocations: 8 kB / 493.1 MB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004086/0.3758, allocations: 31.95 kB / 493.2 MB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.3759, allocations: 39.95 kB / 493.2 MB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.812e-05/0.376, allocations: 28.11 kB / 493.2 MB, free: 8.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001279/0.3772, allocations: 0.961 MB / 494.2 MB, free: 7.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3772, allocations: 0 / 494.2 MB, free: 7.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009017/0.3781, allocations: 331.6 kB / 494.5 MB, free: 7.516 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.0008815/0.379, allocations: 0.5731 MB / 495.1 MB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.3803, allocations: 0.4926 MB / 495.6 MB, free: 6.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3803, allocations: 0 / 495.6 MB, free: 6.426 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006662/0.381, allocations: 285 kB / 495.8 MB, free: 6.137 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.3823, allocations: 302.9 kB / 496.1 MB, free: 5.836 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003663/0.3859, allocations: 2.297 MB / 498.4 MB, free: 3.488 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005883/0.3865, allocations: 0.5666 MB / 499 MB, free: 2.883 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.3867, allocations: 95.42 kB / 499.1 MB, free: 2.789 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3867, allocations: 0 / 499.1 MB, free: 2.789 MB / 398.1 MB Notification: Performance of Templates: time 0.04258/0.4293, allocations: 26.72 MB / 0.5135 GB, free: 8.133 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time [Calling sys.exit(0), Time elapsed: 9.216553973034024]