Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.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.001223/0.001223, allocations: 83.58 kB / 21.18 MB, free: 3.387 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.001916/0.001916, allocations: 161 kB / 24.56 MB, free: 20 kB / 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 1.067/1.067, allocations: 177.1 MB / 205 MB, free: 5.637 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.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|dcPowerSupply.v|dcPowerSupply.i|bufferCapacitor.v|bufferCapacitor.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|dcPowerSupply.v|dcPowerSupply.i|bufferCapacitor.v|bufferCapacitor.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.775e-05/2.964e-05, allocations: 6.25 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003273/0.003303, allocations: 2.646 MB / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.004489, allocations: 0.6622 MB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.004608, allocations: 4 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.004749, allocations: 39.52 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001411/0.00489, allocations: 83.33 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000287/0.005177, allocations: 91.8 kB / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003175/0.005494, allocations: 370.5 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.005658, allocations: 65.06 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001964/0.005854, allocations: 207.6 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.006021, allocations: 115.7 kB / 277.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.516e-05/0.006076, allocations: 28 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.957e-05/0.006116, allocations: 32 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.323e-05/0.006179, allocations: 67.73 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.006285, allocations: 111.7 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.006577, allocations: 239.3 kB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.00658, allocations: 0 / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.006582, allocations: 0 / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.006588, allocations: 3.938 kB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008676/0.007455, allocations: 0.6671 MB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.007507, allocations: 8.031 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.94e-05/0.007607, allocations: 48.75 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.00789, allocations: 200.2 kB / 278.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.008016, allocations: 149.6 kB / 278.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.008064, allocations: 28.38 kB / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.008433, allocations: 298.7 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.008442, allocations: 192 / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.008466, allocations: 16.12 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.008478, allocations: 8 kB / 279.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.008657, allocations: 90.94 kB / 279.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008702/0.009527, allocations: 0.8034 MB / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.009764, allocations: 147.2 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.009926, allocations: 71.66 kB / 280.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.009942, allocations: 4 kB / 280.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.01018, allocations: 228.3 kB / 280.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.01018, allocations: 0 / 280.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007322/0.01091, allocations: 316.6 kB / 280.8 MB, free: 9.461 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.01097, allocations: 106.8 kB / 280.9 MB, free: 9.332 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/0.01116, allocations: 250.7 kB / 281.1 MB, free: 9.066 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.01119, allocations: 33.7 kB / 281.2 MB, free: 9.027 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.412e-05/0.01128, allocations: 211.1 kB / 281.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/0.01133, allocations: 63.48 kB / 281.4 MB, free: 8.754 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.899e-05/0.01141, allocations: 59.59 kB / 281.5 MB, free: 8.688 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000232/0.01164, allocations: 0.5001 MB / 282 MB, free: 8.176 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.01176, allocations: 99.61 kB / 282.1 MB, free: 8.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.01189, allocations: 184.2 kB / 282.3 MB, free: 7.852 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.01207, allocations: 179.6 kB / 282.4 MB, free: 7.652 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.01207, allocations: 0 / 282.4 MB, free: 7.652 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003788/0.01245, allocations: 365.8 kB / 282.8 MB, free: 7.262 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.159e-05/0.01249, allocations: 71.33 kB / 282.9 MB, free: 7.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.0125, allocations: 3.938 kB / 282.9 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002694/0.01277, allocations: 91.55 kB / 283 MB, free: 7.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.01288, allocations: 31.98 kB / 283 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.01456, allocations: 2.353 MB / 285.3 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.01475, allocations: 63.75 kB / 285.4 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.01476, allocations: 8 kB / 285.4 MB, free: 4.512 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (dcPowerSupply.cp,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,diode.off,dcPowerSupply.cc,dcPowerSupply.cv,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * 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,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001116/0.01488, allocations: 174.5 kB / 285.6 MB, free: 4.332 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.066e-05/0.01491, allocations: 27.86 kB / 285.6 MB, free: 4.305 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.94e-05/0.01494, allocations: 29.78 kB / 285.6 MB, free: 4.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.01494, allocations: 4 kB / 285.6 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.01494, allocations: 0 / 285.6 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.01494, allocations: 3.938 kB / 285.6 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003006/0.01525, allocations: 405 kB / 286 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.01525, allocations: 0 / 286 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.213e-05/0.01533, allocations: 23.92 kB / 286.1 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001593/0.01549, allocations: 87.62 kB / 286.1 MB, free: 3.707 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.01551, allocations: 4.031 kB / 286.1 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00181/0.01732, allocations: 2.352 MB / 288.5 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.01732, allocations: 0 / 288.5 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003581/0.01767, allocations: 287.5 kB / 288.8 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.251e-05/0.01775, allocations: 35.77 kB / 288.8 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.459e-05/0.01777, allocations: 12.06 kB / 288.8 MB, free: 0.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.01788, allocations: 23.97 kB / 288.9 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.106e-05/0.01796, allocations: 31.89 kB / 288.9 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.01798, allocations: 4 kB / 288.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.932e-05/0.01807, allocations: 185.3 kB / 289.1 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01807, allocations: 0 / 289.1 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002651/0.01833, allocations: 87.89 kB / 289.2 MB, free: 0.5508 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bufferCapacitor.v) * Number of discrete variables: 6 ($whenCondition1,dcPowerSupply.cv,dcPowerSupply.cc,diode.off,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001143/0.01845, allocations: 107.2 kB / 289.3 MB, free: 444 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005357/0.01898, allocations: 0.503 MB / 289.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01898, allocations: 0 / 289.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.01919, allocations: 269.3 kB / 290 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.01952, allocations: 60.25 kB / 290.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.0209, allocations: 498.9 kB / 290.6 MB, free: 15.01 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.858e-05/0.02097, allocations: 80.33 kB / 290.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.514e-05/0.02105, allocations: 17.64 kB / 290.7 MB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.142e-05/0.0211, allocations: 16.5 kB / 290.7 MB, free: 14.88 MB / 282.7 MB Notification: Performance of SimCode: time 1.463e-06/0.0211, allocations: 0 / 290.7 MB, free: 14.88 MB / 282.7 MB Notification: Performance of Templates: time 0.00762/0.02872, allocations: 4.908 MB / 295.6 MB, free: 10.04 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemoPowerSupplyWithBuffer/DemoPowerSupplyWithBuffer.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: 4.004270150791854]