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.00233/0.00233, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002577/0.002577, allocations: 219.9 kB / 23.73 MB, free: 4.164 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.567/1.567, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001637/0.001637, allocations: 59.86 kB / 378.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2797, allocations: 53.36 MB / 431.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004685/0.2843, allocations: 2.49 MB / 434.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.2861, allocations: 0.6502 MB / 434.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.2863, allocations: 4 kB / 434.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.2865, allocations: 43.58 kB / 434.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001835/0.2867, allocations: 71.36 kB / 434.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003883/0.2871, allocations: 103.8 kB / 434.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004866/0.2876, allocations: 350.8 kB / 435.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.2878, allocations: 57.12 kB / 435.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.288, allocations: 143.5 kB / 435.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.2882, allocations: 131.4 kB / 435.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.32e-05/0.2883, allocations: 39.94 kB / 435.7 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.695e-05/0.2884, allocations: 32 kB / 435.7 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.689e-05/0.2885, allocations: 59.81 kB / 435.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001921/0.2887, allocations: 131.4 kB / 435.9 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004865/0.2891, allocations: 325.3 kB / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.2891, allocations: 0 / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.2891, allocations: 0 / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.2892, allocations: 0 / 436.2 MB, free: 2.07 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.001197/0.2904, allocations: 0.5711 MB / 436.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.2904, allocations: 8.031 kB / 436.8 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.2905, allocations: 32.75 kB / 436.8 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004783/0.291, allocations: 199.3 kB / 437 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.2911, allocations: 153.5 kB / 437.1 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/0.2912, allocations: 28.36 kB / 437.2 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005823/0.2918, allocations: 339 kB / 437.5 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2918, allocations: 0 / 437.5 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.2918, allocations: 8 kB / 437.5 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.2918, allocations: 8 kB / 437.5 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005248/0.2923, allocations: 197.6 kB / 437.7 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.2938, allocations: 0.7226 MB / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005354/0.2944, allocations: 190.7 kB / 438.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003258/0.2947, allocations: 113.1 kB / 438.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.2947, allocations: 8 kB / 438.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004949/0.2952, allocations: 256.8 kB / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.2952, allocations: 0 / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001488/0.2967, allocations: 416.9 kB / 439.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.2968, allocations: 106.8 kB / 439.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.297, allocations: 207.8 kB / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.169e-05/0.2971, allocations: 33.7 kB / 439.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.2972, allocations: 156.4 kB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.786e-05/0.2973, allocations: 71.36 kB / 440 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.2974, allocations: 53.94 kB / 440 MB, free: 13.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.2976, allocations: 334.8 kB / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/0.2979, allocations: 151.6 kB / 440.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003658/0.2983, allocations: 221.7 kB / 440.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005745/0.2988, allocations: 251.1 kB / 440.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2988, allocations: 3.938 kB / 441 MB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000895/0.2997, allocations: 462.8 kB / 441.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.2998, allocations: 67.45 kB / 441.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.2999, allocations: 4 kB / 441.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005006/0.3004, allocations: 104.8 kB / 441.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002346/0.3006, allocations: 35.91 kB / 441.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002984/0.3036, allocations: 1.927 MB / 443.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004808/0.3041, allocations: 71.83 kB / 443.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.3041, allocations: 15.98 kB / 443.6 MB, free: 10.13 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.0002127/0.3043, allocations: 137.8 kB / 443.8 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.69e-05/0.3044, allocations: 23.86 kB / 443.8 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.712e-05/0.3044, allocations: 25.8 kB / 443.8 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.485e-06/0.3044, allocations: 7.938 kB / 443.8 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.3044, allocations: 7.938 kB / 443.8 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3044, allocations: 0 / 443.8 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005083/0.3049, allocations: 354.9 kB / 444.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3049, allocations: 0 / 444.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.3051, allocations: 27.92 kB / 444.2 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002743/0.3054, allocations: 108.8 kB / 444.3 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.3054, allocations: 7.984 kB / 444.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002275/0.3077, allocations: 1.919 MB / 446.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.3077, allocations: 4.031 kB / 446.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009137/0.3086, allocations: 401.7 kB / 446.6 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.574e-05/0.3087, allocations: 31.88 kB / 446.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.3087, allocations: 19.92 kB / 446.7 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.3089, allocations: 15.98 kB / 446.7 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.309, allocations: 31.94 kB / 446.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.309, allocations: 8.062 kB / 446.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001461/0.3092, allocations: 149.7 kB / 446.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3092, allocations: 0 / 446.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005051/0.3097, allocations: 95.83 kB / 447 MB, free: 6.609 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.0001683/0.3099, allocations: 103.2 kB / 447.1 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.3109, allocations: 0.5162 MB / 447.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3109, allocations: 0 / 447.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000457/0.3114, allocations: 246.5 kB / 447.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.3117, allocations: 51.67 kB / 447.9 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.313, allocations: 0.5272 MB / 448.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001856/0.3132, allocations: 134.2 kB / 448.5 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.893e-05/0.3133, allocations: 13.66 kB / 448.5 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.623e-05/0.3133, allocations: 19.44 kB / 448.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3133, allocations: 0 / 448.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of Templates: time 0.01084/0.3242, allocations: 5.054 MB / 453.6 MB, free: 15.9 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.791220597922802]