Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00106/0.00106, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001799/0.001799, allocations: 167.7 kB / 24.99 MB, free: 8.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.06/1.06, allocations: 177 MB / 205.2 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 273 MB, free: 1.691 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.447e-05/2.605e-05, allocations: 2.312 kB / 273 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003595/0.003621, allocations: 2.63 MB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.004723, allocations: 0.6622 MB / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.004849, allocations: 0 / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.004985, allocations: 35.64 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001566/0.005141, allocations: 87.22 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003016/0.005443, allocations: 95.8 kB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003927/0.005836, allocations: 374.5 kB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.005993, allocations: 65.11 kB / 277 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002355/0.006228, allocations: 211.5 kB / 277.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.006395, allocations: 115.7 kB / 277.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.006441, allocations: 32 kB / 277.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.947e-05/0.00648, allocations: 32 kB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.826e-05/0.006539, allocations: 59.75 kB / 277.4 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.006654, allocations: 111.7 kB / 277.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003021/0.006956, allocations: 235.3 kB / 277.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.006959, allocations: 0 / 277.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.006959, allocations: 0 / 277.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.006965, allocations: 0 / 277.7 MB, free: 12.94 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.0008723/0.007837, allocations: 0.671 MB / 278.4 MB, free: 12.22 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.007875, allocations: 11.98 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.007977, allocations: 52.75 kB / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.008261, allocations: 204 kB / 278.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.008369, allocations: 153.6 kB / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.008416, allocations: 28.38 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003944/0.00881, allocations: 290.8 kB / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.00882, allocations: 192 / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.008845, allocations: 12.12 kB / 279.1 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.008857, allocations: 8 kB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000218/0.009075, allocations: 102.9 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009722/0.01005, allocations: 0.7995 MB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.0103, allocations: 150.4 kB / 280.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.01046, allocations: 83.58 kB / 280.3 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.01048, allocations: 4 kB / 280.3 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002377/0.01071, allocations: 217.2 kB / 280.5 MB, free: 9.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.01071, allocations: 0 / 280.5 MB, free: 9.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008142/0.01153, allocations: 313.4 kB / 280.8 MB, free: 9.613 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.01158, allocations: 114.7 kB / 280.9 MB, free: 9.477 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.01176, allocations: 250.7 kB / 281.2 MB, free: 9.211 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.01178, allocations: 33.7 kB / 281.2 MB, free: 9.172 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.94e-05/0.01188, allocations: 203.1 kB / 281.4 MB, free: 8.969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003005/0.01218, allocations: 71.45 kB / 281.5 MB, free: 8.898 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.221e-05/0.01228, allocations: 63.58 kB / 281.5 MB, free: 8.828 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.0124, allocations: 0.4962 MB / 282 MB, free: 8.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.01253, allocations: 103.6 kB / 282.1 MB, free: 8.207 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.0127, allocations: 180.3 kB / 282.3 MB, free: 7.996 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.0129, allocations: 171.3 kB / 282.5 MB, free: 7.805 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.0129, allocations: 0 / 282.5 MB, free: 7.805 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004573/0.01336, allocations: 373.9 kB / 282.8 MB, free: 7.406 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.399e-05/0.0134, allocations: 71.48 kB / 282.9 MB, free: 7.324 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01341, allocations: 0 / 282.9 MB, free: 7.324 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002677/0.01368, allocations: 87.56 kB / 283 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.01381, allocations: 35.91 kB / 283 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.01564, allocations: 2.356 MB / 285.4 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002418/0.01588, allocations: 55.83 kB / 285.4 MB, free: 4.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.0159, allocations: 8 kB / 285.4 MB, free: 4.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.0001169/0.01602, allocations: 176.6 kB / 285.6 MB, free: 4.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.4e-05/0.01606, allocations: 27.86 kB / 285.6 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.681e-05/0.0161, allocations: 21.81 kB / 285.7 MB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.0161, allocations: 4 kB / 285.7 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.01611, allocations: 7.984 kB / 285.7 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.01611, allocations: 3.938 kB / 285.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003461/0.01646, allocations: 397 kB / 286.1 MB, free: 3.977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01646, allocations: 4.031 kB / 286.1 MB, free: 3.973 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.58e-05/0.01656, allocations: 19.98 kB / 286.1 MB, free: 3.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001933/0.01675, allocations: 91.59 kB / 286.2 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.01676, allocations: 8 kB / 286.2 MB, free: 3.852 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/0.01833, allocations: 2.353 MB / 288.5 MB, free: 1.383 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01833, allocations: 0 / 288.5 MB, free: 1.383 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006221/0.01896, allocations: 290.8 kB / 288.8 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.486e-05/0.01902, allocations: 35.77 kB / 288.8 MB, free: 1.035 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.01905, allocations: 8 kB / 288.9 MB, free: 1.027 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.01916, allocations: 24.05 kB / 288.9 MB, free: 1.004 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.404e-05/0.01925, allocations: 31.89 kB / 288.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.01926, allocations: 7.984 kB / 288.9 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.708e-05/0.01936, allocations: 177.4 kB / 289.1 MB, free: 0.793 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01936, allocations: 4 kB / 289.1 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003722/0.01973, allocations: 87.89 kB / 289.2 MB, free: 0.7031 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.0001107/0.01984, allocations: 99.25 kB / 289.3 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005682/0.02041, allocations: 0.5063 MB / 289.8 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.02041, allocations: 0 / 289.8 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002598/0.02067, allocations: 277.2 kB / 290.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.02096, allocations: 47.97 kB / 290.1 MB, free: 15.69 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009858/0.02195, allocations: 498.2 kB / 290.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.579e-05/0.022, allocations: 84.31 kB / 290.7 MB, free: 15.07 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.746e-05/0.02207, allocations: 17.64 kB / 290.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.243e-05/0.02211, allocations: 16.5 kB / 290.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of SimCode: time 9.62e-07/0.02211, allocations: 0 / 290.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of Templates: time 0.007063/0.02918, allocations: 4.896 MB / 295.6 MB, free: 10.2 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.9723070098552853]