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.000969/0.000969, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.000982/0.000982, allocations: 168.8 kB / 24.82 MB, free: 9.27 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.9598/0.9598, allocations: 177.1 MB / 205.3 MB, free: 5.52 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.993e-06/1.993e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.533e-05/1.732e-05, allocations: 2.312 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003521/0.003538, allocations: 2.621 MB / 276 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.004637, allocations: 0.6622 MB / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.00477, allocations: 0 / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.004913, allocations: 39.64 kB / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.005078, allocations: 79.22 kB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.00534, allocations: 95.86 kB / 276.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000374/0.005714, allocations: 370.6 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.005869, allocations: 65.06 kB / 277.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.006116, allocations: 207.5 kB / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.006297, allocations: 123.6 kB / 277.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.36e-05/0.006351, allocations: 32 kB / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.121e-05/0.006402, allocations: 32 kB / 277.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.645e-05/0.006458, allocations: 55.81 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.006566, allocations: 111.7 kB / 277.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.006863, allocations: 239.2 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.006865, allocations: 0 / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.006865, allocations: 0 / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.006869, allocations: 0 / 278.1 MB, free: 12.57 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.0008192/0.007688, allocations: 0.671 MB / 278.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.007725, allocations: 8.031 kB / 278.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.427e-05/0.007809, allocations: 52.69 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002419/0.008051, allocations: 200.2 kB / 279 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-05/0.008148, allocations: 153.6 kB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.008196, allocations: 24.38 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.008543, allocations: 278.8 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.008554, allocations: 192 / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.008577, allocations: 12.12 kB / 279.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.008588, allocations: 8 kB / 279.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.008754, allocations: 85.36 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009571/0.009711, allocations: 0.7688 MB / 280.4 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/0.009924, allocations: 135.1 kB / 280.5 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.01005, allocations: 63.66 kB / 280.5 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.01007, allocations: 4 kB / 280.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/0.01029, allocations: 221.1 kB / 280.8 MB, free: 9.664 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.01029, allocations: 0 / 280.8 MB, free: 9.664 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007684/0.01106, allocations: 288.7 kB / 281 MB, free: 9.375 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.01111, allocations: 114.7 kB / 281.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.01128, allocations: 250.6 kB / 281.4 MB, free: 8.973 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/0.01131, allocations: 33.7 kB / 281.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.01142, allocations: 207 kB / 281.6 MB, free: 8.727 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.579e-05/0.01148, allocations: 67.52 kB / 281.7 MB, free: 8.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.01159, allocations: 59.56 kB / 281.8 MB, free: 8.594 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.01174, allocations: 0.5001 MB / 282.3 MB, free: 8.082 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.01185, allocations: 95.61 kB / 282.4 MB, free: 7.977 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.012, allocations: 172.2 kB / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.01219, allocations: 163.5 kB / 282.7 MB, free: 7.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.01219, allocations: 4 kB / 282.7 MB, free: 7.586 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005358/0.01273, allocations: 365.8 kB / 283 MB, free: 7.195 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.749e-05/0.01277, allocations: 63.33 kB / 283.1 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.01278, allocations: 4 kB / 283.1 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/0.01302, allocations: 87.55 kB / 283.2 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.01314, allocations: 31.98 kB / 283.2 MB, free: 6.996 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/0.01491, allocations: 2.298 MB / 285.5 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.01509, allocations: 55.83 kB / 285.6 MB, free: 4.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.0151, allocations: 4 kB / 285.6 MB, free: 4.531 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.0001223/0.01523, allocations: 175.1 kB / 285.8 MB, free: 4.352 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-05/0.01526, allocations: 31.86 kB / 285.8 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.856e-05/0.01529, allocations: 21.81 kB / 285.8 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.01529, allocations: 4 kB / 285.8 MB, free: 4.289 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.0153, allocations: 3.984 kB / 285.8 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.0153, allocations: 11.88 kB / 285.8 MB, free: 4.273 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000311/0.01561, allocations: 361.6 kB / 286.2 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01561, allocations: 0 / 286.2 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.555e-05/0.01569, allocations: 27.98 kB / 286.2 MB, free: 3.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001383/0.01583, allocations: 83.59 kB / 286.3 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.01584, allocations: 8 kB / 286.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.01704, allocations: 2.294 MB / 288.6 MB, free: 1.359 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01704, allocations: 0 / 288.6 MB, free: 1.359 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002604/0.0173, allocations: 262.4 kB / 288.9 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.01735, allocations: 39.78 kB / 288.9 MB, free: 1.035 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.01737, allocations: 11.98 kB / 288.9 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.691e-05/0.01745, allocations: 19.98 kB / 288.9 MB, free: 1.004 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.126e-05/0.01752, allocations: 27.95 kB / 288.9 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.01753, allocations: 4 kB / 289 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.718e-05/0.01759, allocations: 177.3 kB / 289.1 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01759, allocations: 0 / 289.1 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002386/0.01783, allocations: 91.88 kB / 289.2 MB, free: 0.7109 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.0001038/0.01793, allocations: 115.1 kB / 289.3 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.01828, allocations: 499.1 kB / 289.8 MB, free: 44 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.01828, allocations: 0 / 289.8 MB, free: 44 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002763/0.01856, allocations: 257.3 kB / 290.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001845/0.01874, allocations: 56.52 kB / 290.1 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006562/0.0194, allocations: 494.7 kB / 290.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.874e-05/0.01944, allocations: 84.31 kB / 290.7 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.382e-05/0.01948, allocations: 13.64 kB / 290.7 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.0196, allocations: 130.2 kB / 290.8 MB, free: 14.95 MB / 282.7 MB Notification: Performance of SimCode: time 8.02e-07/0.0196, allocations: 0 / 290.8 MB, free: 14.95 MB / 282.7 MB Notification: Performance of Templates: time 0.005947/0.02555, allocations: 5.169 MB / 296 MB, free: 9.859 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.644910375587642]