Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [: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.0009498/0.0009498, allocations: 184.9 kB / 8.139 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.172/1.172, allocations: 221.4 MB / 229.9 MB, free: 3.301 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.0008601/0.0008601, allocations: 94.91 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.39e-06/5.43e-06, allocations: 0 / 336.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2039, allocations: 50.39 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08793/0.2918, allocations: 86.26 MB / 473.2 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.2921, allocations: 80.73 kB / 473.2 MB, free: 440 kB / 346.7 MB Notification: Performance of FrontEnd: time 0.06227/0.3544, allocations: 26.24 MB / 499.5 MB, free: 6.129 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001106/0.3545, allocations: 24 kB / 499.5 MB, free: 6.105 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002097/0.3566, allocations: 1.487 MB / 0.4892 GB, free: 4.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3567, allocations: 12.03 kB / 0.4893 GB, free: 4.559 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002632/0.357, allocations: 185.7 kB / 0.4894 GB, free: 4.375 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002381/0.3593, allocations: 1.496 MB / 0.4909 GB, free: 2.836 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.124e-05/0.3594, allocations: 46.7 kB / 0.4909 GB, free: 2.781 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-05/0.3595, allocations: 28 kB / 0.491 GB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004997/0.36, allocations: 265.9 kB / 0.4912 GB, free: 2.496 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007213/0.3607, allocations: 473.6 kB / 0.4917 GB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.3608, allocations: 0 / 0.4917 GB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.3608, allocations: 4 kB / 0.4917 GB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.3608, allocations: 12 kB / 0.4917 GB, free: 1.973 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1118/0.4726, allocations: 3.22 MB / 0.4948 GB, free: 128.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.4729, allocations: 135.8 kB / 0.495 GB, free: 128.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.4732, allocations: 142.8 kB / 0.4951 GB, free: 128.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.091e-05/0.4732, allocations: 6.625 kB / 0.4951 GB, free: 128.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.992e-05/0.4733, allocations: 41.5 kB / 0.4951 GB, free: 128.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.345e-06/0.4733, allocations: 0 / 0.4951 GB, free: 128.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005882/0.4739, allocations: 327 kB / 0.4955 GB, free: 128.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.4739, allocations: 218.9 kB / 0.4957 GB, free: 128.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002623/0.4766, allocations: 2.494 MB / 0.4981 GB, free: 128.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.4766, allocations: 28.61 kB / 0.4981 GB, free: 128.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.4768, allocations: 419.9 kB / 0.4985 GB, free: 127.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.389e-05/0.4768, allocations: 76.67 kB / 0.4986 GB, free: 127.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.513e-05/0.4769, allocations: 0 / 0.4986 GB, free: 127.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.975e-05/0.4769, allocations: 319.6 kB / 0.4989 GB, free: 127.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.477, allocations: 80.83 kB / 0.499 GB, free: 127.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.4772, allocations: 241.7 kB / 0.4992 GB, free: 127.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.4774, allocations: 98.16 kB / 0.4993 GB, free: 127.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.4774, allocations: 0 / 0.4993 GB, free: 127.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008836/0.4783, allocations: 0.4909 MB / 0.4998 GB, free: 127.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.4783, allocations: 6.75 kB / 0.4998 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4783, allocations: 3.562 kB / 0.4998 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001978/0.4785, allocations: 50.08 kB / 0.4998 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000306/0.4788, allocations: 85.84 kB / 0.4999 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.4799, allocations: 1.454 MB / 0.5013 GB, free: 126 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004409/0.4803, allocations: 54.77 kB / 0.5014 GB, free: 126 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.4803, allocations: 19.78 kB / 0.5014 GB, free: 126 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cccvCharger.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: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0001272/0.4805, allocations: 123.6 kB / 0.5015 GB, free: 125.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.4806, allocations: 158.3 kB / 0.5017 GB, free: 125.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00053/0.4812, allocations: 369.2 kB / 0.502 GB, free: 125.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.4812, allocations: 6.422 kB / 0.502 GB, free: 125.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.4812, allocations: 0 / 0.502 GB, free: 125.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4812, allocations: 5.781 kB / 0.502 GB, free: 125.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001857/0.4831, allocations: 1.594 MB / 0.5036 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.4831, allocations: 3.969 kB / 0.5036 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.4834, allocations: 54 kB / 0.5037 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001055/0.4835, allocations: 42.34 kB / 0.5037 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.4835, allocations: 3.906 kB / 0.5037 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000852/0.4844, allocations: 1.399 MB / 0.5051 GB, free: 124.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4844, allocations: 5.812 kB / 0.5051 GB, free: 124.1 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005783/0.485, allocations: 0.5523 MB / 0.5056 GB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005816/0.4856, allocations: 0.4993 MB / 0.5061 GB, free: 123.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001685/0.4857, allocations: 3.938 kB / 0.5061 GB, free: 123.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004677/0.4862, allocations: 60.09 kB / 0.5062 GB, free: 123.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.42e-05/0.4863, allocations: 25.14 kB / 0.5062 GB, free: 123.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.4863, allocations: 8.438 kB / 0.5062 GB, free: 123.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001993/0.4883, allocations: 1.9 MB / 0.5081 GB, free: 123.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006902/0.489, allocations: 216.3 kB / 0.5083 GB, free: 123.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.000656/0.4897, allocations: 324.4 kB / 0.5086 GB, free: 123.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006097/0.4903, allocations: 340.6 kB / 0.5089 GB, free: 123.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4903, allocations: 3 kB / 0.5089 GB, free: 123.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003126/0.4906, allocations: 223 kB / 0.5091 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.0007427/0.4914, allocations: 184.7 kB / 0.5093 GB, free: 123.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004193/0.4956, allocations: 2.492 MB / 0.5117 GB, free: 122.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009855/0.4966, allocations: 1.467 MB / 0.5132 GB, free: 121.9 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4966, allocations: 0 / 0.5132 GB, free: 121.9 MB / 378.7 MB Notification: Performance of Templates: time 0.02141/0.518, allocations: 9.961 MB / 0.5229 GB, free: 121.5 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches