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.002594/0.002595, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001045/0.001044, allocations: 102.7 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 47.92 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2256, allocations: 50.44 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004546/0.2302, allocations: 3.019 MB / 410.1 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.2316, allocations: 0.7395 MB / 410.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.2318, allocations: 4 kB / 410.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.2321, allocations: 54.36 kB / 410.9 MB, free: 24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003095/0.2324, allocations: 87.36 kB / 410.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003707/0.2328, allocations: 91.86 kB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004217/0.2332, allocations: 414.3 kB / 411.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003524/0.2336, allocations: 189.3 kB / 411.6 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.2337, allocations: 131.5 kB / 411.7 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002692/0.234, allocations: 187.2 kB / 411.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.229e-05/0.2341, allocations: 24 kB / 412 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.2342, allocations: 40 kB / 412 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.2344, allocations: 95.62 kB / 412.1 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.2346, allocations: 179.1 kB / 412.3 MB, free: 22.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004752/0.2351, allocations: 483.9 kB / 412.7 MB, free: 22.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2351, allocations: 0 / 412.7 MB, free: 22.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2351, allocations: 4 kB / 412.7 MB, free: 22.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2351, allocations: 0 / 412.7 MB, free: 22.1 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.001898/0.2371, allocations: 0.7835 MB / 413.5 MB, free: 21.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.2371, allocations: 8.875 kB / 413.5 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.2372, allocations: 40.47 kB / 413.6 MB, free: 21.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004986/0.2377, allocations: 342.6 kB / 413.9 MB, free: 20.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.2378, allocations: 25.03 kB / 413.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.43e-05/0.2378, allocations: 28.38 kB / 414 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006973/0.2386, allocations: 350.2 kB / 414.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.2386, allocations: 0 / 414.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.583e-05/0.2386, allocations: 15.94 kB / 414.3 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.2387, allocations: 8 kB / 414.3 MB, free: 20.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005647/0.2392, allocations: 242.4 kB / 414.6 MB, free: 20.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002083/0.2413, allocations: 1.311 MB / 415.9 MB, free: 18.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000456/0.2418, allocations: 174.5 kB / 416 MB, free: 18.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.2421, allocations: 132.7 kB / 416.2 MB, free: 18.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.287e-05/0.2422, allocations: 4 kB / 416.2 MB, free: 18.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.2422, allocations: 34.56 kB / 416.2 MB, free: 18.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.803e-06/0.2422, allocations: 0 / 416.2 MB, free: 18.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005928/0.2428, allocations: 230 kB / 416.4 MB, free: 18.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.208e-05/0.2429, allocations: 55.41 kB / 416.5 MB, free: 18.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.2433, allocations: 319.2 kB / 416.8 MB, free: 17.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.2433, allocations: 29.7 kB / 416.8 MB, free: 17.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.2434, allocations: 208 kB / 417 MB, free: 17.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.01e-05/0.2435, allocations: 63.19 kB / 417.1 MB, free: 17.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.2436, allocations: 49.61 kB / 417.1 MB, free: 17.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.566e-05/0.2437, allocations: 334.8 kB / 417.5 MB, free: 17.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.2439, allocations: 71.95 kB / 417.5 MB, free: 17.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.2441, allocations: 133.2 kB / 417.7 MB, free: 16.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.2444, allocations: 178.4 kB / 417.8 MB, free: 16.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.2444, allocations: 0 / 417.8 MB, free: 16.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000506/0.2449, allocations: 241 kB / 418.1 MB, free: 16.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.245, allocations: 8 kB / 418.1 MB, free: 16.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.245, allocations: 0 / 418.1 MB, free: 16.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.245, allocations: 7.984 kB / 418.1 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.2453, allocations: 52.17 kB / 418.1 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.2453, allocations: 0 / 418.1 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005398/0.2458, allocations: 63.77 kB / 418.2 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.562e-05/0.2459, allocations: 8 kB / 418.2 MB, free: 16.31 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.0001738/0.2461, allocations: 161.7 kB / 418.4 MB, free: 16.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.937e-05/0.2462, allocations: 31.56 kB / 418.4 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005104/0.2467, allocations: 206.7 kB / 418.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.2467, allocations: 4 kB / 418.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2467, allocations: 3.938 kB / 418.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2467, allocations: 0 / 418.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009043/0.2477, allocations: 0.6277 MB / 419.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2477, allocations: 0 / 419.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/0.2479, allocations: 35.92 kB / 419.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.2479, allocations: 4.031 kB / 419.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.2479, allocations: 0 / 419.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2479, allocations: 4 kB / 419.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.248, allocations: 0 / 419.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00837/0.2563, allocations: 2.729 MB / 422 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.448e-05/0.2564, allocations: 112.7 kB / 422.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.502e-05/0.2565, allocations: 15.92 kB / 422.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005117/0.257, allocations: 51.92 kB / 422.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.2572, allocations: 75.86 kB / 422.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.2573, allocations: 4 kB / 422.3 MB, free: 12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002787/0.2576, allocations: 234 kB / 422.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2576, allocations: 0 / 422.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007148/0.2583, allocations: 115.7 kB / 422.6 MB, free: 11.66 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.0001432/0.2585, allocations: 107.2 kB / 422.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004261/0.2589, allocations: 185.6 kB / 422.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2589, allocations: 0.5 kB / 422.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002251/0.2592, allocations: 111.9 kB / 423 MB, free: 11.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006047/0.2598, allocations: 58.16 kB / 423.1 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.2616, allocations: 0.9934 MB / 424.1 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.2618, allocations: 0.7911 MB / 424.8 MB, free: 9.352 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002112/0.262, allocations: 42.27 kB / 424.9 MB, free: 9.312 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.2622, allocations: 23.44 kB / 424.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.2622, allocations: 0 / 424.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of Templates: time 0.009086/0.2713, allocations: 3.999 MB / 428.9 MB, free: 5.34 MB / 298.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@2/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