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.001476/0.001476, allocations: 84.3 kB / 20.68 MB, free: 1.035 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.001514/0.001514, allocations: 164.9 kB / 23.95 MB, free: 4.172 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.464/1.464, allocations: 177.1 MB / 204.3 MB, free: 9.195 MB / 190.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 1.372e-06/1.372e-06, allocations: 0 / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.268e-05/2.406e-05, allocations: 5.797 kB / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003881/0.003905, allocations: 2.505 MB / 327.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.005352, allocations: 0.6507 MB / 328.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.005556, allocations: 7.562 kB / 328.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001612/0.005717, allocations: 33.42 kB / 328.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002347/0.005952, allocations: 75.86 kB / 328.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003683/0.00632, allocations: 102.5 kB / 328.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005466/0.006867, allocations: 370.9 kB / 328.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.007043, allocations: 67.88 kB / 328.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003419/0.007385, allocations: 203.2 kB / 329.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.007614, allocations: 123.3 kB / 329.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.068e-05/0.007685, allocations: 30.34 kB / 329.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.815e-05/0.007753, allocations: 30.53 kB / 329.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.48e-05/0.007828, allocations: 55.72 kB / 329.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.008007, allocations: 111.4 kB / 329.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005917/0.008599, allocations: 350.2 kB / 329.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.008604, allocations: 0 / 329.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.008606, allocations: 1.344 kB / 329.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.008624, allocations: 0 / 329.8 MB, free: 13.67 MB / 302.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.001518/0.01014, allocations: 0.5677 MB / 330.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.01019, allocations: 10.38 kB / 330.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.01034, allocations: 34.52 kB / 330.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004634/0.0108, allocations: 201.8 kB / 330.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.01096, allocations: 151.9 kB / 330.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.125e-05/0.01103, allocations: 21.44 kB / 330.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007136/0.01174, allocations: 332.4 kB / 331.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.01176, allocations: 192 / 331.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.01179, allocations: 15.69 kB / 331.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.0118, allocations: 8.656 kB / 331.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006607/0.01246, allocations: 193.9 kB / 331.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.01411, allocations: 0.7235 MB / 332 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005418/0.01465, allocations: 189.9 kB / 332.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003312/0.01499, allocations: 111.7 kB / 332.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.015, allocations: 6.125 kB / 332.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004601/0.01547, allocations: 268.5 kB / 332.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.01547, allocations: 4 kB / 332.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001653/0.01712, allocations: 417 kB / 333 MB, free: 11.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.01722, allocations: 107.1 kB / 333.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/0.01759, allocations: 196.8 kB / 333.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.691e-05/0.01765, allocations: 37.59 kB / 333.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001821/0.01783, allocations: 156.6 kB / 333.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.116e-05/0.01791, allocations: 68.92 kB / 333.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.01805, allocations: 52.16 kB / 333.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.01826, allocations: 331.2 kB / 333.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/0.01858, allocations: 154 kB / 334.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003508/0.01893, allocations: 219.2 kB / 334.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000516/0.01945, allocations: 255.1 kB / 334.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.01945, allocations: 0 / 334.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009003/0.02035, allocations: 453.6 kB / 335 MB, free: 9.586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.242e-05/0.02043, allocations: 70.05 kB / 335 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.02043, allocations: 1.469 kB / 335 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003834/0.02082, allocations: 110.7 kB / 335.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.02101, allocations: 31.5 kB / 335.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00264/0.02365, allocations: 1.929 MB / 337.1 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005239/0.02417, allocations: 77.05 kB / 337.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.02421, allocations: 12 kB / 337.2 MB, free: 7.676 MB / 302.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.0001779/0.02438, allocations: 135 kB / 337.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.713e-05/0.02443, allocations: 26.48 kB / 337.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.821e-05/0.02449, allocations: 25.95 kB / 337.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.02449, allocations: 2.469 kB / 337.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.0245, allocations: 1.531 kB / 337.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.0245, allocations: 3.938 kB / 337.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004482/0.02495, allocations: 349.2 kB / 337.7 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.02495, allocations: 5.188 kB / 337.7 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.02511, allocations: 23.33 kB / 337.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002709/0.02538, allocations: 106.3 kB / 337.9 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.0254, allocations: 5.344 kB / 337.9 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002519/0.02792, allocations: 1.924 MB / 339.8 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.02792, allocations: 0 / 339.8 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009052/0.02882, allocations: 404.1 kB / 340.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.994e-05/0.02891, allocations: 40.17 kB / 340.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.02895, allocations: 6.594 kB / 340.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.02917, allocations: 28.66 kB / 340.3 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.02928, allocations: 28.64 kB / 340.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.0293, allocations: 8.531 kB / 340.3 MB, free: 5.066 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000135/0.02944, allocations: 144.8 kB / 340.4 MB, free: 4.961 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.02944, allocations: 0 / 340.4 MB, free: 4.961 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004689/0.02991, allocations: 89.2 kB / 340.5 MB, free: 4.945 MB / 302.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.000191/0.0301, allocations: 106.2 kB / 340.6 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.03118, allocations: 0.5267 MB / 341.1 MB, free: 4.363 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.03118, allocations: 3.938 kB / 341.1 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004983/0.03168, allocations: 238.7 kB / 341.4 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.03204, allocations: 48.05 kB / 341.4 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.03326, allocations: 495.5 kB / 341.9 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/0.03342, allocations: 142.2 kB / 342.1 MB, free: 3.391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.612e-05/0.03352, allocations: 17.64 kB / 342.1 MB, free: 3.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.817e-05/0.03358, allocations: 16.5 kB / 342.1 MB, free: 3.355 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.03358, allocations: 0 / 342.1 MB, free: 3.355 MB / 302.1 MB Notification: Performance of Templates: time 0.01017/0.04375, allocations: 4.787 MB / 346.9 MB, free: 14.63 MB / 318.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.406343013048172]