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.0008924/0.0008924, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.0008877/0.0008877, allocations: 166.9 kB / 25.7 MB, free: 8.395 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.8271/0.8271, allocations: 158.6 MB / 187.6 MB, free: 2.793 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.182e-06/1.182e-06, allocations: 0 / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.531e-05/1.649e-05, allocations: 6.25 kB / 251.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005397/0.005414, allocations: 7.261 MB / 258.8 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.02131, allocations: 17.57 MB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006647/0.02198, allocations: 98.88 kB / 276.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001357/0.02334, allocations: 0.7604 MB / 277.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003256/0.02659, allocations: 1.87 MB / 279.1 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00268/0.02927, allocations: 1.317 MB / 280.4 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002751/0.03202, allocations: 3.32 MB / 283.7 MB, free: 6.934 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.03224, allocations: 144.9 kB / 283.9 MB, free: 6.758 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00112/0.03336, allocations: 1.436 MB / 285.3 MB, free: 5.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003799/0.03374, allocations: 418.6 kB / 285.7 MB, free: 4.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.643e-05/0.03379, allocations: 40 kB / 285.7 MB, free: 4.871 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001596/0.03539, allocations: 1.058 MB / 286.8 MB, free: 3.812 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002395/0.03563, allocations: 170.8 kB / 287 MB, free: 3.645 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002723/0.0359, allocations: 390.8 kB / 287.3 MB, free: 3.262 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001455/0.03736, allocations: 1.81 MB / 289.2 MB, free: 1.445 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.03736, allocations: 3.984 kB / 289.2 MB, free: 1.441 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.03736, allocations: 4 kB / 289.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.03737, allocations: 0 / 289.2 MB, free: 1.438 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.00148/0.03885, allocations: 1.942 MB / 291.1 MB, free: 15.46 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.03888, allocations: 11.98 kB / 291.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.03901, allocations: 143.8 kB / 291.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009964/0.04, allocations: 1.125 MB / 292.4 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.04002, allocations: 28.59 kB / 292.4 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.261e-05/0.04006, allocations: 24 kB / 292.4 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.04038, allocations: 281.4 kB / 292.7 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.04039, allocations: 0 / 292.7 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.472e-05/0.04041, allocations: 15.98 kB / 292.7 MB, free: 13.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.04042, allocations: 11.94 kB / 292.7 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.0406, allocations: 112.5 kB / 292.8 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.04165, allocations: 0.8022 MB / 293.6 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.04183, allocations: 183.5 kB / 293.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004798/0.04231, allocations: 205.7 kB / 294 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01158/0.05389, allocations: 11.62 MB / 305.6 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.05407, allocations: 151.1 kB / 305.8 MB, free: 180 kB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.523e-06/0.05407, allocations: 0 / 305.8 MB, free: 180 kB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005378/0.05461, allocations: 350.1 kB / 306.1 MB, free: 15.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.05465, allocations: 67.33 kB / 306.2 MB, free: 15.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007347/0.05538, allocations: 1.327 MB / 307.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.05541, allocations: 33.7 kB / 307.6 MB, free: 14.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.05561, allocations: 416.2 kB / 308 MB, free: 13.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00033/0.05594, allocations: 95.23 kB / 308.1 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.416e-05/0.05603, allocations: 106 kB / 308.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.97e-05/0.0561, allocations: 329.9 kB / 308.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.984e-05/0.05616, allocations: 40.98 kB / 308.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.05631, allocations: 246.9 kB / 308.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.05655, allocations: 358.1 kB / 309.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.05656, allocations: 0 / 309.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003882/0.05694, allocations: 406.5 kB / 309.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.05696, allocations: 8 kB / 309.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.901e-05/0.05699, allocations: 19.88 kB / 309.5 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001595/0.05715, allocations: 81.45 kB / 309.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.05733, allocations: 99.83 kB / 309.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003189/0.05765, allocations: 0.5717 MB / 310.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.05788, allocations: 63.64 kB / 310.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.882e-05/0.05792, allocations: 20 kB / 310.4 MB, free: 11.3 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.000159/0.05807, allocations: 149.6 kB / 310.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.105e-05/0.05817, allocations: 127.8 kB / 310.6 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005882/0.05875, allocations: 457.4 kB / 311.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.05876, allocations: 4 kB / 311.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.05876, allocations: 0 / 311.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.05876, allocations: 0 / 311.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007858/0.05955, allocations: 0.8894 MB / 312 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/0.05957, allocations: 8 kB / 312 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.758e-05/0.05966, allocations: 35.97 kB / 312 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001103/0.05977, allocations: 56.88 kB / 312.1 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.05979, allocations: 19.92 kB / 312.1 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000259/0.06005, allocations: 0.5602 MB / 312.7 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.06005, allocations: 0 / 312.7 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.06035, allocations: 391.8 kB / 313 MB, free: 8.504 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/0.06054, allocations: 197.2 kB / 313.2 MB, free: 8.309 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.408e-05/0.06062, allocations: 8 kB / 313.2 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.0608, allocations: 19.98 kB / 313.3 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.352e-05/0.06086, allocations: 31.88 kB / 313.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.06088, allocations: 8 kB / 313.3 MB, free: 8.242 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004039/0.06128, allocations: 0.6911 MB / 314 MB, free: 7.527 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.06128, allocations: 0 / 314 MB, free: 7.527 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004802/0.06176, allocations: 335.6 kB / 314.3 MB, free: 7.199 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.0006345/0.0624, allocations: 0.6694 MB / 315 MB, free: 6.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005843/0.06298, allocations: 275.9 kB / 315.3 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.511e-05/0.063, allocations: 24.12 kB / 315.3 MB, free: 6.215 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000151/0.06315, allocations: 145.3 kB / 315.4 MB, free: 6.059 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.06367, allocations: 263.1 kB / 315.7 MB, free: 5.797 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.06542, allocations: 2.02 MB / 317.7 MB, free: 3.723 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001182/0.06554, allocations: 211.2 kB / 317.9 MB, free: 3.492 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002882/0.06583, allocations: 195.9 kB / 318.1 MB, free: 3.297 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003337/0.06616, allocations: 317.1 kB / 318.4 MB, free: 2.988 MB / 298.7 MB Notification: Performance of SimCode: time 8.12e-07/0.06616, allocations: 4 kB / 318.4 MB, free: 2.984 MB / 298.7 MB Notification: Performance of Templates: time 0.02465/0.09081, allocations: 22.57 MB / 341 MB, free: 12.42 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: 2.9048814098350704]