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.001301/0.001301, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001399/0.001399, allocations: 166 kB / 25.61 MB, free: 8.582 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.9547/0.9547, allocations: 177.1 MB / 206 MB, free: 4.523 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.332e-06/1.332e-06, allocations: 0 / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.376e-05/1.509e-05, allocations: 2.312 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.002888/0.002903, allocations: 2.62 MB / 276.8 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000942/0.003845, allocations: 0.651 MB / 277.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.003954, allocations: 4.5 kB / 277.5 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.004083, allocations: 43.58 kB / 277.5 MB, free: 1.078 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.004213, allocations: 82.39 kB / 277.6 MB, free: 1 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.004464, allocations: 95.8 kB / 277.7 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003119/0.004776, allocations: 374.5 kB / 278.1 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.004912, allocations: 65.06 kB / 278.1 MB, free: 480 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.005091, allocations: 199.6 kB / 278.3 MB, free: 280 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.00523, allocations: 119.6 kB / 278.4 MB, free: 160 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.045e-05/0.00527, allocations: 28 kB / 278.5 MB, free: 132 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.034e-05/0.0053, allocations: 32 kB / 278.5 MB, free: 100 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.834e-05/0.005349, allocations: 63.75 kB / 278.6 MB, free: 36 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.215e-05/0.005441, allocations: 107.8 kB / 278.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.00567, allocations: 243.2 kB / 278.9 MB, free: 15.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.005671, allocations: 0 / 278.9 MB, free: 15.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.005672, allocations: 0 / 278.9 MB, free: 15.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.005676, allocations: 0 / 278.9 MB, free: 15.69 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.0006646/0.006341, allocations: 0.6671 MB / 279.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.021e-05/0.006371, allocations: 8.031 kB / 279.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.778e-05/0.006439, allocations: 56.75 kB / 279.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.006632, allocations: 196.2 kB / 279.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.711e-05/0.006709, allocations: 157.6 kB / 280 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.006743, allocations: 24.36 kB / 280 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.007005, allocations: 286.7 kB / 280.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.007014, allocations: 192 / 280.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.007034, allocations: 16.12 kB / 280.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.007041, allocations: 4 kB / 280.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001227/0.007164, allocations: 77.42 kB / 280.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007203/0.007884, allocations: 0.7766 MB / 281.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.008042, allocations: 127.1 kB / 281.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.819e-05/0.00813, allocations: 67.64 kB / 281.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.008142, allocations: 4.344 kB / 281.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001755/0.008318, allocations: 227.1 kB / 281.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.092e-06/0.008319, allocations: 0 / 281.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.000569/0.008888, allocations: 281.1 kB / 281.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.008933, allocations: 114.7 kB / 282 MB, free: 12.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.009066, allocations: 250.6 kB / 282.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.009091, allocations: 33.7 kB / 282.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.492e-05/0.009186, allocations: 199.1 kB / 282.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.009229, allocations: 63.47 kB / 282.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.788e-05/0.009306, allocations: 63.56 kB / 282.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.00945, allocations: 0.5001 MB / 283.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.352e-05/0.009534, allocations: 95.59 kB / 283.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.009649, allocations: 165 kB / 283.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.009795, allocations: 165 kB / 283.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.009798, allocations: 0 / 283.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003873/0.01018, allocations: 369.6 kB / 283.8 MB, free: 10.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.014e-05/0.01023, allocations: 67.34 kB / 283.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.01023, allocations: 0 / 283.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002052/0.01044, allocations: 91.66 kB / 284 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.768e-05/0.01053, allocations: 31.98 kB / 284 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.01195, allocations: 2.298 MB / 286.3 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001825/0.01214, allocations: 51.78 kB / 286.4 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.01215, allocations: 8 kB / 286.4 MB, free: 7.664 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.0001/0.01225, allocations: 178.7 kB / 286.5 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.952e-05/0.01228, allocations: 27.86 kB / 286.6 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.011e-05/0.01231, allocations: 29.8 kB / 286.6 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.01231, allocations: 4 kB / 286.6 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.01232, allocations: 3.938 kB / 286.6 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.01232, allocations: 3.938 kB / 286.6 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.01259, allocations: 361.6 kB / 287 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.0126, allocations: 4 kB / 287 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.318e-05/0.01267, allocations: 23.92 kB / 287 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001443/0.01281, allocations: 91.62 kB / 287.1 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.01283, allocations: 7.984 kB / 287.1 MB, free: 6.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.01411, allocations: 2.287 MB / 289.4 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01411, allocations: 0 / 289.4 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/0.01437, allocations: 254.6 kB / 289.6 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-05/0.01443, allocations: 43.77 kB / 289.7 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.01444, allocations: 4 kB / 289.7 MB, free: 4.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.208e-05/0.01454, allocations: 23.98 kB / 289.7 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.0146, allocations: 31.88 kB / 289.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.01461, allocations: 12.06 kB / 289.7 MB, free: 4.102 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.608e-05/0.01468, allocations: 177.3 kB / 289.9 MB, free: 3.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.1e-08/0.01468, allocations: 0 / 289.9 MB, free: 3.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002549/0.01493, allocations: 87.89 kB / 290 MB, free: 3.844 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 9.018e-05/0.01502, allocations: 103.2 kB / 290.1 MB, free: 3.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005042/0.01553, allocations: 497.5 kB / 290.6 MB, free: 3.191 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.01553, allocations: 0 / 290.6 MB, free: 3.191 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.0157, allocations: 269.4 kB / 290.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.01592, allocations: 60.25 kB / 290.9 MB, free: 2.848 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007236/0.01664, allocations: 490.9 kB / 291.4 MB, free: 2.336 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.128e-05/0.01669, allocations: 92.31 kB / 291.5 MB, free: 2.227 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.118e-05/0.01674, allocations: 13.62 kB / 291.5 MB, free: 2.211 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.01688, allocations: 130.2 kB / 291.6 MB, free: 2.082 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01688, allocations: 0 / 291.6 MB, free: 2.082 MB / 266.7 MB Notification: Performance of Templates: time 0.007034/0.02391, allocations: 5.286 MB / 296.9 MB, free: 12.88 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.4406195050105453]