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.001372/0.001372, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001588/0.001588, allocations: 210.2 kB / 23.73 MB, free: 4.523 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.0016/0.0016, allocations: 51.92 kB / 378.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2637, allocations: 53.37 MB / 431.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004413/0.2681, allocations: 2.491 MB / 434.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.2695, allocations: 0.6375 MB / 434.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2696, allocations: 4 kB / 434.7 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.2698, allocations: 39.58 kB / 434.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.2699, allocations: 79.33 kB / 434.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003412/0.2703, allocations: 95.81 kB / 434.9 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006122/0.2709, allocations: 362.7 kB / 435.3 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.2711, allocations: 57.14 kB / 435.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.2713, allocations: 151.5 kB / 435.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.2715, allocations: 151.4 kB / 435.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.571e-05/0.2716, allocations: 32 kB / 435.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.254e-05/0.2716, allocations: 32 kB / 435.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.801e-05/0.2717, allocations: 55.83 kB / 435.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.2719, allocations: 123.4 kB / 435.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004309/0.2723, allocations: 342.6 kB / 436.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.2723, allocations: 3.984 kB / 436.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2723, allocations: 0 / 436.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.2723, allocations: 0 / 436.2 MB, free: 2.184 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.001244/0.2736, allocations: 0.5633 MB / 436.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.2736, allocations: 12.03 kB / 436.8 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.861e-05/0.2737, allocations: 36.75 kB / 436.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.2742, allocations: 195.3 kB / 437 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.2744, allocations: 153.5 kB / 437.2 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.739e-05/0.2744, allocations: 28.38 kB / 437.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006569/0.2751, allocations: 335 kB / 437.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.2751, allocations: 3.938 kB / 437.5 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.2751, allocations: 12 kB / 437.5 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.2752, allocations: 4 kB / 437.5 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005532/0.2757, allocations: 197.6 kB / 437.7 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.2772, allocations: 0.7188 MB / 438.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.2777, allocations: 190.7 kB / 438.6 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003731/0.2781, allocations: 111.7 kB / 438.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.2781, allocations: 4 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000464/0.2786, allocations: 262.8 kB / 439 MB, free: 15.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 3.837e-06/0.2786, allocations: 8 kB / 439 MB, free: 15.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001512/0.2801, allocations: 410.2 kB / 439.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.2802, allocations: 106.8 kB / 439.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.2804, allocations: 203.7 kB / 439.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.16e-05/0.2805, allocations: 33.7 kB / 439.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.2806, allocations: 156.4 kB / 439.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.932e-05/0.2807, allocations: 67.42 kB / 440 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.2808, allocations: 57.97 kB / 440 MB, free: 14.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.281, allocations: 330.8 kB / 440.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/0.2813, allocations: 159.6 kB / 440.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003444/0.2817, allocations: 217.7 kB / 440.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005418/0.2822, allocations: 255 kB / 441 MB, free: 13.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2822, allocations: 0 / 441 MB, free: 13.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009119/0.2831, allocations: 466.8 kB / 441.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.241e-05/0.2832, allocations: 63.39 kB / 441.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.2832, allocations: 0 / 441.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004095/0.2836, allocations: 108.8 kB / 441.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002106/0.2838, allocations: 39.91 kB / 441.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003009/0.2868, allocations: 1.93 MB / 443.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004904/0.2873, allocations: 63.92 kB / 443.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.2874, allocations: 20 kB / 443.6 MB, free: 10.25 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.0002183/0.2876, allocations: 137.8 kB / 443.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.044e-05/0.2876, allocations: 19.86 kB / 443.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.069e-05/0.2877, allocations: 29.8 kB / 443.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.2877, allocations: 7.938 kB / 443.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2877, allocations: 0 / 443.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2877, allocations: 0 / 443.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004958/0.2882, allocations: 358.8 kB / 444.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2882, allocations: 0 / 444.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.2884, allocations: 28.02 kB / 444.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002719/0.2886, allocations: 104.7 kB / 444.3 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.2887, allocations: 8 kB / 444.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00229/0.2909, allocations: 1.927 MB / 446.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.291, allocations: 3.984 kB / 446.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009234/0.2919, allocations: 405.5 kB / 446.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.806e-05/0.292, allocations: 43.8 kB / 446.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.292, allocations: 7.938 kB / 446.7 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.2922, allocations: 19.97 kB / 446.7 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.958e-05/0.2923, allocations: 31.95 kB / 446.8 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.2923, allocations: 4 kB / 446.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001623/0.2925, allocations: 145.5 kB / 446.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2925, allocations: 0 / 446.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004271/0.2929, allocations: 91.89 kB / 447 MB, free: 6.73 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.0001635/0.2931, allocations: 103.3 kB / 447.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.2942, allocations: 0.5162 MB / 447.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.2943, allocations: 0 / 447.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004894/0.2947, allocations: 249.1 kB / 447.8 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.2951, allocations: 51.45 kB / 447.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.2963, allocations: 0.5335 MB / 448.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001535/0.2965, allocations: 146.1 kB / 448.6 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.126e-05/0.2965, allocations: 9.656 kB / 448.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.203e-05/0.2966, allocations: 23.42 kB / 448.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2966, allocations: 0 / 448.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of Templates: time 0.01061/0.3072, allocations: 5.082 MB / 453.7 MB, free: 15.98 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemoPowerSupplyWithBuffer/DemoPowerSupplyWithBuffer.csv","/var/lib/jenkins/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.586147881112993]