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.001096/0.001096, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.0009752/0.0009752, allocations: 172.7 kB / 24.91 MB, free: 9.148 MB / 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 0.9035/0.9035, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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.303e-06/1.303e-06, allocations: 0 / 273.5 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.008e-05/2.138e-05, allocations: 2.312 kB / 273.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.002644/0.002665, allocations: 2.621 MB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008743/0.00354, allocations: 0.6815 MB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.118e-05/0.003631, allocations: 8 kB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.003741, allocations: 31.64 kB / 276.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.003861, allocations: 91.2 kB / 276.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.004071, allocations: 91.73 kB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002799/0.004351, allocations: 374.6 kB / 277.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.004481, allocations: 67.08 kB / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.004674, allocations: 207.6 kB / 277.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.00482, allocations: 115.7 kB / 277.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.022e-05/0.00486, allocations: 28 kB / 277.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.239e-05/0.004892, allocations: 35.94 kB / 277.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.344e-05/0.004936, allocations: 55.81 kB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.067e-05/0.005016, allocations: 111.7 kB / 278 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000226/0.005242, allocations: 243.2 kB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.005245, allocations: 0 / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.005246, allocations: 0 / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.347e-06/0.005249, allocations: 0 / 278.2 MB, free: 12.52 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.0005761/0.005825, allocations: 0.5463 MB / 278.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.759e-05/0.005853, allocations: 12.03 kB / 278.8 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.295e-05/0.005906, allocations: 44.89 kB / 278.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.00607, allocations: 161.4 kB / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.585e-05/0.006146, allocations: 165.6 kB / 279.1 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.006175, allocations: 20.38 kB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.006407, allocations: 281.1 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.006416, allocations: 4.125 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.006432, allocations: 16.12 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.006437, allocations: 4 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.006541, allocations: 65.45 kB / 279.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005916/0.007132, allocations: 0.5708 MB / 280.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.007266, allocations: 110.5 kB / 280.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.546e-05/0.007351, allocations: 56.83 kB / 280.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.007364, allocations: 7.984 kB / 280.2 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.007517, allocations: 203 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.072e-06/0.007518, allocations: 0 / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004572/0.007975, allocations: 257.6 kB / 280.7 MB, free: 9.812 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.008013, allocations: 110.8 kB / 280.8 MB, free: 9.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.496e-05/0.008108, allocations: 203.3 kB / 281 MB, free: 9.465 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.008128, allocations: 29.7 kB / 281 MB, free: 9.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.008181, allocations: 140.4 kB / 281.2 MB, free: 9.289 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.749e-05/0.008218, allocations: 71.39 kB / 281.2 MB, free: 9.219 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.598e-05/0.008284, allocations: 61.81 kB / 281.3 MB, free: 9.152 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.11e-05/0.008355, allocations: 334.8 kB / 281.6 MB, free: 8.816 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.807e-05/0.008423, allocations: 87.62 kB / 281.7 MB, free: 8.719 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-05/0.00851, allocations: 157 kB / 281.9 MB, free: 8.535 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.008624, allocations: 159 kB / 282 MB, free: 8.359 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.008626, allocations: 0 / 282 MB, free: 8.359 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002638/0.00889, allocations: 307 kB / 282.3 MB, free: 8.027 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/0.008919, allocations: 71.33 kB / 282.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.008923, allocations: 4 kB / 282.4 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001516/0.009075, allocations: 80.83 kB / 282.5 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.361e-05/0.009159, allocations: 35.97 kB / 282.5 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009784/0.01014, allocations: 1.599 MB / 284.1 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.0103, allocations: 55.75 kB / 284.2 MB, free: 6.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.01031, allocations: 4 kB / 284.2 MB, free: 6.082 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 8.02e-05/0.01039, allocations: 135.7 kB / 284.3 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.219e-05/0.01041, allocations: 15.98 kB / 284.3 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.415e-05/0.01044, allocations: 29.8 kB / 284.3 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.01044, allocations: 4 kB / 284.3 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.01044, allocations: 0 / 284.3 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.01044, allocations: 4 kB / 284.3 MB, free: 5.887 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002145/0.01066, allocations: 267.5 kB / 284.6 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.01066, allocations: 3.938 kB / 284.6 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.779e-05/0.01073, allocations: 23.98 kB / 284.6 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001266/0.01086, allocations: 84.8 kB / 284.7 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.928e-06/0.01087, allocations: 4 kB / 284.7 MB, free: 5.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008784/0.01174, allocations: 1.594 MB / 286.3 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.01175, allocations: 4 kB / 286.3 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.01194, allocations: 202 kB / 286.5 MB, free: 3.574 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.01198, allocations: 27.73 kB / 286.5 MB, free: 3.547 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.012, allocations: 8 kB / 286.5 MB, free: 3.539 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.99e-05/0.01208, allocations: 19.98 kB / 286.6 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.01213, allocations: 32 kB / 286.6 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.01214, allocations: 11.94 kB / 286.6 MB, free: 3.477 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.245e-05/0.01218, allocations: 58.97 kB / 286.7 MB, free: 3.418 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01218, allocations: 0 / 286.7 MB, free: 3.418 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002096/0.01239, allocations: 87.89 kB / 286.8 MB, free: 3.332 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 9.012e-05/0.01248, allocations: 92.34 kB / 286.8 MB, free: 3.234 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003292/0.01281, allocations: 425.1 kB / 287.3 MB, free: 2.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.01282, allocations: 8.125 kB / 287.3 MB, free: 2.762 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.01296, allocations: 203.2 kB / 287.5 MB, free: 2.547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.01311, allocations: 56.03 kB / 287.5 MB, free: 2.492 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006771/0.01378, allocations: 0.4906 MB / 288 MB, free: 1.973 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.298e-05/0.01383, allocations: 84.31 kB / 288.1 MB, free: 1.871 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.82e-05/0.01387, allocations: 17.62 kB / 288.1 MB, free: 1.852 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.01399, allocations: 99.34 kB / 288.2 MB, free: 1.754 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01399, allocations: 4 kB / 288.2 MB, free: 1.75 MB / 266.7 MB Notification: Performance of Templates: time 0.006029/0.02002, allocations: 5.054 MB / 293.3 MB, free: 12.78 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8684124145656824]