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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002168/0.002168, allocations: 105.6 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002423/0.002424, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.657/2.657, allocations: 222.9 MB / 241.8 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 51.17 kB / 300.6 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1895, allocations: 49.45 MB / 350.1 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.008049/0.1976, allocations: 3.003 MB / 353.1 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00245/0.2001, allocations: 0.7167 MB / 353.8 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004488/0.2006, allocations: 4 kB / 353.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004323/0.2012, allocations: 43.62 kB / 353.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006403/0.2018, allocations: 103.3 kB / 353.9 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005823/0.2024, allocations: 79.94 kB / 354 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007771/0.2032, allocations: 418.2 kB / 354.4 MB, free: 260 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005087/0.2038, allocations: 181.3 kB / 354.6 MB, free: 76 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003196/0.2041, allocations: 135.4 kB / 354.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004886/0.2046, allocations: 175.2 kB / 354.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.2048, allocations: 28 kB / 354.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002423/0.205, allocations: 31.98 kB / 354.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002834/0.2053, allocations: 95.66 kB / 355 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004017/0.2057, allocations: 183 kB / 355.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007423/0.2065, allocations: 391.3 kB / 355.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.537e-05/0.2065, allocations: 3.984 kB / 355.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2065, allocations: 3.938 kB / 355.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.683e-05/0.2066, allocations: 0 / 355.6 MB, free: 15.05 MB / 302.1 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.002929/0.2095, allocations: 0.7874 MB / 356.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.694e-05/0.2096, allocations: 12.03 kB / 356.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.2098, allocations: 40.47 kB / 356.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008062/0.2106, allocations: 346.5 kB / 356.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/0.2107, allocations: 25.03 kB / 356.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.747e-05/0.2108, allocations: 28.38 kB / 356.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.2119, allocations: 358.2 kB / 357.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.2119, allocations: 0 / 357.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.815e-05/0.212, allocations: 8 kB / 357.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.212, allocations: 8 kB / 357.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008186/0.2128, allocations: 238.5 kB / 357.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00335/0.2162, allocations: 1.311 MB / 358.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006018/0.2168, allocations: 178.6 kB / 358.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004449/0.2173, allocations: 136.7 kB / 359.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.369e-05/0.2174, allocations: 4 kB / 359.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.2174, allocations: 30.56 kB / 359.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 4.308e-06/0.2174, allocations: 0 / 359.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007655/0.2182, allocations: 229.6 kB / 359.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.2183, allocations: 55.41 kB / 359.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006615/0.219, allocations: 315 kB / 359.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.664e-05/0.219, allocations: 33.69 kB / 359.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/0.2193, allocations: 215.9 kB / 359.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.373e-05/0.2194, allocations: 51.2 kB / 360 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.2195, allocations: 53.55 kB / 360 MB, free: 10.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.2198, allocations: 338.8 kB / 360.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.22, allocations: 71.91 kB / 360.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003129/0.2203, allocations: 135.7 kB / 360.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/0.2207, allocations: 166.6 kB / 360.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.2207, allocations: 4 kB / 360.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007291/0.2215, allocations: 245.2 kB / 361 MB, free: 9.383 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.2215, allocations: 4 kB / 361 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.2216, allocations: 4 kB / 361 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/0.2216, allocations: 4 kB / 361 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003195/0.2219, allocations: 43.91 kB / 361 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/0.2219, allocations: 4 kB / 361 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006809/0.2226, allocations: 71.8 kB / 361.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.877e-05/0.2227, allocations: 8 kB / 361.1 MB, free: 9.246 MB / 302.1 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.0002891/0.223, allocations: 149.8 kB / 361.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.2231, allocations: 39.55 kB / 361.3 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006728/0.2238, allocations: 202.9 kB / 361.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.2239, allocations: 4 kB / 361.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.2239, allocations: 0 / 361.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.2239, allocations: 0 / 361.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/0.2254, allocations: 0.6317 MB / 362.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.2254, allocations: 4 kB / 362.1 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.2257, allocations: 27.98 kB / 362.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.316e-05/0.2257, allocations: 4 kB / 362.2 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.2258, allocations: 0 / 362.2 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.264e-06/0.2258, allocations: 3.984 kB / 362.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2258, allocations: 4 kB / 362.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008678/0.2267, allocations: 379.9 kB / 362.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.2268, allocations: 104.8 kB / 362.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.033e-05/0.2269, allocations: 7.984 kB / 362.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006273/0.2276, allocations: 51.92 kB / 362.7 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003389/0.2279, allocations: 79.94 kB / 362.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-05/0.228, allocations: 4 kB / 362.8 MB, free: 7.457 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004535/0.2284, allocations: 237.9 kB / 363 MB, free: 7.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2285, allocations: 0 / 363 MB, free: 7.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000659/0.2291, allocations: 87.69 kB / 363.1 MB, free: 7.141 MB / 302.1 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.0002665/0.2294, allocations: 113.1 kB / 363.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006283/0.23, allocations: 191.2 kB / 363.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.2301, allocations: 0 / 363.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003013/0.2304, allocations: 115.2 kB / 363.5 MB, free: 6.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000737/0.2311, allocations: 48.81 kB / 363.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.2335, allocations: 0.8837 MB / 364.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006482/0.2342, allocations: 0.7794 MB / 365.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.2344, allocations: 23.44 kB / 365.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of SimCode: time 1.123e-06/0.2344, allocations: 0 / 365.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of Templates: time 0.01352/0.248, allocations: 4.297 MB / 369.5 MB, free: 0.6562 MB / 302.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches