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.001996/0.001996, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002497/0.002497, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.469/1.469, allocations: 177.2 MB / 204.6 MB, free: 5.582 MB / 186.7 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=100000,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=100000,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.483e-06/1.483e-06, allocations: 0 / 272.3 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.884e-05/3.033e-05, allocations: 2.312 kB / 272.3 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004292/0.004322, allocations: 2.485 MB / 274.8 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.005737, allocations: 0.6504 MB / 275.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.005914, allocations: 4 kB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.006103, allocations: 43.58 kB / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002344/0.006337, allocations: 75.28 kB / 275.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.006712, allocations: 91.8 kB / 275.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000528/0.00724, allocations: 378.6 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.007424, allocations: 61.06 kB / 276.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003348/0.007758, allocations: 207.6 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.007981, allocations: 119.6 kB / 276.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.732e-05/0.008048, allocations: 32 kB / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.796e-05/0.008106, allocations: 28 kB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.427e-05/0.00818, allocations: 59.81 kB / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.008349, allocations: 107.7 kB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004747/0.008824, allocations: 350.9 kB / 277 MB, free: 13.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.008829, allocations: 4 kB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.00883, allocations: 0 / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.008838, allocations: 4 kB / 277 MB, free: 13.09 MB / 266.7 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.001205/0.01004, allocations: 0.5633 MB / 277.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.01008, allocations: 8.031 kB / 277.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.01022, allocations: 56.75 kB / 277.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.01062, allocations: 193.3 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001625/0.01078, allocations: 153.6 kB / 278 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.503e-05/0.01085, allocations: 24.38 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006408/0.01149, allocations: 328.4 kB / 278.3 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.0115, allocations: 8.125 kB / 278.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.01153, allocations: 8.125 kB / 278.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.01155, allocations: 4 kB / 278.3 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005711/0.01212, allocations: 201.9 kB / 278.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.0135, allocations: 0.7195 MB / 279.3 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005498/0.01405, allocations: 194.7 kB / 279.4 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003455/0.0144, allocations: 108.8 kB / 279.6 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.01441, allocations: 4 kB / 279.6 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004707/0.01488, allocations: 263.2 kB / 279.8 MB, free: 10.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.01489, allocations: 0 / 279.8 MB, free: 10.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001574/0.01646, allocations: 429.4 kB / 280.2 MB, free: 9.633 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.271e-05/0.01655, allocations: 110.8 kB / 280.3 MB, free: 9.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002396/0.01679, allocations: 199.8 kB / 280.5 MB, free: 9.293 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.37e-05/0.01683, allocations: 33.7 kB / 280.6 MB, free: 9.254 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.01698, allocations: 160.3 kB / 280.7 MB, free: 9.094 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.343e-05/0.01706, allocations: 63.44 kB / 280.8 MB, free: 9.031 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.01719, allocations: 53.94 kB / 280.8 MB, free: 8.973 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.01739, allocations: 330.8 kB / 281.2 MB, free: 8.641 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.01774, allocations: 159.6 kB / 281.3 MB, free: 8.473 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004112/0.01815, allocations: 220.9 kB / 281.5 MB, free: 8.227 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005566/0.01871, allocations: 247 kB / 281.8 MB, free: 7.965 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01871, allocations: 0 / 281.8 MB, free: 7.965 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000993/0.01971, allocations: 478.9 kB / 282.2 MB, free: 7.465 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.435e-05/0.01977, allocations: 63.39 kB / 282.3 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.01978, allocations: 4 kB / 282.3 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003775/0.02015, allocations: 108.7 kB / 282.4 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.02035, allocations: 31.97 kB / 282.4 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002782/0.02313, allocations: 1.938 MB / 284.4 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000507/0.02364, allocations: 71.83 kB / 284.5 MB, free: 5.141 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.02367, allocations: 12 kB / 284.5 MB, free: 5.129 MB / 266.7 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.000168/0.02384, allocations: 133.8 kB / 284.6 MB, free: 4.988 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.249e-05/0.0239, allocations: 31.86 kB / 284.6 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.471e-05/0.02397, allocations: 29.8 kB / 284.7 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.02397, allocations: 4 kB / 284.7 MB, free: 4.918 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.02397, allocations: 0 / 284.7 MB, free: 4.918 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.02398, allocations: 3.938 kB / 284.7 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004998/0.02448, allocations: 350.8 kB / 285 MB, free: 4.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.02448, allocations: 4 kB / 285 MB, free: 4.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.02465, allocations: 23.98 kB / 285 MB, free: 4.504 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002951/0.02494, allocations: 112.8 kB / 285.1 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.02496, allocations: 4 kB / 285.2 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002719/0.02768, allocations: 1.946 MB / 287.1 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.02769, allocations: 4 kB / 287.1 MB, free: 2.336 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009933/0.02868, allocations: 413.4 kB / 287.5 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.045e-05/0.02877, allocations: 31.86 kB / 287.5 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.0288, allocations: 4 kB / 287.5 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.02904, allocations: 36.03 kB / 287.6 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.02914, allocations: 27.89 kB / 287.6 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.02916, allocations: 8 kB / 287.6 MB, free: 1.805 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001529/0.02932, allocations: 145.5 kB / 287.8 MB, free: 1.664 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02932, allocations: 0 / 287.8 MB, free: 1.664 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000434/0.02975, allocations: 87.89 kB / 287.8 MB, free: 1.578 MB / 266.7 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.02992, allocations: 111.1 kB / 287.9 MB, free: 1.457 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.03102, allocations: 0.5237 MB / 288.5 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.03102, allocations: 0 / 288.5 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005035/0.03152, allocations: 238.3 kB / 288.7 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003715/0.03189, allocations: 53.7 kB / 288.8 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.03306, allocations: 0.4985 MB / 289.3 MB, free: 64 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.03323, allocations: 142.2 kB / 289.4 MB, free: 15.9 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.849e-05/0.03331, allocations: 13.64 kB / 289.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.675e-05/0.03337, allocations: 16.5 kB / 289.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of SimCode: time 6.31e-07/0.03337, allocations: 0 / 289.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of Templates: time 0.01026/0.04363, allocations: 4.81 MB / 294.2 MB, free: 11.14 MB / 282.7 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.440428171074018]