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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",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.001086/0.001086, allocations: 175.1 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.306/1.306, allocations: 221.3 MB / 235.5 MB, free: 2.977 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.0008059/0.0008059, allocations: 93.98 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.383e-05/2.385e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 50.42 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3578/0.4593, allocations: 87.59 MB / 481.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.4596, allocations: 79.95 kB / 482 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06898/0.5286, allocations: 29.53 MB / 0.4995 GB, free: 2.008 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5286, allocations: 0 / 0.4995 GB, free: 2.008 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.533e-05/0.5287, allocations: 27.98 kB / 0.4996 GB, free: 1.98 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.001951/0.5307, allocations: 1.303 MB / 0.5008 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.5307, allocations: 8.031 kB / 0.5009 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00012/0.5308, allocations: 90.52 kB / 0.5009 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002376/0.5311, allocations: 166.1 kB / 0.5011 GB, free: 368 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00207/0.5332, allocations: 1.155 MB / 0.5022 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.18e-05/0.5333, allocations: 62.7 kB / 0.5023 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.834e-05/0.5333, allocations: 48 kB / 0.5023 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009697/0.5343, allocations: 0.6128 MB / 0.5029 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.5343, allocations: 4 kB / 0.5029 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-05/0.5344, allocations: 20 kB / 0.503 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.5344, allocations: 12 kB / 0.503 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006311/0.5351, allocations: 387.8 kB / 0.5033 GB, free: 13.96 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004394/0.5395, allocations: 2.926 MB / 0.5062 GB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008444/0.5403, allocations: 387.7 kB / 0.5066 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005413/0.5409, allocations: 288.7 kB / 0.5068 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.109e-05/0.541, allocations: 4 kB / 0.5068 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.541, allocations: 42.56 kB / 0.5069 GB, free: 10.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=30): time 2.735e-06/0.541, allocations: 0 / 0.5069 GB, free: 10.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=30): time 0.001079/0.5421, allocations: 481.1 kB / 0.5073 GB, free: 9.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.5422, allocations: 261 kB / 0.5076 GB, free: 9.414 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/0.545, allocations: 2.007 MB / 0.5096 GB, free: 7.398 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.545, allocations: 29.7 kB / 0.5096 GB, free: 7.363 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005263/0.5455, allocations: 0.6467 MB / 0.5102 GB, free: 6.711 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.225e-05/0.5456, allocations: 102.5 kB / 0.5103 GB, free: 6.609 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.5457, allocations: 8 kB / 0.5103 GB, free: 6.602 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.5458, allocations: 326 kB / 0.5106 GB, free: 6.277 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/0.546, allocations: 136.6 kB / 0.5108 GB, free: 6.141 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.5463, allocations: 272.6 kB / 0.511 GB, free: 5.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.5466, allocations: 163.9 kB / 0.5112 GB, free: 5.66 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.5466, allocations: 4 kB / 0.5112 GB, free: 5.656 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008434/0.5474, allocations: 0.5471 MB / 0.5117 GB, free: 5.098 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.5475, allocations: 4.281 kB / 0.5117 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.5475, allocations: 8 kB / 0.5117 GB, free: 5.086 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/0.5477, allocations: 56.83 kB / 0.5118 GB, free: 5.027 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003848/0.5481, allocations: 83.89 kB / 0.5119 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.5496, allocations: 1.58 MB / 0.5134 GB, free: 3.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000496/0.5501, allocations: 75.39 kB / 0.5135 GB, free: 3.156 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/0.5502, allocations: 8 kB / 0.5135 GB, free: 3.148 MB / 394.7 MB 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.0001362/0.5503, allocations: 132.9 kB / 0.5136 GB, free: 3.012 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/0.5505, allocations: 142.5 kB / 0.5137 GB, free: 2.871 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009975/0.5515, allocations: 0.5157 MB / 0.5142 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-06/0.5515, allocations: 4 kB / 0.5142 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.5515, allocations: 0 / 0.5142 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.5516, allocations: 4 kB / 0.5143 GB, free: 2.336 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002779/0.5543, allocations: 1.676 MB / 0.5159 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.5544, allocations: 0 / 0.5159 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.5547, allocations: 71.95 kB / 0.516 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001656/0.5549, allocations: 48.83 kB / 0.516 GB, free: 480 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.68e-05/0.5549, allocations: 8 kB / 0.516 GB, free: 472 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001482/0.5564, allocations: 1.533 MB / 0.5175 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.5565, allocations: 8.125 kB / 0.5175 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.5576, allocations: 0.7628 MB / 0.5183 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006531/0.5583, allocations: 452.3 kB / 0.5187 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.5584, allocations: 12.12 kB / 0.5187 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004765/0.5589, allocations: 63.91 kB / 0.5188 GB, free: 13.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.715e-05/0.559, allocations: 27.95 kB / 0.5188 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.5591, allocations: 12 kB / 0.5188 GB, free: 13.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002281/0.5613, allocations: 1.559 MB / 0.5203 GB, free: 11.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5614, allocations: 0 / 0.5203 GB, free: 11.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008942/0.5623, allocations: 243.7 kB / 0.5206 GB, free: 11.59 MB / 410.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.00248/0.5647, allocations: 1.742 MB / 0.5223 GB, free: 9.906 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009203/0.5657, allocations: 455.2 kB / 0.5227 GB, free: 9.449 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.5657, allocations: 4 kB / 0.5227 GB, free: 9.445 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004205/0.5661, allocations: 290.3 kB / 0.523 GB, free: 9.148 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000937/0.5671, allocations: 189.4 kB / 0.5232 GB, free: 8.961 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004211/0.5713, allocations: 2.481 MB / 0.5256 GB, free: 6.434 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009427/0.5723, allocations: 1.28 MB / 0.5268 GB, free: 5.129 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005562/0.5728, allocations: 231.8 kB / 0.5271 GB, free: 4.898 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006122/0.5735, allocations: 483.2 kB / 0.5275 GB, free: 4.426 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5735, allocations: 4 kB / 0.5275 GB, free: 4.422 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2838/0.8573, allocations: 27.68 MB / 0.5545 GB, free: 119.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.8576, allocations: 220.9 kB / 0.5548 GB, free: 119.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.592/3.449, allocations: 0 / 0.5548 GB, free: 119.6 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat does not exist to compare? outputFormat=mat