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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 93.59 kB / 16.31 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001438, allocations: 181.5 kB / 17.2 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 223.3 MB / 241.2 MB, free: 5.262 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003161/0.0003163, allocations: 6.219 kB / 300.9 MB, free: 5.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1296, allocations: 50.43 MB / 351.3 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004732/0.1344, allocations: 3.427 MB / 354.8 MB, free: 7.867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003388/0.1379, allocations: 1.762 MB / 356.5 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004352/0.1384, allocations: 15.94 kB / 356.5 MB, free: 6.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.1397, allocations: 0.5412 MB / 357.1 MB, free: 5.539 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.0005955/0.1403, allocations: 306.6 kB / 357.4 MB, free: 5.238 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006636/0.1409, allocations: 210.5 kB / 357.6 MB, free: 5.035 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.1419, allocations: 0.8445 MB / 358.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004499/0.1424, allocations: 264.3 kB / 358.7 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.1427, allocations: 302.9 kB / 359 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004644/0.1432, allocations: 406.5 kB / 359.4 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.644e-05/0.1433, allocations: 36 kB / 359.4 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.1435, allocations: 84 kB / 359.5 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003847/0.1439, allocations: 426.8 kB / 359.9 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.1441, allocations: 244.9 kB / 360.2 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001376/0.1455, allocations: 1.391 MB / 361.5 MB, free: 1.055 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1455, allocations: 0 / 361.5 MB, free: 1.055 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1455, allocations: 4 kB / 361.6 MB, free: 1.051 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.1455, allocations: 0 / 361.6 MB, free: 1.051 MB / 286.1 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.002514/0.1481, allocations: 1.596 MB / 363.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.1481, allocations: 8.031 kB / 363.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001211/0.1482, allocations: 94.52 kB / 363.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.1485, allocations: 166 kB / 363.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.1501, allocations: 1.099 MB / 364.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003103/0.1504, allocations: 144.3 kB / 364.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.347e-05/0.1505, allocations: 48 kB / 364.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.1517, allocations: 0.679 MB / 365.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.1517, allocations: 3.938 kB / 365.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.098e-05/0.1518, allocations: 20 kB / 365.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.1518, allocations: 16 kB / 365.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008274/0.1526, allocations: 447.7 kB / 365.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004296/0.1569, allocations: 2.93 MB / 368.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.1581, allocations: 466.4 kB / 369.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006965/0.1588, allocations: 336.7 kB / 369.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.1588, allocations: 4 kB / 369.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.1588, allocations: 38.56 kB / 369.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.893e-06/0.1589, allocations: 0 / 369.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002088/0.161, allocations: 0.834 MB / 370.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/0.1611, allocations: 268.9 kB / 370.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/0.164, allocations: 2.234 MB / 372.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.1641, allocations: 33.7 kB / 373 MB, free: 5.223 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005804/0.1647, allocations: 0.6311 MB / 373.6 MB, free: 4.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.1648, allocations: 110.5 kB / 373.7 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.94e-05/0.1648, allocations: 7.938 kB / 373.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1649, allocations: 322 kB / 374 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004123/0.1653, allocations: 180.6 kB / 374.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004866/0.1658, allocations: 312.6 kB / 374.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005019/0.1663, allocations: 215.8 kB / 374.7 MB, free: 3.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1664, allocations: 0 / 374.7 MB, free: 3.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001246/0.1676, allocations: 0.63 MB / 375.4 MB, free: 2.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.1676, allocations: 12.03 kB / 375.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.1677, allocations: 0 / 375.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000317/0.168, allocations: 72.77 kB / 375.4 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004163/0.1684, allocations: 103.9 kB / 375.5 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001733/0.1702, allocations: 1.623 MB / 377.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005211/0.1707, allocations: 67.56 kB / 377.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.1707, allocations: 11.94 kB / 377.2 MB, free: 0.7344 MB / 302.1 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 () * Number of clocked 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.0007832/0.1715, allocations: 489.5 kB / 377.7 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.1717, allocations: 134.3 kB / 377.8 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.1719, allocations: 165.6 kB / 378 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.172, allocations: 4 kB / 378 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.172, allocations: 0 / 378 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.172, allocations: 0 / 378 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002825/0.1748, allocations: 1.707 MB / 379.7 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.1748, allocations: 4 kB / 379.7 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00036/0.1752, allocations: 79.88 kB / 379.8 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001942/0.1754, allocations: 60.77 kB / 379.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.1754, allocations: 16.03 kB / 379.9 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001508/0.177, allocations: 1.568 MB / 381.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.177, allocations: 4.094 kB / 381.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.1787, allocations: 0.856 MB / 382.3 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005144/0.1792, allocations: 335.3 kB / 382.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.1793, allocations: 11.98 kB / 382.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004576/0.1798, allocations: 59.95 kB / 382.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-05/0.1799, allocations: 35.91 kB / 382.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.1799, allocations: 11.98 kB / 382.8 MB, free: 10.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002285/0.1822, allocations: 1.607 MB / 384.4 MB, free: 9.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.1822, allocations: 3.938 kB / 384.4 MB, free: 9.336 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007637/0.183, allocations: 207.5 kB / 384.6 MB, free: 9.133 MB / 318.1 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 () * Number of clocked 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.002856/0.1859, allocations: 1.754 MB / 386.3 MB, free: 7.527 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.1871, allocations: 0.5338 MB / 386.9 MB, free: 6.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.864e-06/0.1872, allocations: 4 kB / 386.9 MB, free: 6.977 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000589/0.1877, allocations: 334.7 kB / 387.2 MB, free: 6.637 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.1888, allocations: 209 kB / 387.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0187/0.2075, allocations: 9.9 MB / 397.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009293/0.2085, allocations: 1.268 MB / 398.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006281/0.2091, allocations: 207.9 kB / 398.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006126/0.2098, allocations: 479.3 kB / 399.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of SimCode: time 1.653e-06/0.2098, allocations: 0 / 399.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04981/0.2596, allocations: 25.47 MB / 424.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002085/0.2599, allocations: 261.8 kB / 424.9 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.514/2.774, allocations: 0 / 424.9 MB, free: 0.6875 MB / 350.1 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