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.001404/0.001404, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.001869/0.001869, allocations: 205.6 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.501/1.501, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002175/0.002175, allocations: 67.83 kB / 378.2 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2419, allocations: 53.41 MB / 431.6 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008773/0.2507, allocations: 6.921 MB / 438.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0206/0.2713, allocations: 16.71 MB / 455.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/0.2724, allocations: 94.94 kB / 455.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00213/0.2745, allocations: 0.7613 MB / 456.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005084/0.2796, allocations: 1.811 MB / 457.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003752/0.2833, allocations: 1.324 MB / 459.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004901/0.2882, allocations: 3.314 MB / 462.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002848/0.2885, allocations: 124.9 kB / 462.7 MB, free: 7.324 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000772/0.2893, allocations: 0.5873 MB / 463.3 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006969/0.29, allocations: 0.5356 MB / 463.8 MB, free: 6.195 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.2901, allocations: 40 kB / 463.8 MB, free: 6.156 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002972/0.2931, allocations: 1.178 MB / 465 MB, free: 4.977 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.2932, allocations: 162.9 kB / 465.2 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005659/0.2938, allocations: 0.5084 MB / 465.7 MB, free: 4.305 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00295/0.2967, allocations: 2.237 MB / 467.9 MB, free: 2.059 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2967, allocations: 4 kB / 467.9 MB, free: 2.055 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2968, allocations: 4 kB / 467.9 MB, free: 2.051 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.069e-05/0.2968, allocations: 0 / 467.9 MB, free: 2.051 MB / 366.1 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.003126/0.2999, allocations: 1.987 MB / 469.9 MB, free: 20 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.2999, allocations: 15.97 kB / 469.9 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002359/0.3002, allocations: 210.7 kB / 470.1 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002044/0.3022, allocations: 1.249 MB / 471.4 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.3022, allocations: 20.66 kB / 471.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.126e-05/0.3023, allocations: 24 kB / 471.4 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009032/0.3032, allocations: 441.8 kB / 471.9 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.3033, allocations: 3.938 kB / 471.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.3033, allocations: 8 kB / 471.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.3033, allocations: 15.98 kB / 471.9 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.3044, allocations: 478.3 kB / 472.4 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002693/0.3071, allocations: 1.417 MB / 473.8 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009055/0.308, allocations: 339.3 kB / 474.1 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007253/0.3087, allocations: 377.8 kB / 474.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/0.3237, allocations: 6.988 MB / 481.5 MB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006949/0.3244, allocations: 260.4 kB / 481.7 MB, free: 3.855 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.505e-06/0.3244, allocations: 4 kB / 481.7 MB, free: 3.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002141/0.3266, allocations: 0.7742 MB / 482.5 MB, free: 3.066 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.3266, allocations: 59.34 kB / 482.6 MB, free: 2.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001977/0.3286, allocations: 1.463 MB / 484 MB, free: 1.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.3286, allocations: 33.69 kB / 484.1 MB, free: 1.457 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007081/0.3294, allocations: 0.7193 MB / 484.8 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.909e-05/0.3295, allocations: 107.2 kB / 484.9 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.3296, allocations: 126 kB / 485 MB, free: 0.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3298, allocations: 326 kB / 485.3 MB, free: 180 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004479/0.3303, allocations: 160.9 kB / 485.5 MB, free: 20 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007568/0.331, allocations: 358.8 kB / 485.8 MB, free: 15.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.3321, allocations: 0.5294 MB / 486.4 MB, free: 14.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.3321, allocations: 4 kB / 486.4 MB, free: 14.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001715/0.3338, allocations: 0.7556 MB / 487.1 MB, free: 14.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.3339, allocations: 8 kB / 487.1 MB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.962e-05/0.3339, allocations: 40 kB / 487.2 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003566/0.3343, allocations: 141.6 kB / 487.3 MB, free: 14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.3347, allocations: 103.8 kB / 487.4 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007149/0.3354, allocations: 0.6773 MB / 488.1 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005664/0.336, allocations: 79.47 kB / 488.2 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.818e-05/0.336, allocations: 36 kB / 488.2 MB, free: 13.08 MB / 398.1 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.0004544/0.3365, allocations: 276.7 kB / 488.5 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/0.3367, allocations: 198.7 kB / 488.7 MB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/0.3386, allocations: 0.7388 MB / 489.4 MB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.3386, allocations: 3.984 kB / 489.4 MB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3386, allocations: 0 / 489.4 MB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3386, allocations: 0 / 489.4 MB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/0.3409, allocations: 1.196 MB / 490.6 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.147e-05/0.341, allocations: 44.05 kB / 490.6 MB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002584/0.3413, allocations: 47.89 kB / 490.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002555/0.3415, allocations: 124.9 kB / 490.8 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/0.3416, allocations: 16 kB / 490.8 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006531/0.3422, allocations: 0.6734 MB / 491.5 MB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3422, allocations: 0 / 491.5 MB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.3436, allocations: 0.7221 MB / 492.2 MB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004623/0.3441, allocations: 208.6 kB / 492.4 MB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.3442, allocations: 11.98 kB / 492.4 MB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004387/0.3447, allocations: 23.97 kB / 492.5 MB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.3448, allocations: 35.95 kB / 492.5 MB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.71e-05/0.3449, allocations: 31.98 kB / 492.5 MB, free: 8.621 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001422/0.3463, allocations: 0.9571 MB / 493.5 MB, free: 7.645 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3463, allocations: 3.938 kB / 493.5 MB, free: 7.641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009656/0.3473, allocations: 331.6 kB / 493.8 MB, free: 7.316 MB / 398.1 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.0009461/0.3482, allocations: 0.5841 MB / 494.4 MB, free: 6.727 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.3496, allocations: 0.4965 MB / 494.9 MB, free: 6.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3496, allocations: 0 / 494.9 MB, free: 6.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007712/0.3504, allocations: 279.7 kB / 495.2 MB, free: 5.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/0.3518, allocations: 302.2 kB / 495.5 MB, free: 5.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004025/0.3558, allocations: 2.252 MB / 497.7 MB, free: 3.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006449/0.3564, allocations: 0.5666 MB / 498.3 MB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006098/0.357, allocations: 203.9 kB / 498.5 MB, free: 2.531 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.3572, allocations: 91.44 kB / 498.6 MB, free: 2.441 MB / 398.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3572, allocations: 0 / 498.6 MB, free: 2.441 MB / 398.1 MB Notification: Performance of Templates: time 0.03994/0.3972, allocations: 21.41 MB / 0.5078 GB, free: 13.24 MB / 430.1 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] Reference file matches [Calling sys.exit(0), Time elapsed: 5.145435212180018]