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.001361/0.001361, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009672/0.0009672, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9812/0.9812, allocations: 177.1 MB / 206.1 MB, free: 4.48 MB / 186.7 MB " [Timeout remaining time 179] 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=2000,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=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.139e-05/1.241e-05, allocations: 6.312 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005537/0.005549, allocations: 7.575 MB / 281.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01393/0.01948, allocations: 18.18 MB / 299.9 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00059/0.02007, allocations: 98.88 kB / 300 MB, free: 10.49 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.02146, allocations: 0.7749 MB / 300.8 MB, free: 9.707 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002996/0.02445, allocations: 1.87 MB / 302.7 MB, free: 7.82 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001782/0.02623, allocations: 1.355 MB / 304 MB, free: 6.461 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002813/0.02905, allocations: 3.466 MB / 307.5 MB, free: 2.984 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.02926, allocations: 120.9 kB / 307.6 MB, free: 2.84 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001523/0.03078, allocations: 1.536 MB / 309.1 MB, free: 1.301 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004009/0.03118, allocations: 438.5 kB / 309.6 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.795e-05/0.03124, allocations: 40 kB / 309.6 MB, free: 0.832 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001621/0.03286, allocations: 1.175 MB / 310.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.03298, allocations: 174.8 kB / 311 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002673/0.03325, allocations: 382.8 kB / 311.3 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001494/0.03474, allocations: 1.798 MB / 313.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.03474, allocations: 3.938 kB / 313.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.03474, allocations: 0 / 313.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.03475, allocations: 4 kB / 313.1 MB, free: 13.3 MB / 298.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.001588/0.03634, allocations: 2.151 MB / 315.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.727e-05/0.03637, allocations: 8.031 kB / 315.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.03653, allocations: 222.7 kB / 315.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.03793, allocations: 1.384 MB / 316.9 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.03795, allocations: 24.64 kB / 316.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.526e-05/0.038, allocations: 31.98 kB / 317 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003706/0.03837, allocations: 290.6 kB / 317.2 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.03839, allocations: 0 / 317.2 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.03842, allocations: 12 kB / 317.2 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.03843, allocations: 15.94 kB / 317.3 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002362/0.03867, allocations: 216.4 kB / 317.5 MB, free: 8.816 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.04001, allocations: 1.219 MB / 318.7 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.04021, allocations: 172 kB / 318.9 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.04042, allocations: 232.7 kB / 319.1 MB, free: 7.148 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007668/0.04809, allocations: 7.753 MB / 326.8 MB, free: 15.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.04828, allocations: 169.6 kB / 327 MB, free: 15.01 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.04828, allocations: 8 kB / 327 MB, free: 15 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006774/0.04896, allocations: 0.5311 MB / 327.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/0.04899, allocations: 63.33 kB / 327.6 MB, free: 14.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009659/0.04996, allocations: 1.565 MB / 329.2 MB, free: 12.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.04998, allocations: 29.7 kB / 329.2 MB, free: 12.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004638/0.05045, allocations: 0.8414 MB / 330 MB, free: 11.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.914e-05/0.0505, allocations: 99.2 kB / 330.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.05061, allocations: 135.7 kB / 330.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004146/0.05103, allocations: 0.5042 MB / 330.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.809e-05/0.05111, allocations: 64.95 kB / 330.8 MB, free: 11.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.0513, allocations: 343.7 kB / 331.2 MB, free: 10.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003048/0.0516, allocations: 443.6 kB / 331.6 MB, free: 10.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.05161, allocations: 4 kB / 331.6 MB, free: 10.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005441/0.05215, allocations: 0.5834 MB / 332.2 MB, free: 9.465 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.05217, allocations: 8 kB / 332.2 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.274e-05/0.05221, allocations: 48.06 kB / 332.3 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000192/0.0524, allocations: 119.6 kB / 332.4 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.0526, allocations: 107.8 kB / 332.5 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000427/0.05303, allocations: 0.9092 MB / 333.4 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.05327, allocations: 67.55 kB / 333.4 MB, free: 8.176 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.05331, allocations: 36.03 kB / 333.5 MB, free: 8.141 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.0001835/0.05349, allocations: 192.4 kB / 333.7 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.05362, allocations: 198.8 kB / 333.9 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007101/0.05433, allocations: 0.5851 MB / 334.5 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.05433, allocations: 0 / 334.5 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.05433, allocations: 0 / 334.5 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.05434, allocations: 7.984 kB / 334.5 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.05537, allocations: 1.25 MB / 335.7 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.907e-05/0.0554, allocations: 32 kB / 335.7 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.819e-05/0.05549, allocations: 39.91 kB / 335.8 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/0.05563, allocations: 119.6 kB / 335.9 MB, free: 5.637 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.05565, allocations: 24.05 kB / 335.9 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003621/0.05601, allocations: 0.8937 MB / 336.8 MB, free: 4.688 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.05601, allocations: 3.938 kB / 336.8 MB, free: 4.684 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006797/0.05669, allocations: 0.6168 MB / 337.4 MB, free: 4.031 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/0.05689, allocations: 220.5 kB / 337.6 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.534e-05/0.05697, allocations: 8 kB / 337.7 MB, free: 3.809 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.05717, allocations: 19.98 kB / 337.7 MB, free: 3.789 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.66e-05/0.05723, allocations: 47.97 kB / 337.7 MB, free: 3.742 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.05726, allocations: 20 kB / 337.7 MB, free: 3.723 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004906/0.05775, allocations: 0.8356 MB / 338.6 MB, free: 2.867 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05775, allocations: 0 / 338.6 MB, free: 2.867 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004789/0.05823, allocations: 335.5 kB / 338.9 MB, free: 2.539 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.0006334/0.05886, allocations: 0.6723 MB / 339.6 MB, free: 1.852 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003898/0.05925, allocations: 349.3 kB / 339.9 MB, free: 1.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.05925, allocations: 4 kB / 339.9 MB, free: 1.496 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.05944, allocations: 208.1 kB / 340.1 MB, free: 1.277 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007718/0.06021, allocations: 335.1 kB / 340.5 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.06203, allocations: 2.099 MB / 342.6 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.06215, allocations: 219 kB / 342.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003253/0.06248, allocations: 195.9 kB / 343 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003398/0.06282, allocations: 358 kB / 343.3 MB, free: 14 MB / 330.7 MB Notification: Performance of SimCode: time 7.71e-07/0.06282, allocations: 0 / 343.3 MB, free: 14 MB / 330.7 MB Notification: Performance of Templates: time 0.1285/0.1913, allocations: 22.86 MB / 366.2 MB, free: 68.75 MB / 330.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.319515302311629]