Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001512/0.001512, allocations: 79.73 kB / 21.97 MB, free: 2.602 MB / 18.57 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.001739/0.001739, allocations: 168.1 kB / 25.33 MB, free: 8.707 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8622/0.8622, allocations: 158.6 MB / 187.2 MB, free: 2.547 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 251 MB, free: 7.492 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.791e-05/1.913e-05, allocations: 2.312 kB / 251 MB, free: 7.488 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.0056/0.005619, allocations: 7.429 MB / 258.5 MB, free: 28 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0154/0.02102, allocations: 17.62 MB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.02222, allocations: 94.88 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.02381, allocations: 0.7436 MB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004929/0.02874, allocations: 1.85 MB / 278.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003353/0.03209, allocations: 1.297 MB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004518/0.03661, allocations: 3.356 MB / 283.4 MB, free: 6.957 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003495/0.03696, allocations: 124.9 kB / 283.6 MB, free: 6.812 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001557/0.03852, allocations: 1.443 MB / 285 MB, free: 5.367 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005488/0.03906, allocations: 418.6 kB / 285.4 MB, free: 4.957 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.03918, allocations: 44 kB / 285.4 MB, free: 4.914 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002446/0.04162, allocations: 1.05 MB / 286.5 MB, free: 3.863 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.04176, allocations: 174.8 kB / 286.7 MB, free: 3.691 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003947/0.04216, allocations: 390.8 kB / 287 MB, free: 3.309 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002301/0.04446, allocations: 1.802 MB / 288.9 MB, free: 1.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.04446, allocations: 3.938 kB / 288.9 MB, free: 1.496 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.04446, allocations: 0 / 288.9 MB, free: 1.496 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.311e-05/0.0445, allocations: 0 / 288.9 MB, free: 1.496 MB / 266.7 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.002181/0.04668, allocations: 2.148 MB / 291 MB, free: 15.3 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.04673, allocations: 11.98 kB / 291 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002493/0.04697, allocations: 222.7 kB / 291.2 MB, free: 15.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.04825, allocations: 1.4 MB / 292.6 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.04827, allocations: 16.66 kB / 292.6 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.649e-05/0.04833, allocations: 28 kB / 292.7 MB, free: 13.54 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.0488, allocations: 326.6 kB / 293 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.04881, allocations: 0 / 293 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.04884, allocations: 12 kB / 293 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.04885, allocations: 11.98 kB / 293 MB, free: 13.19 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003237/0.04918, allocations: 251.8 kB / 293.3 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.05086, allocations: 1.485 MB / 294.7 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.05115, allocations: 191.9 kB / 294.9 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002678/0.05142, allocations: 252.6 kB / 295.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008039/0.05946, allocations: 7.792 MB / 303 MB, free: 2.961 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/0.05973, allocations: 184.9 kB / 303.2 MB, free: 2.766 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 3.446e-06/0.05973, allocations: 3.984 kB / 303.2 MB, free: 2.762 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009171/0.06065, allocations: 0.5663 MB / 303.7 MB, free: 2.184 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.06069, allocations: 63.28 kB / 303.8 MB, free: 2.109 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.06198, allocations: 1.594 MB / 305.4 MB, free: 484 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.06202, allocations: 29.7 kB / 305.4 MB, free: 448 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004941/0.06251, allocations: 0.8341 MB / 306.2 MB, free: 15.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.353e-05/0.06259, allocations: 99.12 kB / 306.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.06271, allocations: 131.7 kB / 306.5 MB, free: 15.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.06282, allocations: 0.4965 MB / 307 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.06294, allocations: 80.95 kB / 307 MB, free: 14.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/0.06318, allocations: 355.7 kB / 307.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003624/0.06354, allocations: 475.1 kB / 307.9 MB, free: 13.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.06354, allocations: 4 kB / 307.9 MB, free: 13.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006655/0.06421, allocations: 0.614 MB / 308.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.06423, allocations: 11.94 kB / 308.5 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-05/0.06427, allocations: 47.98 kB / 308.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002195/0.06449, allocations: 128.4 kB / 308.7 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.06471, allocations: 103.8 kB / 308.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004498/0.06516, allocations: 0.917 MB / 309.7 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003071/0.06546, allocations: 67.55 kB / 309.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.793e-05/0.06551, allocations: 36 kB / 309.8 MB, free: 11.75 MB / 298.7 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.0002011/0.06571, allocations: 200.4 kB / 310 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.06584, allocations: 206.8 kB / 310.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000764/0.06661, allocations: 0.5862 MB / 310.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.06661, allocations: 7.938 kB / 310.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.06662, allocations: 0 / 310.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.06662, allocations: 3.938 kB / 310.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.06775, allocations: 1.23 MB / 312 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.962e-05/0.06778, allocations: 32 kB / 312 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.06789, allocations: 35.97 kB / 312.1 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001467/0.06803, allocations: 123.5 kB / 312.2 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.06806, allocations: 20 kB / 312.2 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003841/0.06844, allocations: 0.9093 MB / 313.1 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.06845, allocations: 4 kB / 313.1 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005121/0.06896, allocations: 0.6435 MB / 313.8 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.06917, allocations: 224.5 kB / 314 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.006e-05/0.06926, allocations: 8 kB / 314 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.06945, allocations: 15.98 kB / 314 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.725e-05/0.06953, allocations: 47.88 kB / 314.1 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.06956, allocations: 24.03 kB / 314.1 MB, free: 7.293 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007129/0.07028, allocations: 0.9027 MB / 315 MB, free: 6.371 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.07028, allocations: 0 / 315 MB, free: 6.371 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006162/0.07089, allocations: 335.6 kB / 315.3 MB, free: 6.043 MB / 298.7 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.0006174/0.07151, allocations: 0.6089 MB / 315.9 MB, free: 5.426 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005018/0.07201, allocations: 374.7 kB / 316.3 MB, free: 5.047 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.07202, allocations: 4.062 kB / 316.3 MB, free: 5.043 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002252/0.07224, allocations: 220 kB / 316.5 MB, free: 4.812 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006505/0.07289, allocations: 267 kB / 316.8 MB, free: 4.547 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.07507, allocations: 2.137 MB / 318.9 MB, free: 2.352 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001327/0.0752, allocations: 215.1 kB / 319.1 MB, free: 2.117 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003686/0.07557, allocations: 203.9 kB / 319.3 MB, free: 1.914 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.07568, allocations: 92.5 kB / 319.4 MB, free: 1.82 MB / 298.7 MB Notification: Performance of SimCode: time 1.262e-06/0.07568, allocations: 0 / 319.4 MB, free: 1.82 MB / 298.7 MB Notification: Performance of Templates: time 0.02772/0.1034, allocations: 24.23 MB / 343.6 MB, free: 9.59 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.187064152210951]