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.0009539/0.0009539, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001011/0.001011, allocations: 161 kB / 24.56 MB, free: 12 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 0.9277/0.9277, allocations: 177.2 MB / 205 MB, free: 5.586 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.343e-06/1.343e-06, allocations: 0 / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.786e-05/1.921e-05, allocations: 2.312 kB / 273 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.00278/0.002799, allocations: 2.646 MB / 275.6 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.003846, allocations: 0.6622 MB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.003955, allocations: 4 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.004081, allocations: 39.58 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.004209, allocations: 75.28 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002475/0.004457, allocations: 103.7 kB / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003111/0.004768, allocations: 370.6 kB / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.004902, allocations: 61.12 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.005087, allocations: 207.6 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.00523, allocations: 115.6 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.477e-05/0.005275, allocations: 32 kB / 277.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.537e-05/0.00531, allocations: 32 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.781e-05/0.005358, allocations: 59.81 kB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.576e-05/0.005454, allocations: 111.7 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.005708, allocations: 243.2 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.005711, allocations: 0 / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.005711, allocations: 0 / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.005716, allocations: 0 / 277.7 MB, free: 12.73 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.0008015/0.006518, allocations: 0.6671 MB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.006555, allocations: 8.031 kB / 278.4 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.004e-05/0.006635, allocations: 52.75 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.006897, allocations: 200.2 kB / 278.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.007028, allocations: 153.6 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.986e-05/0.007068, allocations: 28.36 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.007386, allocations: 298.7 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.007396, allocations: 192 / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.007418, allocations: 8.125 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.007431, allocations: 8 kB / 279.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.007624, allocations: 102.9 kB / 279.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000954/0.008578, allocations: 0.7995 MB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.008775, allocations: 143.2 kB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.008938, allocations: 75.64 kB / 280.2 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.008955, allocations: 4 kB / 280.2 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002734/0.009228, allocations: 225.1 kB / 280.5 MB, free: 9.734 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.492e-06/0.00923, allocations: 3.938 kB / 280.5 MB, free: 9.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.000731/0.009961, allocations: 316.6 kB / 280.8 MB, free: 9.414 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.01002, allocations: 106.8 kB / 280.9 MB, free: 9.285 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.01019, allocations: 254.7 kB / 281.1 MB, free: 9.016 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.01022, allocations: 33.7 kB / 281.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002254/0.01044, allocations: 199.1 kB / 281.4 MB, free: 8.777 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.247e-05/0.0105, allocations: 75.45 kB / 281.4 MB, free: 8.703 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.01061, allocations: 63.58 kB / 281.5 MB, free: 8.633 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.01075, allocations: 0.4962 MB / 282 MB, free: 8.125 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.01091, allocations: 103.6 kB / 282.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.01106, allocations: 184.2 kB / 282.3 MB, free: 7.797 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.01122, allocations: 171.6 kB / 282.4 MB, free: 7.605 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.01122, allocations: 0 / 282.4 MB, free: 7.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003619/0.01158, allocations: 365.8 kB / 282.8 MB, free: 7.215 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.01162, allocations: 63.48 kB / 282.9 MB, free: 7.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.01162, allocations: 7.938 kB / 282.9 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002242/0.01185, allocations: 95.55 kB / 283 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.01195, allocations: 31.97 kB / 283 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.01391, allocations: 2.353 MB / 285.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.01413, allocations: 51.83 kB / 285.4 MB, free: 4.484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.01415, allocations: 16 kB / 285.4 MB, free: 4.469 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.0001047/0.01426, allocations: 178.5 kB / 285.6 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.572e-05/0.01429, allocations: 23.86 kB / 285.6 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.715e-05/0.01432, allocations: 25.81 kB / 285.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.01432, allocations: 4 kB / 285.6 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.01433, allocations: 0 / 285.6 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.01433, allocations: 7.922 kB / 285.6 MB, free: 4.219 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002863/0.01462, allocations: 397 kB / 286 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.01462, allocations: 4.031 kB / 286 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.481e-05/0.0147, allocations: 23.92 kB / 286.1 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001975/0.0149, allocations: 91.59 kB / 286.2 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.01493, allocations: 8 kB / 286.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.01627, allocations: 2.356 MB / 288.5 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.01627, allocations: 0 / 288.5 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003714/0.01664, allocations: 282.5 kB / 288.8 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.209e-05/0.01669, allocations: 43.75 kB / 288.8 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.01671, allocations: 8 kB / 288.8 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.702e-05/0.01681, allocations: 24.05 kB / 288.9 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.59e-05/0.01688, allocations: 27.89 kB / 288.9 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.0169, allocations: 11.98 kB / 288.9 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.219e-05/0.01698, allocations: 181.3 kB / 289.1 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01698, allocations: 0 / 289.1 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002975/0.01728, allocations: 91.89 kB / 289.2 MB, free: 0.5 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.475e-05/0.01737, allocations: 99.25 kB / 289.3 MB, free: 400 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005524/0.01793, allocations: 0.507 MB / 289.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.01793, allocations: 0 / 289.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.01815, allocations: 269.3 kB / 290 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.01838, allocations: 52.38 kB / 290.1 MB, free: 15.49 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008376/0.01922, allocations: 490.9 kB / 290.6 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.023e-05/0.01927, allocations: 84.31 kB / 290.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.325e-05/0.01932, allocations: 17.62 kB / 290.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.154e-05/0.01936, allocations: 24.5 kB / 290.7 MB, free: 14.83 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01936, allocations: 0 / 290.7 MB, free: 14.83 MB / 282.7 MB Notification: Performance of Templates: time 0.007065/0.02643, allocations: 5.137 MB / 295.8 MB, free: 9.766 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.3978110048919916]