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.0011/0.0011, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004377/0.004377, allocations: 159.5 kB / 24.7 MB, free: 9.441 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.866/0.866, allocations: 177 MB / 204.9 MB, free: 5.75 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=1999,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=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.555e-05/2.719e-05, allocations: 2.281 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005305/0.005333, allocations: 6.93 MB / 332.7 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01334/0.01868, allocations: 16.7 MB / 349.4 MB, free: 7.672 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001137/0.01981, allocations: 98.88 kB / 349.5 MB, free: 7.574 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.02154, allocations: 0.7632 MB / 350.3 MB, free: 6.805 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005005/0.02654, allocations: 1.874 MB / 352.1 MB, free: 4.918 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003451/0.02999, allocations: 1.34 MB / 353.5 MB, free: 3.574 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003857/0.03385, allocations: 3.407 MB / 356.9 MB, free: 160 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003116/0.03416, allocations: 124.8 kB / 357 MB, free: 12 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008108/0.03497, allocations: 0.787 MB / 357.8 MB, free: 15.22 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.03534, allocations: 422.5 kB / 358.2 MB, free: 14.81 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.525e-05/0.0354, allocations: 40 kB / 358.2 MB, free: 14.77 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002719/0.03812, allocations: 1.178 MB / 359.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.03824, allocations: 170.8 kB / 359.6 MB, free: 13.42 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003723/0.03861, allocations: 386.8 kB / 360 MB, free: 13.04 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002705/0.04131, allocations: 2.262 MB / 362.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.04132, allocations: 0 / 362.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.04132, allocations: 0 / 362.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.127e-05/0.04134, allocations: 0 / 362.2 MB, free: 10.77 MB / 330.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.001984/0.04333, allocations: 1.979 MB / 364.2 MB, free: 8.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.04337, allocations: 11.98 kB / 364.2 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.04354, allocations: 202.7 kB / 364.4 MB, free: 8.539 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.04478, allocations: 1.257 MB / 365.7 MB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.0448, allocations: 20.66 kB / 365.7 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.422e-05/0.04485, allocations: 27.98 kB / 365.7 MB, free: 7.152 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005593/0.04541, allocations: 437.8 kB / 366.1 MB, free: 6.719 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.04542, allocations: 4 kB / 366.1 MB, free: 6.715 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.04545, allocations: 8 kB / 366.2 MB, free: 6.707 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.04547, allocations: 15.92 kB / 366.2 MB, free: 6.691 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.04648, allocations: 478.4 kB / 366.6 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.04828, allocations: 1.425 MB / 368.1 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005396/0.04882, allocations: 343.4 kB / 368.4 MB, free: 4.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004029/0.04922, allocations: 369.5 kB / 368.8 MB, free: 4.047 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007813/0.05703, allocations: 6.981 MB / 375.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003968/0.05743, allocations: 263.1 kB / 376 MB, free: 12.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.655e-06/0.05743, allocations: 0 / 376 MB, free: 12.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001199/0.05863, allocations: 0.7703 MB / 376.8 MB, free: 11.81 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.05867, allocations: 59.41 kB / 376.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.05985, allocations: 1.459 MB / 378.3 MB, free: 10.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.05988, allocations: 33.7 kB / 378.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004065/0.06029, allocations: 0.7271 MB / 379 MB, free: 9.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.468e-05/0.06035, allocations: 95.2 kB / 379.1 MB, free: 9.383 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.06047, allocations: 134 kB / 379.3 MB, free: 9.246 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.096e-05/0.06055, allocations: 329.9 kB / 379.6 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002311/0.06078, allocations: 156.9 kB / 379.7 MB, free: 8.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003108/0.06109, allocations: 362.8 kB / 380.1 MB, free: 8.316 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008026/0.0619, allocations: 0.5372 MB / 380.6 MB, free: 7.688 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.768e-06/0.0619, allocations: 8 kB / 380.6 MB, free: 7.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008236/0.06272, allocations: 0.7486 MB / 381.4 MB, free: 6.922 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.06274, allocations: 8 kB / 381.4 MB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.832e-05/0.06278, allocations: 44.09 kB / 381.4 MB, free: 6.871 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002288/0.06301, allocations: 132.8 kB / 381.6 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.06322, allocations: 103.8 kB / 381.7 MB, free: 6.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004289/0.06365, allocations: 0.6773 MB / 382.4 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.06398, allocations: 75.66 kB / 382.4 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/0.06402, allocations: 35.94 kB / 382.5 MB, free: 5.824 MB / 346.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.000309/0.06433, allocations: 278.5 kB / 382.7 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.06445, allocations: 194.8 kB / 382.9 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009934/0.06544, allocations: 0.7308 MB / 383.7 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.06545, allocations: 4 kB / 383.7 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.06545, allocations: 0 / 383.7 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.06546, allocations: 0 / 383.7 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.06674, allocations: 1.196 MB / 384.9 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.778e-05/0.06676, allocations: 39.94 kB / 384.9 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.06688, allocations: 48.02 kB / 384.9 MB, free: 3.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.06702, allocations: 132.7 kB / 385.1 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.06705, allocations: 16 kB / 385.1 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003674/0.06741, allocations: 0.6656 MB / 385.8 MB, free: 2.434 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.06742, allocations: 128 / 385.8 MB, free: 2.434 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007054/0.06812, allocations: 0.7173 MB / 386.5 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/0.06839, allocations: 224.5 kB / 386.7 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.99e-05/0.06847, allocations: 4 kB / 386.7 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.06868, allocations: 31.97 kB / 386.7 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.292e-05/0.06876, allocations: 43.88 kB / 386.8 MB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/0.06879, allocations: 24 kB / 386.8 MB, free: 1.367 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001069/0.06986, allocations: 0.9571 MB / 387.7 MB, free: 400 kB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.06986, allocations: 0 / 387.7 MB, free: 400 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006086/0.07047, allocations: 335.5 kB / 388.1 MB, free: 64 kB / 346.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.0006305/0.0711, allocations: 0.5927 MB / 388.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007515/0.07185, allocations: 0.5013 MB / 389.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.07185, allocations: 0 / 389.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003272/0.07218, allocations: 287.5 kB / 389.4 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007739/0.07296, allocations: 313.6 kB / 389.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002228/0.07518, allocations: 2.24 MB / 392 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.0755, allocations: 0.5743 MB / 392.6 MB, free: 11.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.07561, allocations: 92.5 kB / 392.7 MB, free: 11.35 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.07561, allocations: 0 / 392.7 MB, free: 11.35 MB / 362.7 MB Notification: Performance of Templates: time 0.02569/0.1013, allocations: 26.7 MB / 419.4 MB, free: 0.7031 MB / 378.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time [Calling sys.exit(0), Time elapsed: 6.470949102193117]