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.001854/0.001854, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002155/0.002155, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.623/1.623, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001639/0.001639, allocations: 51.92 kB / 373.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1173, allocations: 53.34 MB / 426.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004185/0.1215, allocations: 2.631 MB / 429.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1228, allocations: 0.6778 MB / 430.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.1229, allocations: 4 kB / 430.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.1231, allocations: 35.64 kB / 430.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.1232, allocations: 75.28 kB / 430.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.1235, allocations: 95.86 kB / 430.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000441/0.1239, allocations: 374.6 kB / 430.7 MB, free: 384 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.1241, allocations: 64.89 kB / 430.8 MB, free: 312 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.1243, allocations: 139.5 kB / 430.9 MB, free: 172 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002128/0.1245, allocations: 151.4 kB / 431.1 MB, free: 20 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1907/0.3152, allocations: 27.45 kB / 431.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.3153, allocations: 31.06 kB / 431.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.727e-05/0.3154, allocations: 57.41 kB / 431.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.3156, allocations: 148 kB / 431.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004468/0.316, allocations: 325.8 kB / 431.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.316, allocations: 3.344 kB / 431.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.316, allocations: 1.031 kB / 431.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.316, allocations: 0 / 431.6 MB, free: 8.422 MB / 350.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.001071/0.3171, allocations: 0.6438 MB / 432.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3171, allocations: 10.41 kB / 432.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.153e-05/0.3172, allocations: 37.81 kB / 432.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/0.3175, allocations: 261.3 kB / 432.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.302e-05/0.3176, allocations: 99.36 kB / 432.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.686e-05/0.3177, allocations: 23.53 kB / 432.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/0.3182, allocations: 252 kB / 432.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3182, allocations: 0 / 432.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.3182, allocations: 9.5 kB / 433 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3182, allocations: 5.281 kB / 433 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005277/0.3188, allocations: 204 kB / 433.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.32, allocations: 0.8627 MB / 434 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005291/0.3205, allocations: 191.3 kB / 434.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000339/0.3208, allocations: 117.5 kB / 434.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.3208, allocations: 2.219 kB / 434.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004282/0.3213, allocations: 178 kB / 434.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.472e-06/0.3213, allocations: 1.25 kB / 434.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0016/0.3229, allocations: 497.2 kB / 435 MB, free: 6.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.3229, allocations: 110.3 kB / 435.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.3231, allocations: 204.1 kB / 435.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.3232, allocations: 33.11 kB / 435.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.655e-05/0.3233, allocations: 153.2 kB / 435.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.719e-05/0.3233, allocations: 71.78 kB / 435.5 MB, free: 6.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.3235, allocations: 54.47 kB / 435.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.67e-05/0.3235, allocations: 331.2 kB / 435.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/0.3238, allocations: 103.5 kB / 436 MB, free: 6.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002968/0.3241, allocations: 133.6 kB / 436.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004734/0.3246, allocations: 245.9 kB / 436.4 MB, free: 5.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3246, allocations: 0 / 436.4 MB, free: 5.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007698/0.3254, allocations: 401.2 kB / 436.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/0.3254, allocations: 63.67 kB / 436.8 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3254, allocations: 5.703 kB / 436.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003518/0.3258, allocations: 107.9 kB / 437 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.326, allocations: 39.02 kB / 437 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/0.3283, allocations: 2.078 MB / 439.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000524/0.3289, allocations: 67.5 kB / 439.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.726e-05/0.3289, allocations: 9.484 kB / 439.2 MB, free: 4.223 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.000134/0.329, allocations: 144.8 kB / 439.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.3291, allocations: 25.95 kB / 439.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.461e-05/0.3291, allocations: 27.84 kB / 439.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3291, allocations: 2.562 kB / 439.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3291, allocations: 1.312 kB / 439.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3291, allocations: 3.078 kB / 439.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/0.3295, allocations: 452.8 kB / 439.8 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3295, allocations: 1.766 kB / 439.8 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.3297, allocations: 24.62 kB / 439.8 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000263/0.33, allocations: 116.6 kB / 439.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.33, allocations: 1.891 kB / 439.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.3317, allocations: 2.071 MB / 442 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3317, allocations: 0 / 442 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008457/0.3326, allocations: 408.3 kB / 442.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-05/0.3327, allocations: 108.4 kB / 442.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.325e-05/0.3327, allocations: 6.953 kB / 442.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.3329, allocations: 24.03 kB / 442.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.333, allocations: 28.08 kB / 442.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.333, allocations: 13.88 kB / 442.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001208/0.3332, allocations: 144.7 kB / 442.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3332, allocations: 1.5 kB / 442.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004623/0.3336, allocations: 88.8 kB / 442.8 MB, free: 1.418 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.0001288/0.3338, allocations: 109.9 kB / 442.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008839/0.3346, allocations: 484 kB / 443.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3346, allocations: 0 / 443.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004444/0.3351, allocations: 243.3 kB / 443.6 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.3354, allocations: 44.64 kB / 443.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00099/0.3364, allocations: 0.5314 MB / 444.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.3367, allocations: 0.7529 MB / 445 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.247e-05/0.3368, allocations: 12.92 kB / 445 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.427e-05/0.3368, allocations: 20.34 kB / 445 MB, free: 15.77 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3368, allocations: 1.094 kB / 445 MB, free: 15.77 MB / 366.1 MB Notification: Performance of Templates: time 0.01025/0.3471, allocations: 4.871 MB / 449.9 MB, free: 15.47 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.966327380388975]