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.001335/0.001335, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001483/0.001483, allocations: 216.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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 1.505/1.505, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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=99999,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=99999,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 0.001506/0.001506, allocations: 47.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2769, allocations: 53.37 MB / 432.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004115/0.2811, allocations: 2.487 MB / 434.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.2825, allocations: 0.6467 MB / 435.5 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.2826, allocations: 0 / 435.5 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.2827, allocations: 43.58 kB / 435.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.2829, allocations: 71.36 kB / 435.6 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002975/0.2832, allocations: 103.8 kB / 435.7 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004386/0.2836, allocations: 358.7 kB / 436 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.2838, allocations: 65.12 kB / 436.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.284, allocations: 139.5 kB / 436.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.2842, allocations: 155.4 kB / 436.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.988e-05/0.2843, allocations: 28 kB / 436.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.164e-05/0.2843, allocations: 32 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.251e-05/0.2844, allocations: 67.7 kB / 436.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.2845, allocations: 127.5 kB / 436.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.2849, allocations: 329.7 kB / 437 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2849, allocations: 0 / 437 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2849, allocations: 0 / 437 MB, free: 2.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.2849, allocations: 0 / 437 MB, free: 2.047 MB / 334.1 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.001109/0.286, allocations: 0.5711 MB / 437.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.2861, allocations: 8.031 kB / 437.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.374e-05/0.2862, allocations: 36.75 kB / 437.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.2865, allocations: 195.3 kB / 437.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.2867, allocations: 153.5 kB / 437.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.981e-05/0.2867, allocations: 24.38 kB / 437.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005922/0.2873, allocations: 335 kB / 438.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.2873, allocations: 4 kB / 438.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.2874, allocations: 8 kB / 438.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.2874, allocations: 4 kB / 438.3 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005382/0.2879, allocations: 201.6 kB / 438.5 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.2892, allocations: 0.7227 MB / 439.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005062/0.2897, allocations: 186.7 kB / 439.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.29, allocations: 109.1 kB / 439.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.29, allocations: 0 / 439.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004502/0.2905, allocations: 266.8 kB / 439.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.2905, allocations: 0 / 439.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001458/0.2919, allocations: 422.1 kB / 440.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.902e-05/0.292, allocations: 110.8 kB / 440.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.2922, allocations: 199.8 kB / 440.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.2923, allocations: 33.7 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.2924, allocations: 152.4 kB / 440.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.793e-05/0.2925, allocations: 75.42 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.2926, allocations: 53.88 kB / 440.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.2927, allocations: 334.8 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/0.2931, allocations: 159.6 kB / 441.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/0.2934, allocations: 225.7 kB / 441.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005266/0.2939, allocations: 243.1 kB / 441.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2939, allocations: 0 / 441.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008902/0.2948, allocations: 470.8 kB / 442.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.605e-05/0.2949, allocations: 67.39 kB / 442.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.2949, allocations: 0 / 442.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003441/0.2952, allocations: 104.9 kB / 442.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.2954, allocations: 31.97 kB / 442.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00246/0.2979, allocations: 1.927 MB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.2984, allocations: 71.92 kB / 444.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.2984, allocations: 4.188 kB / 444.4 MB, free: 10.12 MB / 350.1 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.0001672/0.2986, allocations: 149.1 kB / 444.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.237e-05/0.2986, allocations: 27.8 kB / 444.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.929e-05/0.2987, allocations: 29.8 kB / 444.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2987, allocations: 3.938 kB / 444.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.2987, allocations: 0 / 444.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.2987, allocations: 4 kB / 444.6 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004492/0.2992, allocations: 350.9 kB / 444.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2992, allocations: 0 / 444.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.2993, allocations: 23.98 kB / 445 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002912/0.2996, allocations: 112.7 kB / 445.1 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.2996, allocations: 8.016 kB / 445.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002313/0.302, allocations: 1.927 MB / 447 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.302, allocations: 96 / 447 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009231/0.3029, allocations: 413.3 kB / 447.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.608e-05/0.303, allocations: 31.86 kB / 447.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.303, allocations: 7.938 kB / 447.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.3032, allocations: 23.98 kB / 447.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.3033, allocations: 27.94 kB / 447.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.3033, allocations: 11.94 kB / 447.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.3035, allocations: 145.5 kB / 447.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3035, allocations: 4.062 kB / 447.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004312/0.3039, allocations: 87.89 kB / 447.7 MB, free: 6.594 MB / 350.1 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.0001238/0.304, allocations: 107.4 kB / 447.8 MB, free: 6.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009997/0.305, allocations: 0.5162 MB / 448.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.305, allocations: 3.938 kB / 448.4 MB, free: 5.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004849/0.3055, allocations: 242.6 kB / 448.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.3059, allocations: 51.62 kB / 448.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.3071, allocations: 0.5271 MB / 449.2 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000154/0.3072, allocations: 142.2 kB / 449.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.893e-05/0.3073, allocations: 13.66 kB / 449.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.3074, allocations: 19.42 kB / 449.4 MB, free: 4.859 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3074, allocations: 0 / 449.4 MB, free: 4.859 MB / 350.1 MB Notification: Performance of Templates: time 0.009846/0.3172, allocations: 5.102 MB / 454.5 MB, free: 15.83 MB / 366.1 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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemoPowerSupplyWithBuffer/DemoPowerSupplyWithBuffer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.318801839006483]