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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008492/0.0008492, allocations: 94.86 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002508, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2381, allocations: 50.42 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09997/0.3381, allocations: 87.08 MB / 488.7 MB, free: 9.332 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.3383, allocations: 79.97 kB / 488.7 MB, free: 9.254 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2595/0.5978, allocations: 26.88 MB / 0.5035 GB, free: 91.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5979, allocations: 0 / 0.5035 GB, free: 91.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002329/0.5981, allocations: 25.97 kB / 0.5036 GB, free: 91.29 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.004458/0.6026, allocations: 1.918 MB / 0.5054 GB, free: 90.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.6027, allocations: 8.312 kB / 0.5054 GB, free: 90.22 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001594/0.6028, allocations: 92.59 kB / 0.5055 GB, free: 90.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000384/0.6032, allocations: 188.5 kB / 0.5057 GB, free: 90.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003198/0.6064, allocations: 1.49 MB / 0.5072 GB, free: 89.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.6065, allocations: 63.42 kB / 0.5072 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.6066, allocations: 47.97 kB / 0.5073 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.6077, allocations: 0.6006 MB / 0.5079 GB, free: 89.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.6078, allocations: 2.625 kB / 0.5079 GB, free: 89.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.568e-05/0.6079, allocations: 28.3 kB / 0.5079 GB, free: 89.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.6079, allocations: 12.31 kB / 0.5079 GB, free: 89.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006403/0.6085, allocations: 353.3 kB / 0.5082 GB, free: 89.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004116/0.6126, allocations: 3.315 MB / 0.5115 GB, free: 88.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.6137, allocations: 432.5 kB / 0.5119 GB, free: 88.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.6137, allocations: 8.188 kB / 0.5119 GB, free: 88.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.6137, allocations: 38.16 kB / 0.5119 GB, free: 88.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.084e-06/0.6138, allocations: 0 / 0.5119 GB, free: 88.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001647/0.6154, allocations: 0.7429 MB / 0.5127 GB, free: 88.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.6155, allocations: 210.5 kB / 0.5129 GB, free: 87.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002787/0.6183, allocations: 2.643 MB / 0.5154 GB, free: 87.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.6183, allocations: 33.58 kB / 0.5155 GB, free: 87.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005097/0.6188, allocations: 0.775 MB / 0.5162 GB, free: 86.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.414e-05/0.6189, allocations: 80.48 kB / 0.5163 GB, free: 86.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.414e-05/0.6189, allocations: 4 kB / 0.5163 GB, free: 86.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.857e-05/0.619, allocations: 324.5 kB / 0.5166 GB, free: 86.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.6193, allocations: 132.5 kB / 0.5167 GB, free: 86.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.6196, allocations: 294.9 kB / 0.517 GB, free: 86.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/0.62, allocations: 163.4 kB / 0.5172 GB, free: 86.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.62, allocations: 3.953 kB / 0.5172 GB, free: 86.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001014/0.621, allocations: 0.5901 MB / 0.5178 GB, free: 86.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.621, allocations: 6 kB / 0.5178 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.621, allocations: 5.875 kB / 0.5178 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003132/0.6214, allocations: 83.67 kB / 0.5179 GB, free: 86.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002463/0.6216, allocations: 76.14 kB / 0.5179 GB, free: 86.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.6231, allocations: 1.815 MB / 0.5197 GB, free: 84.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004857/0.6236, allocations: 65.73 kB / 0.5198 GB, free: 84.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.6236, allocations: 17.56 kB / 0.5198 GB, free: 84.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006823/0.6243, allocations: 0.5752 MB / 0.5203 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.6245, allocations: 162.4 kB / 0.5205 GB, free: 84.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008574/0.6254, allocations: 0.5157 MB / 0.521 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.6254, allocations: 2.688 kB / 0.521 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.6254, allocations: 3.844 kB / 0.521 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.6254, allocations: 0 / 0.521 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000905/0.6263, allocations: 1.114 MB / 0.5221 GB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.6263, allocations: 0 / 0.5221 GB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.6265, allocations: 48.56 kB / 0.5221 GB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002084/0.6268, allocations: 82.36 kB / 0.5222 GB, free: 83.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.6268, allocations: 7.406 kB / 0.5222 GB, free: 83.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.6281, allocations: 1.807 MB / 0.524 GB, free: 81.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.6282, allocations: 0 / 0.524 GB, free: 81.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.6293, allocations: 0.7286 MB / 0.5247 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007612/0.63, allocations: 0.4958 MB / 0.5252 GB, free: 81.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.6302, allocations: 7.281 kB / 0.5252 GB, free: 81.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004328/0.6306, allocations: 57.16 kB / 0.5252 GB, free: 81.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.498e-05/0.6307, allocations: 29.08 kB / 0.5253 GB, free: 81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.6307, allocations: 3.938 kB / 0.5253 GB, free: 81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002393/0.6331, allocations: 2.046 MB / 0.5273 GB, free: 80.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6332, allocations: 4 kB / 0.5273 GB, free: 80.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008854/0.634, allocations: 251 kB / 0.5275 GB, free: 80.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002088/0.6361, allocations: 1.57 MB / 0.5291 GB, free: 79.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009785/0.6371, allocations: 485.8 kB / 0.5295 GB, free: 78.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.6372, allocations: 0.5625 kB / 0.5295 GB, free: 78.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004796/0.6376, allocations: 305.6 kB / 0.5298 GB, free: 78.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008695/0.6385, allocations: 215.4 kB / 0.53 GB, free: 78.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01964/0.6582, allocations: 14.58 MB / 0.5443 GB, free: 64.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009272/0.6591, allocations: 1.386 MB / 0.5456 GB, free: 63.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007205/0.6599, allocations: 252.5 kB / 0.5458 GB, free: 62.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007104/0.6606, allocations: 0.5925 MB / 0.5464 GB, free: 62.39 MB / 378.7 MB Notification: Performance of SimCode: time 1.392e-06/0.6606, allocations: 4 kB / 0.5464 GB, free: 62.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04912/0.7097, allocations: 32.6 MB / 0.5783 GB, free: 30.95 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/0.7099, allocations: 246.9 kB / 0.5785 GB, free: 30.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.867/3.577, allocations: 0 / 0.5785 GB, free: 30.66 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat does not exist to compare? outputFormat=mat