Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009631/0.0009631, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9105/0.9105, allocations: 173.4 MB / 202.3 MB, free: 8.273 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.89e-05/3.089e-05, allocations: 5.266 kB / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008252/0.008283, allocations: 7.571 MB / 276.8 MB, free: 2.207 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02369/0.03197, allocations: 18.14 MB / 294.9 MB, free: 16 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00166/0.03363, allocations: 94.98 kB / 295 MB, free: 15.92 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002656/0.03629, allocations: 0.767 MB / 295.8 MB, free: 15.15 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006761/0.04305, allocations: 1.877 MB / 297.6 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005042/0.04809, allocations: 1.347 MB / 299 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004936/0.05303, allocations: 3.423 MB / 302.4 MB, free: 8.469 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.05335, allocations: 124.8 kB / 302.5 MB, free: 8.32 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001462/0.05481, allocations: 1.497 MB / 304 MB, free: 6.82 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004151/0.05522, allocations: 434.5 kB / 304.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.784e-05/0.05528, allocations: 40 kB / 304.5 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002425/0.05771, allocations: 1.167 MB / 305.7 MB, free: 5.188 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.05783, allocations: 174.8 kB / 305.8 MB, free: 5.016 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003416/0.05817, allocations: 382.8 kB / 306.2 MB, free: 4.641 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002057/0.06023, allocations: 1.794 MB / 308 MB, free: 2.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.06023, allocations: 4 kB / 308 MB, free: 2.836 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.06024, allocations: 4 kB / 308 MB, free: 2.832 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.057e-05/0.06026, allocations: 0 / 308 MB, free: 2.832 MB / 282.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.001841/0.0621, allocations: 2.151 MB / 310.1 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.06213, allocations: 8.031 kB / 310.2 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.06231, allocations: 222.7 kB / 310.4 MB, free: 412 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.06349, allocations: 1.396 MB / 311.8 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.06351, allocations: 20.64 kB / 311.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.852e-05/0.06356, allocations: 28 kB / 311.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003789/0.06394, allocations: 290.6 kB / 312.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.06395, allocations: 0 / 312.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.06397, allocations: 15.98 kB / 312.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.06399, allocations: 19.88 kB / 312.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002397/0.06423, allocations: 212.5 kB / 312.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.06565, allocations: 1.227 MB / 313.6 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.06589, allocations: 168 kB / 313.7 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.06611, allocations: 228.6 kB / 314 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007698/0.07381, allocations: 7.744 MB / 321.7 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000233/0.07404, allocations: 185.3 kB / 321.9 MB, free: 4.535 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.663e-06/0.07404, allocations: 0 / 321.9 MB, free: 4.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008389/0.07488, allocations: 0.5252 MB / 322.4 MB, free: 4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.07492, allocations: 59.41 kB / 322.5 MB, free: 3.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.07602, allocations: 1.561 MB / 324 MB, free: 2.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.07605, allocations: 33.7 kB / 324.1 MB, free: 2.285 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004982/0.07655, allocations: 0.8375 MB / 324.9 MB, free: 1.438 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.473e-05/0.07661, allocations: 107.1 kB / 325 MB, free: 1.332 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.07674, allocations: 139.6 kB / 325.1 MB, free: 1.188 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.07685, allocations: 0.5003 MB / 325.6 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.797e-05/0.07693, allocations: 56.95 kB / 325.7 MB, free: 0.625 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.07713, allocations: 355.7 kB / 326 MB, free: 156 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003172/0.07744, allocations: 451.6 kB / 326.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.07745, allocations: 4 kB / 326.5 MB, free: 15.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005625/0.07801, allocations: 0.5794 MB / 327.1 MB, free: 14.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.07803, allocations: 12.19 kB / 327.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-05/0.07807, allocations: 43.98 kB / 327.1 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001857/0.07826, allocations: 123.6 kB / 327.2 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.07847, allocations: 107.8 kB / 327.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004191/0.07888, allocations: 0.9053 MB / 328.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.07916, allocations: 67.64 kB / 328.3 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.315e-05/0.0792, allocations: 32 kB / 328.4 MB, free: 13.67 MB / 314.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.000188/0.07939, allocations: 192.4 kB / 328.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.07952, allocations: 202.8 kB / 328.7 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007266/0.08025, allocations: 0.5811 MB / 329.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.08025, allocations: 4 kB / 329.3 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.08025, allocations: 4 kB / 329.3 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.08025, allocations: 0 / 329.3 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.08134, allocations: 1.245 MB / 330.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.245e-05/0.08137, allocations: 40 kB / 330.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.08147, allocations: 39.91 kB / 330.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/0.08162, allocations: 119.7 kB / 330.8 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.08164, allocations: 16 kB / 330.8 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003784/0.08202, allocations: 0.8976 MB / 331.7 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.08202, allocations: 3.938 kB / 331.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004686/0.08249, allocations: 0.6244 MB / 332.3 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/0.08271, allocations: 220.6 kB / 332.5 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.419e-05/0.08281, allocations: 11.98 kB / 332.5 MB, free: 9.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.08301, allocations: 24.02 kB / 332.6 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.302e-05/0.08308, allocations: 31.95 kB / 332.6 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.08311, allocations: 23.98 kB / 332.6 MB, free: 9.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005347/0.08365, allocations: 0.8395 MB / 333.5 MB, free: 8.391 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.08365, allocations: 0 / 333.5 MB, free: 8.391 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005963/0.08424, allocations: 331.6 kB / 333.8 MB, free: 8.066 MB / 314.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.0006768/0.08492, allocations: 0.6567 MB / 334.4 MB, free: 7.402 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004281/0.08535, allocations: 355.2 kB / 334.8 MB, free: 7.043 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.08535, allocations: 0 / 334.8 MB, free: 7.043 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.08556, allocations: 204 kB / 335 MB, free: 6.828 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007753/0.08633, allocations: 335.4 kB / 335.3 MB, free: 6.496 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.08829, allocations: 2.095 MB / 337.4 MB, free: 4.344 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.08842, allocations: 219.1 kB / 337.6 MB, free: 4.105 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003397/0.08876, allocations: 199.9 kB / 337.8 MB, free: 3.906 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003501/0.08911, allocations: 362 kB / 338.2 MB, free: 3.551 MB / 314.7 MB Notification: Performance of SimCode: time 6.71e-07/0.08911, allocations: 0 / 338.2 MB, free: 3.551 MB / 314.7 MB Notification: Performance of Templates: time 0.1324/0.2215, allocations: 22.8 MB / 361 MB, free: 78.39 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",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.1798224267549813]