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.0009819/0.0009819, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.0009291/0.0009291, allocations: 170 kB / 24.82 MB, free: 9.254 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/1, allocations: 177 MB / 205.1 MB, free: 5.477 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 2.295e-06/2.295e-06, allocations: 3.984 kB / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.853e-05, allocations: 9.266 kB / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.006384/0.006413, allocations: 2.615 MB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004246/0.01066, allocations: 0.6583 MB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.01083, allocations: 4 kB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003875/0.01122, allocations: 39.52 kB / 276.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.0114, allocations: 79.33 kB / 276.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.01169, allocations: 99.73 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003726/0.01206, allocations: 374.6 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.01221, allocations: 65.05 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/0.01247, allocations: 207.6 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.01263, allocations: 115.7 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.804e-05/0.01268, allocations: 32 kB / 277.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.463e-05/0.01272, allocations: 32 kB / 277.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.399e-05/0.01278, allocations: 63.73 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.01288, allocations: 111.7 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003299/0.01618, allocations: 235.2 kB / 278.1 MB, free: 12.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.01618, allocations: 3.938 kB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.01618, allocations: 0 / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.01619, allocations: 0 / 278.1 MB, free: 12.46 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.0007916/0.01698, allocations: 0.671 MB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.01702, allocations: 11.98 kB / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.392e-05/0.0171, allocations: 56.75 kB / 278.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.01735, allocations: 192.2 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.564e-05/0.01745, allocations: 157.6 kB / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.272e-05/0.01749, allocations: 24.38 kB / 279.2 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.01782, allocations: 286.7 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.01783, allocations: 192 / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.199e-05/0.01785, allocations: 12.12 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.01786, allocations: 4 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.018, allocations: 81.42 kB / 279.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008877/0.01889, allocations: 0.7649 MB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003204/0.0221, allocations: 137.8 kB / 280.4 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.02221, allocations: 67.58 kB / 280.5 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.02223, allocations: 4 kB / 280.5 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002162/0.02245, allocations: 225 kB / 280.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.02245, allocations: 0 / 280.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007082/0.02315, allocations: 284.7 kB / 281 MB, free: 9.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.0232, allocations: 110.8 kB / 281.1 MB, free: 9.137 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.02336, allocations: 254.6 kB / 281.4 MB, free: 8.867 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.02339, allocations: 29.7 kB / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.649e-05/0.02348, allocations: 203 kB / 281.6 MB, free: 8.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.163e-05/0.02353, allocations: 71.47 kB / 281.7 MB, free: 8.559 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.289e-05/0.02363, allocations: 55.58 kB / 281.7 MB, free: 8.496 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.02376, allocations: 0.504 MB / 282.2 MB, free: 7.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.881e-05/0.02386, allocations: 87.61 kB / 282.3 MB, free: 7.883 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.02399, allocations: 176.3 kB / 282.5 MB, free: 7.676 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.02416, allocations: 159.3 kB / 282.6 MB, free: 7.496 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.02416, allocations: 4 kB / 282.6 MB, free: 7.492 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004662/0.02463, allocations: 373.8 kB / 283 MB, free: 7.094 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.212e-05/0.02467, allocations: 71.33 kB / 283.1 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.02468, allocations: 0 / 283.1 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002103/0.02489, allocations: 83.69 kB / 283.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002472/0.02736, allocations: 31.97 kB / 283.2 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001904/0.02926, allocations: 2.294 MB / 285.5 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.0295, allocations: 51.8 kB / 285.5 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.02952, allocations: 15.98 kB / 285.5 MB, free: 4.426 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.0001168/0.02964, allocations: 172.5 kB / 285.7 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.933e-05/0.02968, allocations: 27.86 kB / 285.7 MB, free: 4.219 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.616e-05/0.02972, allocations: 33.83 kB / 285.8 MB, free: 4.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.02972, allocations: 4 kB / 285.8 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.02972, allocations: 0 / 285.8 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.02973, allocations: 3.938 kB / 285.8 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003377/0.03006, allocations: 361.6 kB / 286.1 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.03007, allocations: 0 / 286.1 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.388e-05/0.03016, allocations: 23.92 kB / 286.2 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001808/0.03034, allocations: 87.64 kB / 286.2 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.03036, allocations: 4 kB / 286.2 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/0.03153, allocations: 2.306 MB / 288.6 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.03153, allocations: 3.984 kB / 288.6 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.03179, allocations: 254.9 kB / 288.8 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.004e-05/0.03184, allocations: 35.78 kB / 288.8 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.03186, allocations: 7.984 kB / 288.8 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.238e-05/0.03196, allocations: 15.98 kB / 288.9 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.513e-05/0.03202, allocations: 31.89 kB / 288.9 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.03203, allocations: 7.984 kB / 288.9 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.852e-05/0.0321, allocations: 181.3 kB / 289.1 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.0321, allocations: 4.062 kB / 289.1 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002736/0.03237, allocations: 91.89 kB / 289.2 MB, free: 0.6016 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.000101/0.03247, allocations: 103.2 kB / 289.3 MB, free: 500 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004149/0.03289, allocations: 0.4908 MB / 289.8 MB, free: 15.94 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.03289, allocations: 0 / 289.8 MB, free: 15.94 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.03307, allocations: 265.4 kB / 290 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.03328, allocations: 47.97 kB / 290.1 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007876/0.03407, allocations: 490.7 kB / 290.5 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.94e-05/0.03412, allocations: 84.31 kB / 290.6 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.62e-05/0.03418, allocations: 17.64 kB / 290.6 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003859/0.03456, allocations: 126.2 kB / 290.8 MB, free: 14.85 MB / 282.7 MB Notification: Performance of SimCode: time 6.72e-07/0.03456, allocations: 0 / 290.8 MB, free: 14.85 MB / 282.7 MB Notification: Performance of Templates: time 0.006738/0.0413, allocations: 5.166 MB / 295.9 MB, free: 9.754 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.6999982027336955]