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.0009537/0.0009537, allocations: 176.5 kB / 8.348 MB, free: 0.7266 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.279/1.279, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0008426/0.0008426, allocations: 104.1 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.804e-05/1.806e-05, allocations: 0 / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3465/0.4575, allocations: 86.93 MB / 474.5 MB, free: 7.738 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.4577, allocations: 75.97 kB / 474.6 MB, free: 7.664 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06772/0.5255, allocations: 29.04 MB / 0.4918 GB, free: 10.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5255, allocations: 0 / 0.4918 GB, free: 10.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.499e-05/0.5256, allocations: 23.98 kB / 0.4918 GB, free: 10.37 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.002135/0.5278, allocations: 1.307 MB / 0.4931 GB, free: 9.012 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.5278, allocations: 8.031 kB / 0.4931 GB, free: 9.004 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002938/0.5281, allocations: 162.1 kB / 0.4933 GB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002022/0.5301, allocations: 1.155 MB / 0.4944 GB, free: 7.637 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.714e-05/0.5302, allocations: 54.97 kB / 0.4944 GB, free: 7.578 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.049e-05/0.5303, allocations: 28 kB / 0.4945 GB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000706/0.531, allocations: 350.5 kB / 0.4948 GB, free: 7.207 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008551/0.5319, allocations: 0.5484 MB / 0.4953 GB, free: 6.613 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.5319, allocations: 4 kB / 0.4953 GB, free: 6.609 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.35e-05/0.532, allocations: 0 / 0.4953 GB, free: 6.609 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.532, allocations: 12 kB / 0.4954 GB, free: 6.598 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004659/0.5367, allocations: 2.813 MB / 0.4981 GB, free: 3.695 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007951/0.5375, allocations: 381.7 kB / 0.4985 GB, free: 3.316 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.538, allocations: 284.7 kB / 0.4987 GB, free: 3.035 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.5381, allocations: 4 kB / 0.4987 GB, free: 3.031 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.5381, allocations: 38.56 kB / 0.4988 GB, free: 2.984 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.934e-06/0.5381, allocations: 0 / 0.4988 GB, free: 2.984 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.00106/0.5392, allocations: 457.1 kB / 0.4992 GB, free: 2.527 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.5393, allocations: 261 kB / 0.4995 GB, free: 2.211 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/0.542, allocations: 1.905 MB / 0.5013 GB, free: 300 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.542, allocations: 29.7 kB / 0.5014 GB, free: 264 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005963/0.5426, allocations: 0.6387 MB / 0.502 GB, free: 15.61 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.314e-05/0.5427, allocations: 102.5 kB / 0.5021 GB, free: 15.51 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.73e-05/0.5427, allocations: 0 / 0.5021 GB, free: 15.51 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.5429, allocations: 326 kB / 0.5024 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.5431, allocations: 120.7 kB / 0.5025 GB, free: 15.06 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.5434, allocations: 268.2 kB / 0.5028 GB, free: 14.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.5437, allocations: 164.6 kB / 0.5029 GB, free: 14.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.5437, allocations: 0 / 0.5029 GB, free: 14.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007952/0.5445, allocations: 0.5001 MB / 0.5034 GB, free: 14.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.5446, allocations: 11.94 kB / 0.5034 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.5446, allocations: 3.953 kB / 0.5034 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002394/0.5448, allocations: 52.83 kB / 0.5035 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003864/0.5452, allocations: 100.1 kB / 0.5036 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.5468, allocations: 1.524 MB / 0.5051 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004427/0.5473, allocations: 55.78 kB / 0.5051 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.732e-05/0.5474, allocations: 12 kB / 0.5051 GB, free: 12.2 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: battery.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: 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.0001701/0.5475, allocations: 116.9 kB / 0.5052 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008273/0.5484, allocations: 465.5 kB / 0.5057 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.5486, allocations: 130.4 kB / 0.5058 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009332/0.5495, allocations: 495.9 kB / 0.5063 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.5495, allocations: 7.984 kB / 0.5063 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.5495, allocations: 0 / 0.5063 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.5495, allocations: 0 / 0.5063 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.552, allocations: 1.572 MB / 0.5078 GB, free: 9.348 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.5521, allocations: 11.92 kB / 0.5078 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.5524, allocations: 75.84 kB / 0.5079 GB, free: 9.262 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.5526, allocations: 48.91 kB / 0.5079 GB, free: 9.211 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.5526, allocations: 0 / 0.5079 GB, free: 9.211 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.5539, allocations: 1.485 MB / 0.5094 GB, free: 7.609 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.5539, allocations: 0 / 0.5094 GB, free: 7.609 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.555, allocations: 0.7351 MB / 0.5101 GB, free: 6.828 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005862/0.5556, allocations: 452.4 kB / 0.5105 GB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.5557, allocations: 4 kB / 0.5105 GB, free: 6.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000458/0.5562, allocations: 55.95 kB / 0.5106 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.154e-05/0.5563, allocations: 27.95 kB / 0.5106 GB, free: 6.262 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.5563, allocations: 12 kB / 0.5106 GB, free: 6.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002183/0.5585, allocations: 1.462 MB / 0.5121 GB, free: 4.789 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5585, allocations: 0 / 0.5121 GB, free: 4.789 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000874/0.5594, allocations: 207.5 kB / 0.5123 GB, free: 4.586 MB / 394.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.002396/0.5618, allocations: 1.692 MB / 0.5139 GB, free: 2.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008614/0.5627, allocations: 437.8 kB / 0.5143 GB, free: 2.492 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5627, allocations: 4 kB / 0.5143 GB, free: 2.488 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004256/0.5631, allocations: 274.3 kB / 0.5146 GB, free: 2.211 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007926/0.5639, allocations: 170.4 kB / 0.5148 GB, free: 2.047 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004485/0.5684, allocations: 2.435 MB / 0.5171 GB, free: 15.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009349/0.5694, allocations: 1.284 MB / 0.5184 GB, free: 14.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005112/0.5699, allocations: 231.4 kB / 0.5186 GB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005611/0.5705, allocations: 483.3 kB / 0.5191 GB, free: 13.55 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5705, allocations: 0 / 0.5191 GB, free: 13.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06479/0.6353, allocations: 22.5 MB / 0.541 GB, free: 7.152 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002608/0.6356, allocations: 177.5 kB / 0.5412 GB, free: 6.953 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.559/3.194, allocations: 0 / 0.5412 GB, free: 6.953 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