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.0007845/0.0007845, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.00346/0.00346, allocations: 159.5 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.8707/0.8707, allocations: 177 MB / 204.9 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 2.003e-06/2.003e-06, allocations: 0 / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.57e-05/2.77e-05, allocations: 2.281 kB / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.002665/0.002693, allocations: 2.495 MB / 328.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.003754, allocations: 0.6583 MB / 328.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.003872, allocations: 4 kB / 329 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.003994, allocations: 35.58 kB / 329 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.004128, allocations: 83.28 kB / 329.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.004418, allocations: 95.73 kB / 329.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003386/0.004756, allocations: 374.6 kB / 329.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.004913, allocations: 64.91 kB / 329.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.005125, allocations: 207.6 kB / 329.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.005261, allocations: 115.6 kB / 329.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.035e-05/0.005301, allocations: 32 kB / 329.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.123e-05/0.005332, allocations: 28 kB / 330 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.725e-05/0.00538, allocations: 59.81 kB / 330 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.651e-05/0.005466, allocations: 107.7 kB / 330.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003443/0.00581, allocations: 354.9 kB / 330.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.005815, allocations: 4 kB / 330.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.005817, allocations: 0 / 330.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.005822, allocations: 4 kB / 330.5 MB, free: 10.66 MB / 298.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.0007833/0.006605, allocations: 0.5633 MB / 331 MB, free: 10.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.006645, allocations: 11.98 kB / 331.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.951e-05/0.006724, allocations: 36.75 kB / 331.1 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.00701, allocations: 204.8 kB / 331.3 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.46e-05/0.007104, allocations: 153.6 kB / 331.4 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.007142, allocations: 20.38 kB / 331.5 MB, free: 9.582 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003604/0.007503, allocations: 332.4 kB / 331.8 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.007513, allocations: 192 / 331.8 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.007533, allocations: 12.12 kB / 331.8 MB, free: 9.219 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.00754, allocations: 4 kB / 331.8 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.007838, allocations: 201.9 kB / 332 MB, free: 9.012 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008068/0.008645, allocations: 0.7195 MB / 332.7 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.008935, allocations: 190.7 kB / 332.9 MB, free: 8.051 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/0.009121, allocations: 112.7 kB / 333 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.009134, allocations: 0 / 333 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.009396, allocations: 263.2 kB / 333.3 MB, free: 7.641 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 9.42e-07/0.009397, allocations: 3.938 kB / 333.3 MB, free: 7.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008233/0.01022, allocations: 417.4 kB / 333.7 MB, free: 7.223 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.01027, allocations: 114.8 kB / 333.8 MB, free: 7.086 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.01041, allocations: 195.8 kB / 334 MB, free: 6.883 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.01043, allocations: 37.69 kB / 334 MB, free: 6.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.81e-05/0.01051, allocations: 152.3 kB / 334.2 MB, free: 6.688 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.177e-05/0.01055, allocations: 71.48 kB / 334.2 MB, free: 6.617 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.875e-05/0.01063, allocations: 49.94 kB / 334.3 MB, free: 6.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.512e-05/0.01072, allocations: 330.8 kB / 334.6 MB, free: 6.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.01089, allocations: 159.6 kB / 334.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/0.01108, allocations: 220.9 kB / 335 MB, free: 5.816 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.01135, allocations: 247 kB / 335.2 MB, free: 5.555 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01135, allocations: 0 / 335.2 MB, free: 5.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004988/0.01185, allocations: 458.9 kB / 335.7 MB, free: 5.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.01189, allocations: 66.52 kB / 335.7 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.0119, allocations: 0 / 335.7 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000253/0.01215, allocations: 116.8 kB / 335.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.01226, allocations: 35.91 kB / 335.9 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/0.01379, allocations: 1.919 MB / 337.8 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.01402, allocations: 75.89 kB / 337.9 MB, free: 2.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.01403, allocations: 15.94 kB / 337.9 MB, free: 2.738 MB / 298.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.0001085/0.01414, allocations: 137.8 kB / 338 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.172e-05/0.01416, allocations: 19.86 kB / 338.1 MB, free: 2.574 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.01419, allocations: 33.8 kB / 338.1 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.0142, allocations: 0 / 338.1 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.0142, allocations: 0 / 338.1 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.0142, allocations: 11.92 kB / 338.1 MB, free: 2.531 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002851/0.01449, allocations: 350.9 kB / 338.4 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.01449, allocations: 0 / 338.4 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.265e-05/0.01459, allocations: 27.98 kB / 338.5 MB, free: 2.121 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001718/0.01476, allocations: 104.8 kB / 338.6 MB, free: 2.016 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.01477, allocations: 8 kB / 338.6 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.01609, allocations: 1.923 MB / 340.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.01609, allocations: 0 / 340.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004895/0.01658, allocations: 405.4 kB / 340.9 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.885e-05/0.01664, allocations: 39.8 kB / 340.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.01665, allocations: 4 kB / 340.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.484e-05/0.01675, allocations: 32.09 kB / 341 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/0.01682, allocations: 27.89 kB / 341 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.01683, allocations: 8.172 kB / 341 MB, free: 15.45 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.464e-05/0.01692, allocations: 145.5 kB / 341.1 MB, free: 15.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01692, allocations: 7.938 kB / 341.2 MB, free: 15.3 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002837/0.0172, allocations: 87.89 kB / 341.2 MB, free: 15.22 MB / 314.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.0001038/0.01731, allocations: 99.25 kB / 341.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005966/0.0179, allocations: 0.5279 MB / 341.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.01791, allocations: 0 / 341.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002337/0.01814, allocations: 234.5 kB / 342.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002279/0.01837, allocations: 45.08 kB / 342.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007147/0.01908, allocations: 0.5132 MB / 342.7 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.778e-05/0.01917, allocations: 138.2 kB / 342.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.096e-05/0.01921, allocations: 16.5 kB / 342.8 MB, free: 13.52 MB / 314.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01921, allocations: 4 kB / 342.8 MB, free: 13.52 MB / 314.7 MB Notification: Performance of Templates: time 0.00449/0.0237, allocations: 4.163 MB / 347 MB, free: 9.363 MB / 314.7 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: 4.938478480093181]