Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [: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.001481/0.001481, allocations: 182 kB / 8.131 MB, free: 2.168 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.193/1.193, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009024/0.0009025, allocations: 97.42 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/8.225e-06, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.179, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08871/0.2677, allocations: 86.85 MB / 473.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.268, allocations: 83.89 kB / 473.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.06965/0.3377, allocations: 28.79 MB / 0.4908 GB, free: 2.934 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.403e-05/0.3378, allocations: 27.94 kB / 0.4909 GB, free: 2.906 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001729/0.3395, allocations: 1.294 MB / 0.4921 GB, free: 1.562 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.3395, allocations: 8.031 kB / 0.4921 GB, free: 1.555 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002383/0.3398, allocations: 162 kB / 0.4923 GB, free: 1.395 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001814/0.3416, allocations: 1.174 MB / 0.4934 GB, free: 176 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.653e-05/0.3417, allocations: 50.7 kB / 0.4935 GB, free: 116 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.153e-05/0.3418, allocations: 28 kB / 0.4935 GB, free: 88 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.09499/0.4367, allocations: 361.2 kB / 0.4939 GB, free: 129.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007367/0.4375, allocations: 0.5473 MB / 0.4944 GB, free: 129.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.4376, allocations: 3.688 kB / 0.4944 GB, free: 129.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.927e-05/0.4376, allocations: 2.594 kB / 0.4944 GB, free: 129.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.4376, allocations: 10.72 kB / 0.4944 GB, free: 129.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003605/0.4412, allocations: 2.827 MB / 0.4972 GB, free: 128.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/0.4416, allocations: 212.8 kB / 0.4974 GB, free: 128.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004221/0.442, allocations: 287.2 kB / 0.4976 GB, free: 128.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.442, allocations: 6.906 kB / 0.4977 GB, free: 128.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.607e-05/0.4421, allocations: 41 kB / 0.4977 GB, free: 128.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.264e-06/0.4421, allocations: 3.828 kB / 0.4977 GB, free: 128.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.0008479/0.4429, allocations: 463.9 kB / 0.4981 GB, free: 128.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.443, allocations: 260.8 kB / 0.4984 GB, free: 128.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002002/0.445, allocations: 1.916 MB / 0.5003 GB, free: 127.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.445, allocations: 25.7 kB / 0.5003 GB, free: 127.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.4452, allocations: 357 kB / 0.5006 GB, free: 127.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.242e-05/0.4452, allocations: 106 kB / 0.5007 GB, free: 127.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.611e-05/0.4453, allocations: 3.938 kB / 0.5007 GB, free: 127.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.125e-05/0.4453, allocations: 320.1 kB / 0.501 GB, free: 127.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.4455, allocations: 133 kB / 0.5012 GB, free: 127.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.4457, allocations: 261.6 kB / 0.5014 GB, free: 127.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.4459, allocations: 169.1 kB / 0.5016 GB, free: 127.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.4459, allocations: 3.25 kB / 0.5016 GB, free: 127.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006356/0.4466, allocations: 0.5094 MB / 0.5021 GB, free: 127.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.4466, allocations: 3.406 kB / 0.5021 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4466, allocations: 7.422 kB / 0.5021 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001944/0.4468, allocations: 49.92 kB / 0.5021 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.4472, allocations: 96.47 kB / 0.5022 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.4482, allocations: 1.491 MB / 0.5037 GB, free: 125.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004185/0.4487, allocations: 49.72 kB / 0.5037 GB, free: 125.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.4487, allocations: 20.19 kB / 0.5037 GB, free: 125.9 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: battery.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000114/0.4488, allocations: 115.6 kB / 0.5039 GB, free: 125.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.449, allocations: 131.8 kB / 0.504 GB, free: 125.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008256/0.4498, allocations: 0.498 MB / 0.5045 GB, free: 125.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.4498, allocations: 3.125 kB / 0.5045 GB, free: 125.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.4498, allocations: 3.375 kB / 0.5045 GB, free: 125.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.4498, allocations: 8.688 kB / 0.5045 GB, free: 125.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.4519, allocations: 1.597 MB / 0.506 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4519, allocations: 0 / 0.506 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.4523, allocations: 71.05 kB / 0.5061 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001186/0.4524, allocations: 48.2 kB / 0.5062 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.4524, allocations: 7.094 kB / 0.5062 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008423/0.4533, allocations: 1.452 MB / 0.5076 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4533, allocations: 0 / 0.5076 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008825/0.4542, allocations: 0.7471 MB / 0.5083 GB, free: 123.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004816/0.4547, allocations: 451.9 kB / 0.5087 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.4548, allocations: 4.547 kB / 0.5087 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.4553, allocations: 55.88 kB / 0.5088 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.768e-05/0.4554, allocations: 27.36 kB / 0.5088 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.4554, allocations: 8.875 kB / 0.5088 GB, free: 123.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00152/0.457, allocations: 1.462 MB / 0.5103 GB, free: 123.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006338/0.4576, allocations: 209.3 kB / 0.5105 GB, free: 123.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005864/0.4582, allocations: 348.1 kB / 0.5108 GB, free: 123.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006008/0.4588, allocations: 429.2 kB / 0.5112 GB, free: 123.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4588, allocations: 3.906 kB / 0.5112 GB, free: 123.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003189/0.4591, allocations: 269.4 kB / 0.5115 GB, free: 123.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006575/0.4598, allocations: 166.4 kB / 0.5116 GB, free: 123 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002895/0.4627, allocations: 2.146 MB / 0.5137 GB, free: 122.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007976/0.4635, allocations: 1.353 MB / 0.515 GB, free: 121.9 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4635, allocations: 1.344 kB / 0.515 GB, free: 121.9 MB / 378.7 MB Notification: Performance of Templates: time 0.01947/0.483, allocations: 9.829 MB / 0.5246 GB, free: 121.4 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches