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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009575/0.0009576, allocations: 186.1 kB / 8.136 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.195/1.195, allocations: 221.4 MB / 229.9 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009059/0.000906, allocations: 95.39 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.272e-06/6.312e-06, allocations: 0 / 336.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1803, allocations: 50.39 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08251/0.2628, allocations: 80.66 MB / 467.6 MB, free: 6.133 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001668/0.2631, allocations: 75.89 kB / 467.6 MB, free: 6.059 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01631/0.2794, allocations: 6.095 MB / 473.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.935e-05/0.2794, allocations: 11.98 kB / 473.7 MB, free: 15.96 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.001159/0.2806, allocations: 0.7128 MB / 474.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.2806, allocations: 12.03 kB / 474.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.151e-05/0.2807, allocations: 45.06 kB / 474.5 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005404/0.2813, allocations: 361.4 kB / 474.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.2813, allocations: 8 kB / 474.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.585e-05/0.2813, allocations: 23.94 kB / 474.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003858/0.2817, allocations: 217.2 kB / 475.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004465/0.2822, allocations: 288.6 kB / 475.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.2822, allocations: 4 kB / 475.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.2822, allocations: 4 kB / 475.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.2823, allocations: 8 kB / 475.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.2839, allocations: 1.271 MB / 476.7 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.2842, allocations: 105.7 kB / 476.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002443/0.2844, allocations: 124.8 kB / 476.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/0.2845, allocations: 8 kB / 476.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.2845, allocations: 34.56 kB / 476.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/0.2845, allocations: 0 / 476.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.002431/0.2869, allocations: 0.7742 MB / 477.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.287, allocations: 55.41 kB / 477.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.2873, allocations: 262.9 kB / 478 MB, free: 11.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.2873, allocations: 29.7 kB / 478.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.173e-05/0.2874, allocations: 179.8 kB / 478.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.116e-05/0.2875, allocations: 59.19 kB / 478.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.2875, allocations: 4 kB / 478.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2876, allocations: 334.8 kB / 478.6 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.2877, allocations: 67.92 kB / 478.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.2879, allocations: 132.8 kB / 478.8 MB, free: 10.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00222/0.2901, allocations: 0.6869 MB / 479.5 MB, free: 9.941 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.2901, allocations: 4 kB / 479.5 MB, free: 9.938 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002411/0.2926, allocations: 0.8474 MB / 480.4 MB, free: 9.086 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.2926, allocations: 4 kB / 480.4 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.2926, allocations: 2.984 kB / 480.4 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.2926, allocations: 8 kB / 480.4 MB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.2928, allocations: 43.92 kB / 480.4 MB, free: 9.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.2928, allocations: 7.984 kB / 480.4 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/0.2932, allocations: 91.78 kB / 480.5 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.2933, allocations: 11.94 kB / 480.5 MB, free: 8.922 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 () * 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 8.566e-05/0.2934, allocations: 112.9 kB / 480.6 MB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.479e-05/0.2934, allocations: 23.62 kB / 480.7 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002472/0.2959, allocations: 0.8114 MB / 481.5 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2959, allocations: 8 kB / 481.5 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2959, allocations: 0 / 481.5 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.2959, allocations: 3.984 kB / 481.5 MB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.2988, allocations: 1.2 MB / 482.7 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.2988, allocations: 0 / 482.7 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00019/0.299, allocations: 35.83 kB / 482.7 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.299, allocations: 4 kB / 482.7 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.299, allocations: 0 / 482.7 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.299, allocations: 4.031 kB / 482.7 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.299, allocations: 3.984 kB / 482.7 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002533/0.3016, allocations: 0.9971 MB / 483.7 MB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.67e-05/0.3017, allocations: 104.8 kB / 483.8 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.975e-05/0.3017, allocations: 0 / 483.8 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.3022, allocations: 91.98 kB / 483.9 MB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.3023, allocations: 59.89 kB / 484 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.3024, allocations: 8 kB / 484 MB, free: 5.359 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001902/0.3026, allocations: 209.2 kB / 484.2 MB, free: 5.156 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003735/0.303, allocations: 79.83 kB / 484.3 MB, free: 5.078 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.0001422/0.3031, allocations: 107.2 kB / 484.4 MB, free: 4.961 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002957/0.3034, allocations: 179.9 kB / 484.5 MB, free: 4.785 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3034, allocations: 0 / 484.5 MB, free: 4.785 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.3036, allocations: 107.9 kB / 484.6 MB, free: 4.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.3039, allocations: 35.31 kB / 484.7 MB, free: 4.648 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.3051, allocations: 0.5459 MB / 485.2 MB, free: 4.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003962/0.3055, allocations: 0.8138 MB / 486 MB, free: 3.23 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3055, allocations: 0 / 486 MB, free: 3.23 MB / 362.7 MB Notification: Performance of Templates: time 0.006467/0.312, allocations: 3.355 MB / 489.4 MB, free: 15.93 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/jenkins/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