Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [: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 trunk/package.mo): time 0.001272/0.001272, allocations: 194.9 kB / 8.539 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 225.5 MB / 234.4 MB, free: 3.492 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009658/0.0009659, allocations: 101.2 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09508/0.09609, allocations: 56.9 MB / 343.2 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08937/0.1855, allocations: 51.48 MB / 394.7 MB, free: 5.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.231/0.4165, allocations: 87.48 MB / 482.2 MB, free: 5.789 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.4167, allocations: 82.45 kB / 482.3 MB, free: 5.75 MB / 346.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.06282/0.4796, allocations: 28.52 MB / 0.4988 GB, free: 13.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.4796, allocations: 8 kB / 0.4988 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000399/0.48, allocations: 185.7 kB / 0.499 GB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002818/0.4828, allocations: 1.501 MB / 0.5005 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.683e-05/0.4829, allocations: 46.7 kB / 0.5005 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.333e-05/0.483, allocations: 35.89 kB / 0.5006 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005089/0.4836, allocations: 268.8 kB / 0.5008 GB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007374/0.4843, allocations: 480.9 kB / 0.5013 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.4843, allocations: 0 / 0.5013 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.659e-05/0.4844, allocations: 4 kB / 0.5013 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.4844, allocations: 12 kB / 0.5013 GB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005/0.4894, allocations: 3.214 MB / 0.5044 GB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.4897, allocations: 138.3 kB / 0.5046 GB, free: 8.582 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.49, allocations: 145.2 kB / 0.5047 GB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/0.4901, allocations: 4.188 kB / 0.5047 GB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.4901, allocations: 46.59 kB / 0.5047 GB, free: 8.379 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.074e-06/0.4901, allocations: 2.812 kB / 0.5047 GB, free: 8.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007285/0.4908, allocations: 340.7 kB / 0.5051 GB, free: 8.039 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.609e-05/0.4909, allocations: 213.6 kB / 0.5053 GB, free: 7.781 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004115/0.4951, allocations: 2.488 MB / 0.5077 GB, free: 5.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.639e-05/0.4951, allocations: 29.7 kB / 0.5077 GB, free: 5.215 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003373/0.4955, allocations: 419.8 kB / 0.5081 GB, free: 4.801 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.4956, allocations: 74.94 kB / 0.5082 GB, free: 4.727 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.4956, allocations: 0 / 0.5082 GB, free: 4.727 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4958, allocations: 321.9 kB / 0.5085 GB, free: 4.406 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.4959, allocations: 80.66 kB / 0.5086 GB, free: 4.324 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.4962, allocations: 240.6 kB / 0.5088 GB, free: 4.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000198/0.4964, allocations: 101.7 kB / 0.5089 GB, free: 3.922 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.4964, allocations: 0 / 0.5089 GB, free: 3.922 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001176/0.4976, allocations: 497.5 kB / 0.5094 GB, free: 3.426 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.4976, allocations: 4 kB / 0.5094 GB, free: 3.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.4976, allocations: 4 kB / 0.5094 GB, free: 3.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002399/0.4979, allocations: 56.97 kB / 0.5095 GB, free: 3.359 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003437/0.4982, allocations: 79.83 kB / 0.5095 GB, free: 3.281 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.4996, allocations: 1.462 MB / 0.511 GB, free: 1.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005653/0.5002, allocations: 59.77 kB / 0.511 GB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.5003, allocations: 16.05 kB / 0.511 GB, free: 1.625 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.0001667/0.5004, allocations: 113.6 kB / 0.5111 GB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002851/0.5007, allocations: 157.9 kB / 0.5113 GB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007489/0.5015, allocations: 382.5 kB / 0.5117 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.5015, allocations: 0 / 0.5117 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.5015, allocations: 7.906 kB / 0.5117 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.5015, allocations: 0 / 0.5117 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002559/0.5041, allocations: 1.605 MB / 0.5132 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.5041, allocations: 32 / 0.5132 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.5044, allocations: 55.95 kB / 0.5133 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001228/0.5045, allocations: 34.53 kB / 0.5133 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.5046, allocations: 4 kB / 0.5133 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/0.5058, allocations: 1.415 MB / 0.5147 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5058, allocations: 0 / 0.5147 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007641/0.5066, allocations: 0.5458 MB / 0.5152 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009937/0.5076, allocations: 1.053 MB / 0.5163 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008045/0.5084, allocations: 0.496 MB / 0.5167 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002239/0.5086, allocations: 11.98 kB / 0.5168 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005262/0.5092, allocations: 55.95 kB / 0.5168 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.128e-05/0.5093, allocations: 27.95 kB / 0.5168 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.5093, allocations: 4 kB / 0.5168 GB, free: 11.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003295/0.5126, allocations: 1.91 MB / 0.5187 GB, free: 9.449 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001551/0.5141, allocations: 223.4 kB / 0.5189 GB, free: 9.23 MB / 394.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.0006523/0.5148, allocations: 324.6 kB / 0.5192 GB, free: 8.992 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007292/0.5155, allocations: 339.2 kB / 0.5196 GB, free: 8.652 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5156, allocations: 320 / 0.5196 GB, free: 8.652 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003702/0.5159, allocations: 221.8 kB / 0.5198 GB, free: 8.426 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009391/0.5169, allocations: 181.9 kB / 0.5199 GB, free: 8.246 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005146/0.5221, allocations: 2.516 MB / 0.5224 GB, free: 5.676 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/0.5234, allocations: 1.482 MB / 0.5238 GB, free: 4.164 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5234, allocations: 0 / 0.5238 GB, free: 4.164 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat does not exist to compare? outputFormat=mat