Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009869/0.0009869, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 163.4 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9359/0.9359, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.189e-05/1.332e-05, allocations: 2.312 kB / 274.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005587/0.005601, allocations: 7.573 MB / 281.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01542/0.02102, allocations: 18.19 MB / 299.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009498/0.02197, allocations: 94.94 kB / 300 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.02364, allocations: 0.7749 MB / 300.7 MB, free: 9.574 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00427/0.02791, allocations: 1.87 MB / 302.6 MB, free: 7.688 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003077/0.03099, allocations: 1.347 MB / 304 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003068/0.03406, allocations: 3.466 MB / 307.4 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002252/0.03428, allocations: 124.8 kB / 307.5 MB, free: 2.711 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00121/0.03549, allocations: 1.544 MB / 309.1 MB, free: 1.164 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004034/0.0359, allocations: 426.5 kB / 309.5 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-05/0.03596, allocations: 40 kB / 309.5 MB, free: 0.707 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001871/0.03783, allocations: 1.178 MB / 310.7 MB, free: 15.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.03794, allocations: 178.8 kB / 310.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006122/0.03855, allocations: 378.8 kB / 311.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001581/0.04013, allocations: 1.795 MB / 313.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.04013, allocations: 0 / 313.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.04013, allocations: 4 kB / 313.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.04015, allocations: 0 / 313.1 MB, free: 13.18 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.001645/0.04179, allocations: 2.155 MB / 315.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.04182, allocations: 12.03 kB / 315.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.04199, allocations: 218.7 kB / 315.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.04309, allocations: 1.384 MB / 316.8 MB, free: 9.277 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.04311, allocations: 24.58 kB / 316.9 MB, free: 9.254 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.785e-05/0.04316, allocations: 28 kB / 316.9 MB, free: 9.227 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003368/0.04349, allocations: 294.6 kB / 317.2 MB, free: 8.934 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.088e-06/0.0435, allocations: 4 kB / 317.2 MB, free: 8.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.04353, allocations: 12 kB / 317.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.04354, allocations: 11.94 kB / 317.2 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002286/0.04377, allocations: 216.5 kB / 317.4 MB, free: 8.691 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.04532, allocations: 1.227 MB / 318.6 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.04553, allocations: 160 kB / 318.8 MB, free: 7.258 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.04574, allocations: 244.7 kB / 319 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007486/0.05323, allocations: 7.757 MB / 326.8 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.05342, allocations: 176.8 kB / 327 MB, free: 14.87 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 1.242e-06/0.05342, allocations: 0 / 327 MB, free: 14.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006561/0.05408, allocations: 0.5209 MB / 327.5 MB, free: 14.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/0.05411, allocations: 71.39 kB / 327.5 MB, free: 14.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009181/0.05503, allocations: 1.561 MB / 329.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.05505, allocations: 29.7 kB / 329.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004469/0.0555, allocations: 0.8453 MB / 330 MB, free: 11.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.973e-05/0.05556, allocations: 103.1 kB / 330.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.05567, allocations: 131.7 kB / 330.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.05579, allocations: 0.5042 MB / 330.7 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.669e-05/0.05587, allocations: 60.95 kB / 330.8 MB, free: 10.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.05608, allocations: 351.7 kB / 331.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.05639, allocations: 455 kB / 331.6 MB, free: 9.918 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.05639, allocations: 0 / 331.6 MB, free: 9.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005349/0.05692, allocations: 0.5791 MB / 332.1 MB, free: 9.328 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.05694, allocations: 8 kB / 332.1 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.809e-05/0.05698, allocations: 43.94 kB / 332.2 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000466/0.05745, allocations: 128.2 kB / 332.3 MB, free: 9.148 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.05763, allocations: 107.8 kB / 332.4 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003829/0.05802, allocations: 0.917 MB / 333.3 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.05827, allocations: 59.61 kB / 333.4 MB, free: 8.035 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.486e-05/0.05832, allocations: 32 kB / 333.4 MB, free: 8.004 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.0002348/0.05856, allocations: 188.4 kB / 333.6 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.05869, allocations: 206.8 kB / 333.8 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000692/0.05938, allocations: 0.5773 MB / 334.4 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.05938, allocations: 0 / 334.4 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.05938, allocations: 4 kB / 334.4 MB, free: 7.008 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.05939, allocations: 3.984 kB / 334.4 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.06042, allocations: 1.244 MB / 335.6 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.062e-05/0.06045, allocations: 40.06 kB / 335.7 MB, free: 5.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.908e-05/0.06055, allocations: 35.97 kB / 335.7 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001375/0.06068, allocations: 111.6 kB / 335.8 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.06071, allocations: 23.98 kB / 335.9 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003598/0.06107, allocations: 0.8898 MB / 336.7 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.06107, allocations: 3.938 kB / 336.7 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004371/0.06151, allocations: 0.62 MB / 337.4 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002086/0.06172, allocations: 232.5 kB / 337.6 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.442e-05/0.0618, allocations: 4 kB / 337.6 MB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.062, allocations: 19.98 kB / 337.6 MB, free: 3.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.621e-05/0.06207, allocations: 43.92 kB / 337.7 MB, free: 3.613 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.0621, allocations: 20 kB / 337.7 MB, free: 3.594 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005473/0.06265, allocations: 0.8472 MB / 338.5 MB, free: 2.727 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.06265, allocations: 0 / 338.5 MB, free: 2.727 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005638/0.06321, allocations: 335.6 kB / 338.9 MB, free: 2.398 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.0009242/0.06414, allocations: 0.666 MB / 339.5 MB, free: 1.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003807/0.06452, allocations: 346.8 kB / 339.9 MB, free: 1.371 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.06452, allocations: 0 / 339.9 MB, free: 1.371 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.06471, allocations: 220.2 kB / 340.1 MB, free: 1.141 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007202/0.06543, allocations: 318.8 kB / 340.4 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/0.06725, allocations: 2.099 MB / 342.5 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.06737, allocations: 218.7 kB / 342.7 MB, free: 14.43 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002933/0.06766, allocations: 199.8 kB / 342.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003259/0.06799, allocations: 358 kB / 343.2 MB, free: 13.88 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.06799, allocations: 0 / 343.2 MB, free: 13.88 MB / 330.7 MB Notification: Performance of Templates: time 0.1232/0.1912, allocations: 22.85 MB / 366.1 MB, free: 68.3 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.1600745250470936]