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.001438/0.001438, allocations: 200.5 kB / 18.11 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 226.5 MB / 245.4 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007372/0.0007373, allocations: 103.5 kB / 297.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002595, allocations: 8 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2233, allocations: 51.29 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1048/0.3281, allocations: 82.23 MB / 491.6 MB, free: 9.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.3284, allocations: 77.92 kB / 491.7 MB, free: 9.176 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01722/0.3456, allocations: 6.412 MB / 498.1 MB, free: 2.738 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3457, allocations: 0 / 498.1 MB, free: 2.738 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.944e-05/0.3457, allocations: 8 kB / 498.1 MB, free: 2.73 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.001415/0.3471, allocations: 0.7563 MB / 498.9 MB, free: 1.922 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3472, allocations: 8.031 kB / 498.9 MB, free: 1.914 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.473e-05/0.3473, allocations: 44.47 kB / 498.9 MB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005878/0.3479, allocations: 370.7 kB / 499.3 MB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.3479, allocations: 24.97 kB / 499.3 MB, free: 1.445 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.862e-05/0.348, allocations: 32.38 kB / 499.3 MB, free: 1.414 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/0.3486, allocations: 334.5 kB / 499.7 MB, free: 1.074 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.3486, allocations: 192 / 499.7 MB, free: 1.074 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.923e-05/0.3486, allocations: 23.94 kB / 499.7 MB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.3487, allocations: 8 kB / 499.7 MB, free: 1.043 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.3491, allocations: 238.4 kB / 499.9 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.3511, allocations: 1.327 MB / 0.4895 GB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004474/0.3516, allocations: 259.6 kB / 0.4897 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.3518, allocations: 107.3 kB / 0.4898 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.3519, allocations: 4 kB / 0.4898 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.3519, allocations: 38.5 kB / 0.4899 GB, free: 14.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.3519, allocations: 0 / 0.4899 GB, free: 14.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004935/0.3524, allocations: 221.6 kB / 0.4901 GB, free: 14.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.3525, allocations: 59.39 kB / 0.4902 GB, free: 14.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003646/0.3528, allocations: 322.9 kB / 0.4905 GB, free: 14.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.3529, allocations: 29.7 kB / 0.4905 GB, free: 14.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.353, allocations: 215.9 kB / 0.4907 GB, free: 14.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.693e-05/0.3531, allocations: 51.2 kB / 0.4907 GB, free: 14.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.246e-05/0.3531, allocations: 4 kB / 0.4907 GB, free: 14.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3533, allocations: 334.8 kB / 0.4911 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.3534, allocations: 71.95 kB / 0.4911 GB, free: 13.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.3536, allocations: 135.8 kB / 0.4913 GB, free: 13.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.3538, allocations: 174.2 kB / 0.4914 GB, free: 13.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3538, allocations: 0 / 0.4914 GB, free: 13.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003707/0.3542, allocations: 241.2 kB / 0.4917 GB, free: 13.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3542, allocations: 4 kB / 0.4917 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.3542, allocations: 4 kB / 0.4917 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.3543, allocations: 7.984 kB / 0.4917 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.3544, allocations: 43.92 kB / 0.4917 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.3545, allocations: 4 kB / 0.4917 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003654/0.3548, allocations: 87.86 kB / 0.4918 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.3549, allocations: 11.94 kB / 0.4918 GB, free: 12.88 MB / 378.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.0001499/0.355, allocations: 153.8 kB / 0.492 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.3551, allocations: 35.56 kB / 0.492 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003811/0.3555, allocations: 206.5 kB / 0.4922 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.3555, allocations: 0 / 0.4922 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3555, allocations: 0 / 0.4922 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.3555, allocations: 3.984 kB / 0.4922 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007823/0.3563, allocations: 0.6279 MB / 0.4928 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3563, allocations: 0 / 0.4928 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001451/0.3565, allocations: 27.98 kB / 0.4928 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3565, allocations: 4.031 kB / 0.4928 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.3565, allocations: 4 kB / 0.4928 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3565, allocations: 4 kB / 0.4929 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3565, allocations: 0 / 0.4929 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004799/0.357, allocations: 375.8 kB / 0.4932 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.805e-05/0.3571, allocations: 112.8 kB / 0.4933 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.76e-05/0.3572, allocations: 0 / 0.4933 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003844/0.3575, allocations: 87.98 kB / 0.4934 GB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.3577, allocations: 79.86 kB / 0.4935 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.3578, allocations: 4 kB / 0.4935 GB, free: 11.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002398/0.358, allocations: 233.9 kB / 0.4937 GB, free: 10.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.358, allocations: 0 / 0.4937 GB, free: 10.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003813/0.3584, allocations: 83.75 kB / 0.4938 GB, free: 10.75 MB / 378.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.0001873/0.3586, allocations: 123 kB / 0.4939 GB, free: 10.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.3589, allocations: 179.9 kB / 0.4941 GB, free: 10.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.359, allocations: 0 / 0.4941 GB, free: 10.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.3591, allocations: 110.8 kB / 0.4942 GB, free: 10.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.3596, allocations: 51.77 kB / 0.4942 GB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.3611, allocations: 0.8926 MB / 0.4951 GB, free: 9.363 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.3615, allocations: 0.7794 MB / 0.4959 GB, free: 8.559 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.3617, allocations: 38.27 kB / 0.4959 GB, free: 8.523 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.965e-05/0.3617, allocations: 23.44 kB / 0.4959 GB, free: 8.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3618, allocations: 0 / 0.4959 GB, free: 8.5 MB / 378.7 MB Notification: Performance of Templates: time 0.00728/0.369, allocations: 3.644 MB / 0.4995 GB, free: 4.906 MB / 378.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/jenkins1/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