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.00143/0.00143, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 213.1 kB / 23.73 MB, free: 4.16 MB / 14.72 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 1.515/1.515, allocations: 230.5 MB / 257.4 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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=99999,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=99999,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 0.001933/0.001933, allocations: 63.91 kB / 378.2 MB, free: 2.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2915, allocations: 53.4 MB / 431.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004512/0.296, allocations: 2.491 MB / 434.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.2975, allocations: 0.6502 MB / 434.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002496/0.2978, allocations: 4 kB / 434.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002008/0.298, allocations: 39.64 kB / 434.8 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000248/0.2982, allocations: 79.27 kB / 434.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.2986, allocations: 95.88 kB / 435 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005249/0.2991, allocations: 362.7 kB / 435.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.2993, allocations: 61.12 kB / 435.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003115/0.2996, allocations: 143.5 kB / 435.6 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.2999, allocations: 135.3 kB / 435.7 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.006e-05/0.2999, allocations: 28 kB / 435.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.59e-05/0.3, allocations: 32 kB / 435.7 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.444e-05/0.3001, allocations: 59.77 kB / 435.8 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.3002, allocations: 123.5 kB / 435.9 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004342/0.3007, allocations: 333.2 kB / 436.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.3007, allocations: 4 kB / 436.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3007, allocations: 0 / 436.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.3007, allocations: 0 / 436.3 MB, free: 1.926 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.001302/0.302, allocations: 0.5711 MB / 436.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.302, allocations: 11.98 kB / 436.8 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.781e-05/0.3021, allocations: 40.75 kB / 436.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004156/0.3025, allocations: 186.8 kB / 437.1 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.3027, allocations: 157.5 kB / 437.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.783e-05/0.3027, allocations: 20.38 kB / 437.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006183/0.3034, allocations: 335 kB / 437.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.3034, allocations: 0 / 437.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.3034, allocations: 11.98 kB / 437.6 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.3034, allocations: 4 kB / 437.6 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005355/0.3039, allocations: 205.6 kB / 437.8 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.3053, allocations: 0.7154 MB / 438.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005237/0.3058, allocations: 190.7 kB / 438.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.3061, allocations: 121 kB / 438.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.3062, allocations: 0 / 438.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000445/0.3066, allocations: 266.2 kB / 439.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.432e-06/0.3066, allocations: 0 / 439.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00149/0.3081, allocations: 420.9 kB / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.545e-05/0.3082, allocations: 110.8 kB / 439.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.3084, allocations: 199.8 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.064e-05/0.3084, allocations: 33.7 kB / 439.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.3086, allocations: 152.4 kB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.049e-05/0.3087, allocations: 71.42 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.3088, allocations: 53.92 kB / 440.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3089, allocations: 330.9 kB / 440.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.3093, allocations: 155.6 kB / 440.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003686/0.3096, allocations: 229.6 kB / 440.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005059/0.3102, allocations: 238.8 kB / 441 MB, free: 12.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3102, allocations: 4.031 kB / 441 MB, free: 12.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009222/0.3111, allocations: 470.8 kB / 441.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.886e-05/0.3111, allocations: 63.41 kB / 441.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3111, allocations: 3.938 kB / 441.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003783/0.3115, allocations: 108.8 kB / 441.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.3117, allocations: 27.98 kB / 441.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002512/0.3142, allocations: 1.927 MB / 443.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004565/0.3147, allocations: 71.8 kB / 443.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.3147, allocations: 4 kB / 443.7 MB, free: 10.01 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.0001741/0.3149, allocations: 150.5 kB / 443.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.129e-05/0.3149, allocations: 23.86 kB / 443.8 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.778e-05/0.315, allocations: 29.75 kB / 443.9 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.315, allocations: 3.938 kB / 443.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.315, allocations: 0 / 443.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.315, allocations: 7.984 kB / 443.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004575/0.3154, allocations: 342.9 kB / 444.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3154, allocations: 0 / 444.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.3156, allocations: 39.94 kB / 444.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002627/0.3159, allocations: 108.7 kB / 444.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.3159, allocations: 4 kB / 444.4 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00233/0.3182, allocations: 1.919 MB / 446.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3182, allocations: 0 / 446.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008658/0.3191, allocations: 402.6 kB / 446.7 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.766e-05/0.3192, allocations: 39.97 kB / 446.7 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.3192, allocations: 7.938 kB / 446.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.3194, allocations: 27.97 kB / 446.7 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.044e-05/0.3195, allocations: 27.95 kB / 446.8 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.3195, allocations: 4 kB / 446.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001333/0.3196, allocations: 145.7 kB / 446.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3196, allocations: 0 / 446.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004104/0.3201, allocations: 91.83 kB / 447 MB, free: 6.484 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.0001507/0.3202, allocations: 115.1 kB / 447.1 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.3213, allocations: 0.5203 MB / 447.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3213, allocations: 0 / 447.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004893/0.3218, allocations: 238.5 kB / 447.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.3221, allocations: 58.77 kB / 447.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.3232, allocations: 0.5261 MB / 448.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.3234, allocations: 142.2 kB / 448.6 MB, free: 4.777 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.778e-05/0.3235, allocations: 13.58 kB / 448.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.834e-05/0.3235, allocations: 19.44 kB / 448.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3235, allocations: 0 / 448.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of Templates: time 0.01069/0.3342, allocations: 5.061 MB / 453.7 MB, free: 15.74 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.744665298610926]