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.001188/0.001188, allocations: 75.75 kB / 21.69 MB, free: 2.852 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.001217/0.001217, allocations: 161 kB / 24.99 MB, free: 9.32 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.971/0.971, allocations: 177.1 MB / 205.3 MB, free: 5.594 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.473e-06/1.473e-06, allocations: 0 / 273.1 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.454e-05/2.601e-05, allocations: 2.312 kB / 273.1 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.009443/0.009469, allocations: 2.646 MB / 275.7 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007188/0.01666, allocations: 0.6622 MB / 276.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.01681, allocations: 4 kB / 276.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.01695, allocations: 39.59 kB / 276.4 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001606/0.01711, allocations: 75.28 kB / 276.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/0.01742, allocations: 99.73 kB / 276.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003938/0.01781, allocations: 374.5 kB / 277 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.01797, allocations: 65.12 kB / 277 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000235/0.01821, allocations: 203.6 kB / 277.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.01838, allocations: 115.7 kB / 277.3 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.791e-05/0.01842, allocations: 32 kB / 277.4 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.967e-05/0.01846, allocations: 28 kB / 277.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.823e-05/0.01852, allocations: 63.75 kB / 277.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.01863, allocations: 107.7 kB / 277.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.01894, allocations: 239.2 kB / 277.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.01894, allocations: 0 / 277.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01894, allocations: 4 kB / 277.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.01895, allocations: 0 / 277.8 MB, free: 13.04 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.003892/0.02284, allocations: 0.6632 MB / 278.5 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.02288, allocations: 12.03 kB / 278.5 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.02298, allocations: 52.75 kB / 278.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.02325, allocations: 192.2 kB / 278.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003447/0.02359, allocations: 161.6 kB / 278.9 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.02364, allocations: 20.38 kB / 278.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.02402, allocations: 298.7 kB / 279.2 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.02403, allocations: 192 / 279.2 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.02405, allocations: 12.12 kB / 279.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.02407, allocations: 4 kB / 279.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.02429, allocations: 102.9 kB / 279.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00396/0.02825, allocations: 0.8073 MB / 280.1 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002465/0.0285, allocations: 143.1 kB / 280.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.02866, allocations: 79.64 kB / 280.3 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.02867, allocations: 4 kB / 280.3 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.02891, allocations: 221.1 kB / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.934e-06/0.02891, allocations: 0 / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008059/0.02972, allocations: 320.6 kB / 280.9 MB, free: 9.715 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.02977, allocations: 106.8 kB / 281 MB, free: 9.586 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.02994, allocations: 254.7 kB / 281.2 MB, free: 9.316 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.02997, allocations: 33.7 kB / 281.2 MB, free: 9.277 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.294e-05/0.03006, allocations: 199.1 kB / 281.4 MB, free: 9.078 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.083e-05/0.03011, allocations: 71.42 kB / 281.5 MB, free: 9.008 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.656e-05/0.03021, allocations: 59.58 kB / 281.6 MB, free: 8.941 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.03034, allocations: 0.5001 MB / 282.1 MB, free: 8.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.03047, allocations: 103.6 kB / 282.2 MB, free: 8.316 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.03063, allocations: 180.2 kB / 282.3 MB, free: 8.105 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.03084, allocations: 175.7 kB / 282.5 MB, free: 7.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.03085, allocations: 0 / 282.5 MB, free: 7.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.003482/0.03433, allocations: 369.8 kB / 282.9 MB, free: 7.516 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.356e-05/0.03437, allocations: 67.33 kB / 282.9 MB, free: 7.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.03438, allocations: 4 kB / 282.9 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002685/0.03465, allocations: 95.61 kB / 283 MB, free: 7.336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.03478, allocations: 31.97 kB / 283.1 MB, free: 7.305 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.03653, allocations: 2.355 MB / 285.4 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.03676, allocations: 47.8 kB / 285.5 MB, free: 4.789 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.03678, allocations: 12 kB / 285.5 MB, free: 4.777 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.0001192/0.0369, allocations: 176.5 kB / 285.7 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.865e-05/0.03694, allocations: 35.89 kB / 285.7 MB, free: 4.559 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.54e-05/0.03697, allocations: 21.81 kB / 285.7 MB, free: 4.531 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.03698, allocations: 7.984 kB / 285.7 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.03698, allocations: 0 / 285.7 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.03698, allocations: 7.875 kB / 285.7 MB, free: 4.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004371/0.04135, allocations: 393 kB / 286.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.04136, allocations: 0 / 286.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.04146, allocations: 27.91 kB / 286.1 MB, free: 4.059 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001918/0.04165, allocations: 91.64 kB / 286.2 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.04167, allocations: 4 kB / 286.2 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.04324, allocations: 2.356 MB / 288.6 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.04324, allocations: 0 / 288.6 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004052/0.04365, allocations: 282.5 kB / 288.9 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.276e-05/0.04371, allocations: 39.77 kB / 288.9 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.04374, allocations: 4 kB / 288.9 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.04385, allocations: 19.98 kB / 288.9 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.031e-05/0.04394, allocations: 35.88 kB / 289 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.04396, allocations: 4 kB / 289 MB, free: 1.082 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00311/0.04707, allocations: 185.3 kB / 289.1 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.04707, allocations: 4.062 kB / 289.1 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004028/0.04747, allocations: 91.89 kB / 289.2 MB, free: 0.8086 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.0001243/0.0476, allocations: 107.2 kB / 289.3 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005924/0.04819, allocations: 0.4991 MB / 289.8 MB, free: 140 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.04819, allocations: 4 kB / 289.8 MB, free: 136 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.04846, allocations: 269.4 kB / 290.1 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.04874, allocations: 60.33 kB / 290.2 MB, free: 15.79 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.04975, allocations: 493.7 kB / 290.7 MB, free: 15.28 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.71e-05/0.0498, allocations: 84.31 kB / 290.7 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.135e-05/0.04987, allocations: 17.62 kB / 290.8 MB, free: 15.15 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.04991, allocations: 20.5 kB / 290.8 MB, free: 15.13 MB / 282.7 MB Notification: Performance of SimCode: time 6.31e-07/0.04991, allocations: 0 / 290.8 MB, free: 15.13 MB / 282.7 MB Notification: Performance of Templates: time 0.01057/0.06048, allocations: 4.91 MB / 295.7 MB, free: 10.29 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: 3.911561413202435]