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.0009308/0.0009308, allocations: 87.67 kB / 21.19 MB, free: 3.367 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.0009008/0.0009008, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 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 0.9427/0.9427, allocations: 177 MB / 204.8 MB, free: 5.199 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.302e-06/1.302e-06, allocations: 0 / 272.9 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.633e-05/1.763e-05, allocations: 2.312 kB / 272.9 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003298/0.003316, allocations: 2.645 MB / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.004417, allocations: 0.666 MB / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.004525, allocations: 4 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.004659, allocations: 39.64 kB / 276.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.004807, allocations: 83.2 kB / 276.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.005083, allocations: 91.86 kB / 276.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000346/0.005429, allocations: 370.6 kB / 276.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.005572, allocations: 65.06 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.005779, allocations: 215.5 kB / 277.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.005943, allocations: 119.6 kB / 277.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.701e-05/0.00599, allocations: 32 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.373e-05/0.006034, allocations: 32 kB / 277.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.175e-05/0.006085, allocations: 55.81 kB / 277.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.006193, allocations: 111.7 kB / 277.4 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.006486, allocations: 239.2 kB / 277.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.006488, allocations: 0 / 277.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.006489, allocations: 0 / 277.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.006494, allocations: 0 / 277.7 MB, free: 12.5 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.004047/0.01054, allocations: 0.6671 MB / 278.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.01059, allocations: 11.98 kB / 278.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.0107, allocations: 52.75 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.011, allocations: 200.1 kB / 278.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.01111, allocations: 149.6 kB / 278.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.01116, allocations: 32.38 kB / 278.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.01157, allocations: 294.8 kB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.01158, allocations: 192 / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.01161, allocations: 12.12 kB / 279.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.01163, allocations: 11.98 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.01187, allocations: 98.86 kB / 279.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.01296, allocations: 0.7995 MB / 280 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.01323, allocations: 143.2 kB / 280.1 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.0134, allocations: 71.66 kB / 280.2 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.01342, allocations: 4 kB / 280.2 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002767/0.0137, allocations: 225.1 kB / 280.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.0137, allocations: 3.938 kB / 280.4 MB, free: 9.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009186/0.01462, allocations: 316.5 kB / 280.7 MB, free: 9.184 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.01468, allocations: 110.8 kB / 280.8 MB, free: 9.051 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.01489, allocations: 250.7 kB / 281.1 MB, free: 8.785 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.01492, allocations: 33.7 kB / 281.1 MB, free: 8.746 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.01504, allocations: 207.1 kB / 281.3 MB, free: 8.539 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.634e-05/0.0151, allocations: 63.48 kB / 281.4 MB, free: 8.477 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.0152, allocations: 59.59 kB / 281.4 MB, free: 8.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.01534, allocations: 0.5001 MB / 281.9 MB, free: 7.898 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.01549, allocations: 99.61 kB / 282 MB, free: 7.789 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.01566, allocations: 180.3 kB / 282.2 MB, free: 7.578 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.0159, allocations: 179.4 kB / 282.4 MB, free: 7.379 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.0159, allocations: 0 / 282.4 MB, free: 7.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005027/0.0164, allocations: 369.9 kB / 282.7 MB, free: 6.984 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.939e-05/0.01645, allocations: 67.39 kB / 282.8 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.01646, allocations: 0 / 282.8 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000366/0.01682, allocations: 95.61 kB / 282.9 MB, free: 6.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.01696, allocations: 35.92 kB / 282.9 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.01854, allocations: 2.356 MB / 285.3 MB, free: 4.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.01873, allocations: 59.72 kB / 285.4 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.01874, allocations: 8 kB / 285.4 MB, free: 4.234 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.0001002/0.01884, allocations: 175.4 kB / 285.5 MB, free: 4.055 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.01887, allocations: 27.86 kB / 285.6 MB, free: 4.027 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.999e-05/0.0189, allocations: 33.8 kB / 285.6 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.01891, allocations: 4 kB / 285.6 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.01891, allocations: 0 / 285.6 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.01891, allocations: 3.938 kB / 285.6 MB, free: 3.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.0192, allocations: 401 kB / 286 MB, free: 3.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.0192, allocations: 0 / 286 MB, free: 3.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.407e-05/0.01927, allocations: 19.98 kB / 286 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001504/0.01942, allocations: 95.64 kB / 286.1 MB, free: 3.426 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.01944, allocations: 4 kB / 286.1 MB, free: 3.422 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.02075, allocations: 2.352 MB / 288.5 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.02075, allocations: 8.031 kB / 288.5 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003189/0.02107, allocations: 290.8 kB / 288.8 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.885e-05/0.02112, allocations: 35.78 kB / 288.8 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.02114, allocations: 7.984 kB / 288.8 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.734e-05/0.02123, allocations: 19.98 kB / 288.8 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.381e-05/0.02131, allocations: 31.89 kB / 288.8 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.02132, allocations: 4 kB / 288.8 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.86e-05/0.02139, allocations: 177.4 kB / 289 MB, free: 372 kB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02139, allocations: 0 / 289 MB, free: 372 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002592/0.02165, allocations: 95.92 kB / 289.1 MB, free: 276 kB / 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.0001006/0.02175, allocations: 103.2 kB / 289.2 MB, free: 160 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.1664/0.1881, allocations: 0.4935 MB / 289.7 MB, free: 24.9 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.1881, allocations: 0 / 289.7 MB, free: 24.9 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002913/0.1884, allocations: 270.2 kB / 290 MB, free: 24.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.1887, allocations: 47.61 kB / 290 MB, free: 24.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009924/0.1897, allocations: 492 kB / 290.5 MB, free: 24.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.116e-05/0.1898, allocations: 84.94 kB / 290.6 MB, free: 24.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.493e-05/0.1898, allocations: 15.78 kB / 290.6 MB, free: 24.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.485e-05/0.1899, allocations: 19.02 kB / 290.6 MB, free: 24.39 MB / 266.7 MB Notification: Performance of SimCode: time 1.253e-06/0.1899, allocations: 0 / 290.6 MB, free: 24.39 MB / 266.7 MB Notification: Performance of Templates: time 0.008343/0.1982, allocations: 5.119 MB / 295.7 MB, free: 23.9 MB / 266.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.4539096443913877]