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.0009655/0.0009655, allocations: 174.4 kB / 13.63 MB, free: 1.684 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.338/1.338, allocations: 221.3 MB / 235.5 MB, free: 2.93 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.0009018/0.0009021, allocations: 93.92 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.8e-05/2.802e-05, allocations: 3.984 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1017, allocations: 50.42 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3174/0.4192, allocations: 87.01 MB / 481.4 MB, free: 460 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.4196, allocations: 79.95 kB / 481.4 MB, free: 380 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06072/0.4803, allocations: 26.88 MB / 0.4964 GB, free: 5.355 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4803, allocations: 0 / 0.4964 GB, free: 5.355 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001104/0.4805, allocations: 27.98 kB / 0.4964 GB, free: 5.328 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.002171/0.4826, allocations: 1.479 MB / 0.4979 GB, free: 3.797 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.4827, allocations: 12.03 kB / 0.4979 GB, free: 3.785 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.4828, allocations: 94.45 kB / 0.498 GB, free: 3.684 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000264/0.4831, allocations: 185.7 kB / 0.4981 GB, free: 3.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002391/0.4855, allocations: 1.476 MB / 0.4996 GB, free: 1.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.001e-05/0.4856, allocations: 66.7 kB / 0.4997 GB, free: 1.906 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.446e-05/0.4857, allocations: 52 kB / 0.4997 GB, free: 1.855 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008636/0.4866, allocations: 0.5426 MB / 0.5002 GB, free: 1.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.4866, allocations: 0 / 0.5002 GB, free: 1.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.95e-05/0.4867, allocations: 19.94 kB / 0.5003 GB, free: 1.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.4867, allocations: 12 kB / 0.5003 GB, free: 1.238 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005103/0.4872, allocations: 299.9 kB / 0.5005 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004381/0.4916, allocations: 3.313 MB / 0.5038 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006537/0.4923, allocations: 296.6 kB / 0.5041 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002873/0.4926, allocations: 149.2 kB / 0.5042 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.4926, allocations: 4.188 kB / 0.5042 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.4927, allocations: 42.62 kB / 0.5043 GB, free: 13.01 MB / 394.7 MB Notification: Performance of pre-optimization done (n=21): time 2.585e-06/0.4927, allocations: 0 / 0.5043 GB, free: 13.01 MB / 394.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006655/0.4933, allocations: 351 kB / 0.5046 GB, free: 12.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.171e-05/0.4934, allocations: 213.6 kB / 0.5048 GB, free: 12.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003332/0.4968, allocations: 2.61 MB / 0.5073 GB, free: 9.742 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.263e-05/0.4968, allocations: 33.7 kB / 0.5074 GB, free: 9.703 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006355/0.4975, allocations: 0.7814 MB / 0.5081 GB, free: 8.914 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.011e-05/0.4976, allocations: 74.98 kB / 0.5082 GB, free: 8.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.487e-05/0.4976, allocations: 4 kB / 0.5082 GB, free: 8.836 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.4977, allocations: 325.9 kB / 0.5085 GB, free: 8.512 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.4978, allocations: 80.66 kB / 0.5086 GB, free: 8.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/0.4981, allocations: 261.7 kB / 0.5088 GB, free: 8.105 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.4983, allocations: 107.4 kB / 0.5089 GB, free: 8.004 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.4983, allocations: 0 / 0.5089 GB, free: 8.004 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00102/0.4993, allocations: 0.5236 MB / 0.5095 GB, free: 7.469 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.4994, allocations: 4 kB / 0.5095 GB, free: 7.465 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-06/0.4994, allocations: 4 kB / 0.5095 GB, free: 7.461 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002245/0.4996, allocations: 56.78 kB / 0.5095 GB, free: 7.402 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.4999, allocations: 84.03 kB / 0.5096 GB, free: 7.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.5013, allocations: 1.534 MB / 0.5111 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004702/0.5018, allocations: 75.59 kB / 0.5112 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.5019, allocations: 12 kB / 0.5112 GB, free: 5.566 MB / 394.7 MB 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.0001116/0.502, allocations: 132.9 kB / 0.5113 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.5022, allocations: 165.9 kB / 0.5115 GB, free: 5.266 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006139/0.5028, allocations: 394.5 kB / 0.5118 GB, free: 4.863 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5028, allocations: 8 kB / 0.5119 GB, free: 4.855 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.5028, allocations: 0 / 0.5119 GB, free: 4.855 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.5028, allocations: 0 / 0.5119 GB, free: 4.855 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.5049, allocations: 1.685 MB / 0.5135 GB, free: 3.102 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.505, allocations: 0 / 0.5135 GB, free: 3.102 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/0.5052, allocations: 59.94 kB / 0.5136 GB, free: 3.043 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001171/0.5054, allocations: 40.83 kB / 0.5136 GB, free: 3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.5054, allocations: 4 kB / 0.5136 GB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.5065, allocations: 1.486 MB / 0.515 GB, free: 1.379 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5066, allocations: 96 / 0.515 GB, free: 1.379 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007135/0.5073, allocations: 0.5767 MB / 0.5156 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006372/0.5079, allocations: 0.5038 MB / 0.5161 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.5081, allocations: 11.98 kB / 0.5161 GB, free: 220 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004481/0.5085, allocations: 55.95 kB / 0.5162 GB, free: 164 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.002e-05/0.5086, allocations: 35.95 kB / 0.5162 GB, free: 128 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.5087, allocations: 8 kB / 0.5162 GB, free: 120 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002595/0.5113, allocations: 2.021 MB / 0.5182 GB, free: 14.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5113, allocations: 0 / 0.5182 GB, free: 14.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007681/0.512, allocations: 247.5 kB / 0.5184 GB, free: 13.82 MB / 410.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.00166/0.5137, allocations: 1.438 MB / 0.5198 GB, free: 12.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006678/0.5144, allocations: 362 kB / 0.5202 GB, free: 12.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5144, allocations: 0 / 0.5202 GB, free: 12.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003402/0.5147, allocations: 251 kB / 0.5204 GB, free: 11.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008794/0.5156, allocations: 214.6 kB / 0.5206 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005216/0.5209, allocations: 2.879 MB / 0.5234 GB, free: 8.688 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/0.5219, allocations: 1.382 MB / 0.5248 GB, free: 7.273 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006049/0.5226, allocations: 261.7 kB / 0.525 GB, free: 7.016 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000781/0.5234, allocations: 0.5891 MB / 0.5256 GB, free: 6.426 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5234, allocations: 0 / 0.5256 GB, free: 6.426 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3033/0.8266, allocations: 31.7 MB / 0.5566 GB, free: 118.9 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/0.8268, allocations: 215.5 kB / 0.5568 GB, free: 118.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.777/3.604, allocations: 1.062 kB / 0.5568 GB, free: 118.6 MB / 426.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