Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 240.9 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 98.23 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.001011, allocations: 39.94 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3139, allocations: 49.44 MB / 399.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004416/0.3184, allocations: 3.005 MB / 402.5 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.3198, allocations: 0.6997 MB / 403.2 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001979/0.3201, allocations: 4 kB / 403.2 MB, free: 29.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002327/0.3203, allocations: 55.61 kB / 403.2 MB, free: 29.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000254/0.3206, allocations: 95.3 kB / 403.3 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.3209, allocations: 83.94 kB / 403.4 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004151/0.3213, allocations: 418.3 kB / 403.8 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000281/0.3216, allocations: 181.3 kB / 404 MB, free: 28.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.3218, allocations: 147.4 kB / 404.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.322, allocations: 171.2 kB / 404.3 MB, free: 28.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.241e-05/0.322, allocations: 24 kB / 404.3 MB, free: 28.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.3222, allocations: 36 kB / 404.4 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.3223, allocations: 103.6 kB / 404.5 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.3225, allocations: 183.1 kB / 404.6 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.3228, allocations: 483.9 kB / 405.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3229, allocations: 0 / 405.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3229, allocations: 0 / 405.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.3229, allocations: 3.938 kB / 405.1 MB, free: 27.72 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001533/0.3244, allocations: 0.7913 MB / 405.9 MB, free: 26.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.3245, allocations: 8.031 kB / 405.9 MB, free: 26.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.925e-05/0.3246, allocations: 44.47 kB / 406 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003576/0.3249, allocations: 342.6 kB / 406.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.325, allocations: 21.03 kB / 406.3 MB, free: 26.44 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.325, allocations: 36.38 kB / 406.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004587/0.3255, allocations: 338.2 kB / 406.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3255, allocations: 0 / 406.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.3255, allocations: 16 kB / 406.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.679e-06/0.3255, allocations: 11.98 kB / 406.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003298/0.3259, allocations: 234.5 kB / 406.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.3273, allocations: 1.311 MB / 408.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.3276, allocations: 179.1 kB / 408.4 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.3279, allocations: 136.7 kB / 408.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.3279, allocations: 7.938 kB / 408.6 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.602e-05/0.3279, allocations: 34.56 kB / 408.6 MB, free: 24.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.3279, allocations: 4 kB / 408.6 MB, free: 24.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003998/0.3283, allocations: 224.6 kB / 408.8 MB, free: 23.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.01e-05/0.3284, allocations: 55.41 kB / 408.9 MB, free: 23.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002658/0.3287, allocations: 319 kB / 409.2 MB, free: 23.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.3287, allocations: 29.7 kB / 409.2 MB, free: 23.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.824e-05/0.3288, allocations: 208 kB / 409.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.559e-05/0.3288, allocations: 59.14 kB / 409.5 MB, free: 23.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.846e-05/0.3289, allocations: 41.7 kB / 409.5 MB, free: 23.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.387e-05/0.329, allocations: 342.8 kB / 409.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.3291, allocations: 75.89 kB / 409.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.3292, allocations: 135.6 kB / 410.1 MB, free: 22.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.3294, allocations: 159.6 kB / 410.2 MB, free: 22.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3294, allocations: 0 / 410.2 MB, free: 22.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003058/0.3297, allocations: 251.7 kB / 410.5 MB, free: 22.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3298, allocations: 8 kB / 410.5 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.3298, allocations: 0 / 410.5 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.3298, allocations: 4 kB / 410.5 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.33, allocations: 43.92 kB / 410.5 MB, free: 22.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.33, allocations: 7.984 kB / 410.5 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003621/0.3304, allocations: 68.03 kB / 410.6 MB, free: 21.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.3304, allocations: 12 kB / 410.6 MB, free: 21.93 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.3306, allocations: 157.6 kB / 410.8 MB, free: 21.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.228e-05/0.3306, allocations: 27.66 kB / 410.8 MB, free: 21.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003831/0.331, allocations: 203.7 kB / 411 MB, free: 21.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.331, allocations: 11.94 kB / 411 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.331, allocations: 0 / 411 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3311, allocations: 3.984 kB / 411 MB, free: 21.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006622/0.3317, allocations: 0.6278 MB / 411.6 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3317, allocations: 3.938 kB / 411.6 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.3319, allocations: 27.98 kB / 411.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3319, allocations: 0 / 411.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.3319, allocations: 8 kB / 411.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3319, allocations: 32 / 411.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3319, allocations: 4 kB / 411.7 MB, free: 20.78 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006219/0.3382, allocations: 2.729 MB / 414.4 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-05/0.3383, allocations: 116.7 kB / 414.5 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.284e-05/0.3383, allocations: 7.875 kB / 414.5 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003935/0.3387, allocations: 59.98 kB / 414.6 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.3389, allocations: 75.86 kB / 414.7 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.3389, allocations: 8 kB / 414.7 MB, free: 17.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002055/0.3391, allocations: 234 kB / 414.9 MB, free: 17.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3392, allocations: 3.938 kB / 414.9 MB, free: 17.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004692/0.3396, allocations: 103.8 kB / 415 MB, free: 17.27 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001556/0.3398, allocations: 107.2 kB / 415.1 MB, free: 17.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000304/0.3401, allocations: 183.7 kB / 415.3 MB, free: 16.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3401, allocations: 0 / 415.3 MB, free: 16.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.3403, allocations: 107.9 kB / 415.4 MB, free: 16.87 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.3407, allocations: 65.28 kB / 415.4 MB, free: 16.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.3421, allocations: 0.9939 MB / 416.4 MB, free: 15.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.3423, allocations: 0.7755 MB / 417.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000145/0.3424, allocations: 42.28 kB / 417.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.479e-05/0.3425, allocations: 31.36 kB / 417.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3425, allocations: 0 / 417.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of Templates: time 0.006671/0.3492, allocations: 3.986 MB / 421.3 MB, free: 10.96 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches