Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001358/0.001358, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008544/0.0008544, allocations: 95.59 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.601e-05/1.592e-05, allocations: 4 kB / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09438/0.09441, allocations: 51.48 MB / 395.2 MB, free: 4.754 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2898/0.3842, allocations: 81.55 MB / 476.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001573/0.3845, allocations: 71.86 kB / 476.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01482/0.3993, allocations: 6.341 MB / 483.1 MB, free: 6.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.3993, allocations: 0 / 483.1 MB, free: 6.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.082e-05/0.3993, allocations: 15.7 kB / 483.1 MB, free: 6.219 MB / 346.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.001021/0.4004, allocations: 0.6888 MB / 483.8 MB, free: 5.508 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.4004, allocations: 8.031 kB / 483.8 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.018e-05/0.4005, allocations: 43.03 kB / 483.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.401, allocations: 358.1 kB / 484.2 MB, free: 5.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.401, allocations: 15.61 kB / 484.2 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.934e-05/0.401, allocations: 16 kB / 484.3 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003187/0.4014, allocations: 215.7 kB / 484.5 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000379/0.4018, allocations: 281.5 kB / 484.7 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.4018, allocations: 3.469 kB / 484.8 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.4018, allocations: 7.422 kB / 484.8 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.4018, allocations: 11.94 kB / 484.8 MB, free: 4.723 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.4032, allocations: 1.268 MB / 486 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002862/0.4035, allocations: 243.5 kB / 486.3 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.4036, allocations: 102.2 kB / 486.4 MB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.4037, allocations: 4 kB / 486.4 MB, free: 3.332 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.329e-05/0.4037, allocations: 30.56 kB / 486.4 MB, free: 3.293 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.233e-06/0.4037, allocations: 0 / 486.4 MB, free: 3.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.002136/0.4058, allocations: 0.7032 MB / 487.1 MB, free: 2.621 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.484e-05/0.4058, allocations: 55.41 kB / 487.2 MB, free: 2.555 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.4061, allocations: 259.9 kB / 487.4 MB, free: 2.355 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.4061, allocations: 25.7 kB / 487.4 MB, free: 2.324 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.814e-05/0.4062, allocations: 217.4 kB / 487.7 MB, free: 2.145 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.4062, allocations: 50.06 kB / 487.7 MB, free: 2.102 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.4062, allocations: 0 / 487.7 MB, free: 2.102 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.405e-05/0.4063, allocations: 335 kB / 488 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.822e-05/0.4064, allocations: 69.97 kB / 488.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.4065, allocations: 124.7 kB / 488.2 MB, free: 1.609 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001902/0.4084, allocations: 0.5996 MB / 488.8 MB, free: 1.039 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.4084, allocations: 0 / 488.8 MB, free: 1.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002064/0.4104, allocations: 0.7567 MB / 489.6 MB, free: 336 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.4105, allocations: 4 kB / 489.6 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4105, allocations: 4 kB / 489.6 MB, free: 328 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.4105, allocations: 8.25 kB / 489.6 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.4107, allocations: 43.88 kB / 489.6 MB, free: 276 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.4107, allocations: 7.984 kB / 489.6 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003501/0.411, allocations: 75.78 kB / 489.7 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.4111, allocations: 15.38 kB / 489.7 MB, free: 180 kB / 346.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 () * 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 5.829e-05/0.4111, allocations: 108.9 kB / 489.8 MB, free: 64 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.457e-05/0.4112, allocations: 27.7 kB / 489.9 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002335/0.4135, allocations: 0.7227 MB / 490.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.4135, allocations: 0 / 490.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4135, allocations: 7.953 kB / 490.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.4136, allocations: 2.156 kB / 490.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002583/0.4161, allocations: 1.107 MB / 491.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4162, allocations: 4 kB / 491.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.4163, allocations: 34.98 kB / 491.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.4163, allocations: 4 kB / 491.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.4164, allocations: 0 / 491.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4164, allocations: 3.953 kB / 491.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4164, allocations: 4.031 kB / 491.8 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.4187, allocations: 0.9076 MB / 492.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.122e-05/0.4188, allocations: 104 kB / 492.8 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.548e-05/0.4189, allocations: 3.953 kB / 492.8 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003961/0.4193, allocations: 75.98 kB / 492.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.4195, allocations: 78.48 kB / 492.9 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.4195, allocations: 7.5 kB / 492.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001874/0.4197, allocations: 207.1 kB / 493.1 MB, free: 13 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4197, allocations: 3.938 kB / 493.1 MB, free: 13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003767/0.4201, allocations: 83.69 kB / 493.2 MB, free: 12.91 MB / 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 () * 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.0001466/0.4202, allocations: 107.2 kB / 493.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.4205, allocations: 163.1 kB / 493.5 MB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.4205, allocations: 0 / 493.5 MB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.4207, allocations: 104.5 kB / 493.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.421, allocations: 37.73 kB / 493.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.4221, allocations: 0.5428 MB / 494.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.4225, allocations: 0.7794 MB / 494.9 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.4227, allocations: 34.06 kB / 495 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.272e-05/0.4227, allocations: 19.44 kB / 495 MB, free: 11.21 MB / 362.7 MB Notification: Performance of SimCode: time 1.532e-06/0.4227, allocations: 0 / 495 MB, free: 11.21 MB / 362.7 MB Notification: Performance of Templates: time 0.00602/0.4288, allocations: 2.887 MB / 497.9 MB, free: 8.41 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches