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.001002/0.001003, allocations: 175.6 kB / 17.4 MB, free: 4.426 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.395/1.395, allocations: 223.3 MB / 241.4 MB, free: 11.68 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.0008308/0.0008307, allocations: 102 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.000324, allocations: 8 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2188, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0977/0.3166, allocations: 81.52 MB / 484.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001807/0.3168, allocations: 71.95 kB / 484.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01675/0.3335, allocations: 6.37 MB / 490.7 MB, free: 8.348 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3336, allocations: 0 / 490.7 MB, free: 8.348 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.262e-05/0.3336, allocations: 8 kB / 490.7 MB, free: 8.34 MB / 362.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.001613/0.3352, allocations: 0.7524 MB / 491.5 MB, free: 7.535 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.3353, allocations: 12.03 kB / 491.5 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.3354, allocations: 44.47 kB / 491.5 MB, free: 7.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005924/0.336, allocations: 362.5 kB / 491.9 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.3361, allocations: 21.03 kB / 491.9 MB, free: 7.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.793e-05/0.3361, allocations: 32.38 kB / 491.9 MB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000559/0.3367, allocations: 338.5 kB / 492.3 MB, free: 6.691 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3367, allocations: 4.188 kB / 492.3 MB, free: 6.688 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.3367, allocations: 19.94 kB / 492.3 MB, free: 6.668 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.3368, allocations: 8 kB / 492.3 MB, free: 6.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/0.3372, allocations: 234.4 kB / 492.5 MB, free: 6.434 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.339, allocations: 1.331 MB / 493.8 MB, free: 5.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004393/0.3394, allocations: 259.6 kB / 494.1 MB, free: 4.738 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.3396, allocations: 108.8 kB / 494.2 MB, free: 4.629 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-05/0.3397, allocations: 12.23 kB / 494.2 MB, free: 4.617 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.3397, allocations: 38.5 kB / 494.3 MB, free: 4.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.3397, allocations: 0 / 494.3 MB, free: 4.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.000435/0.3402, allocations: 222.3 kB / 494.5 MB, free: 4.348 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.3402, allocations: 59.34 kB / 494.5 MB, free: 4.277 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003478/0.3406, allocations: 326.9 kB / 494.9 MB, free: 3.957 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.3406, allocations: 25.8 kB / 494.9 MB, free: 3.926 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.3407, allocations: 219.9 kB / 495.1 MB, free: 3.707 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.882e-05/0.3408, allocations: 51.27 kB / 495.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.32e-05/0.3408, allocations: 4 kB / 495.1 MB, free: 3.652 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.341, allocations: 334.8 kB / 495.5 MB, free: 3.316 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.3411, allocations: 67.97 kB / 495.5 MB, free: 3.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.3413, allocations: 139.7 kB / 495.7 MB, free: 3.086 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.3415, allocations: 170.3 kB / 495.8 MB, free: 2.895 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3415, allocations: 0 / 495.8 MB, free: 2.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003662/0.3419, allocations: 241.1 kB / 496.1 MB, free: 2.652 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3419, allocations: 4 kB / 496.1 MB, free: 2.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3419, allocations: 4 kB / 496.1 MB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.3419, allocations: 0 / 496.1 MB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.3421, allocations: 51.91 kB / 496.1 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.3421, allocations: 4 kB / 496.1 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003534/0.3425, allocations: 87.86 kB / 496.2 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.3425, allocations: 12 kB / 496.2 MB, free: 2.492 MB / 362.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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001518/0.3427, allocations: 149.8 kB / 496.4 MB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.35e-05/0.3428, allocations: 35.56 kB / 496.4 MB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004033/0.3432, allocations: 199.7 kB / 496.6 MB, free: 2.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.3432, allocations: 4 kB / 496.6 MB, free: 2.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3432, allocations: 0 / 496.6 MB, free: 2.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3432, allocations: 0 / 496.6 MB, free: 2.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007752/0.344, allocations: 0.6348 MB / 497.3 MB, free: 1.398 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.344, allocations: 0 / 497.3 MB, free: 1.398 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.3441, allocations: 31.95 kB / 497.3 MB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.3442, allocations: 4 kB / 497.3 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.3442, allocations: 4 kB / 497.3 MB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3442, allocations: 0 / 497.3 MB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3442, allocations: 8 kB / 497.3 MB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004952/0.3447, allocations: 375.8 kB / 497.7 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.3448, allocations: 108.8 kB / 497.8 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.894e-05/0.3449, allocations: 4.062 kB / 497.8 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00038/0.3452, allocations: 79.92 kB / 497.9 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.3454, allocations: 79.86 kB / 497.9 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.3455, allocations: 4 kB / 497.9 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002475/0.3457, allocations: 233.9 kB / 498.2 MB, free: 456 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3457, allocations: 0 / 498.2 MB, free: 456 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003739/0.3461, allocations: 87.69 kB / 498.2 MB, free: 368 kB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00018/0.3463, allocations: 117.6 kB / 498.4 MB, free: 244 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003341/0.3466, allocations: 183.7 kB / 498.5 MB, free: 60 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3466, allocations: 0 / 498.5 MB, free: 60 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.3468, allocations: 107.9 kB / 498.6 MB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.3473, allocations: 43.94 kB / 498.7 MB, free: 15.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.3487, allocations: 0.9021 MB / 499.6 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.3491, allocations: 0.7833 MB / 0.4886 GB, free: 14.17 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.3493, allocations: 38.28 kB / 0.4887 GB, free: 14.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.3494, allocations: 23.44 kB / 0.4887 GB, free: 14.11 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.3494, allocations: 0 / 0.4887 GB, free: 14.11 MB / 378.7 MB Notification: Performance of Templates: time 0.008845/0.3582, allocations: 3.658 MB / 0.4923 GB, free: 10.51 MB / 378.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/jenkins1/ws/OpenModelicaLibraryTestingWork/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