Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",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.001033/0.001033, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.001169/0.001169, allocations: 183 kB / 17.21 MB, free: 6.316 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.493/1.493, allocations: 223.2 MB / 241.2 MB, free: 5.309 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002628, allocations: 5.75 kB / 300.9 MB, free: 5.574 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1078, allocations: 50.42 MB / 351.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005765/0.1136, allocations: 5.251 MB / 356.6 MB, free: 6.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003333/0.117, allocations: 2 MB / 358.6 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00047/0.1175, allocations: 15.94 kB / 358.6 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.1186, allocations: 0.5644 MB / 359.2 MB, free: 3.555 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.0005935/0.1192, allocations: 346.3 kB / 359.5 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006878/0.1199, allocations: 270.5 kB / 359.8 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.121, allocations: 1.108 MB / 360.9 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005599/0.1216, allocations: 363.3 kB / 361.2 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004219/0.122, allocations: 374.5 kB / 361.6 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000511/0.1226, allocations: 482.1 kB / 362.1 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.101e-05/0.1227, allocations: 44 kB / 362.1 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.1229, allocations: 95.97 kB / 362.2 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004185/0.1233, allocations: 0.5844 MB / 362.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002599/0.1236, allocations: 340.6 kB / 363.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001783/0.1254, allocations: 2.127 MB / 365.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.1254, allocations: 4 kB / 365.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1254, allocations: 0 / 365.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.097e-05/0.1254, allocations: 0 / 365.3 MB, free: 13.43 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003495/0.1289, allocations: 2.065 MB / 367.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.129, allocations: 12.03 kB / 367.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001638/0.1292, allocations: 106.5 kB / 367.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.1295, allocations: 217.4 kB / 367.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002287/0.1318, allocations: 1.563 MB / 369.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002475/0.132, allocations: 140.7 kB / 369.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-05/0.1321, allocations: 63.95 kB / 369.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.1336, allocations: 0.8259 MB / 370.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1336, allocations: 3.938 kB / 370.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.153e-05/0.1337, allocations: 32 kB / 370.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.1337, allocations: 16 kB / 370.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.1347, allocations: 0.5517 MB / 370.8 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006113/0.1408, allocations: 4.051 MB / 374.9 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.1422, allocations: 0.5643 MB / 375.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008188/0.143, allocations: 377.1 kB / 375.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.1431, allocations: 4.281 kB / 375.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.562e-05/0.1431, allocations: 46.78 kB / 375.9 MB, free: 2.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 5.921e-06/0.1432, allocations: 3.984 kB / 375.9 MB, free: 2.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002533/0.1457, allocations: 0.995 MB / 376.9 MB, free: 1.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.1459, allocations: 269 kB / 377.1 MB, free: 1.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004153/0.15, allocations: 3.14 MB / 380.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.717e-05/0.1501, allocations: 37.7 kB / 380.3 MB, free: 13.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008275/0.1509, allocations: 0.8606 MB / 381.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.1511, allocations: 122.3 kB / 381.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.47e-05/0.1511, allocations: 8 kB / 381.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1513, allocations: 326 kB / 381.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005111/0.1518, allocations: 221 kB / 381.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005884/0.1524, allocations: 402 kB / 382.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005301/0.1529, allocations: 263.8 kB / 382.5 MB, free: 11.63 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.1529, allocations: 3.938 kB / 382.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001897/0.1548, allocations: 0.8468 MB / 383.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.1549, allocations: 8 kB / 383.3 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.1549, allocations: 8 kB / 383.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003153/0.1552, allocations: 69.02 kB / 383.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004636/0.1557, allocations: 119.8 kB / 383.5 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.1574, allocations: 1.642 MB / 385.2 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007072/0.1581, allocations: 87.42 kB / 385.3 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.1582, allocations: 20 kB / 385.3 MB, free: 8.684 MB / 318.1 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 (51): * Single equations (assignments): 50 * 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.00114/0.1593, allocations: 0.6537 MB / 385.9 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003135/0.1596, allocations: 177.8 kB / 386.1 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003966/0.16, allocations: 218.5 kB / 386.3 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1601, allocations: 7.953 kB / 386.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1601, allocations: 0 / 386.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1601, allocations: 0 / 386.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003668/0.1638, allocations: 2.197 MB / 388.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.1638, allocations: 4 kB / 388.5 MB, free: 5.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003983/0.1642, allocations: 92 kB / 388.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002007/0.1644, allocations: 60.89 kB / 388.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.439e-05/0.1644, allocations: 11.98 kB / 388.7 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/0.166, allocations: 1.592 MB / 390.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.166, allocations: 0 / 390.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001937/0.1679, allocations: 1.009 MB / 391.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007024/0.1686, allocations: 446.6 kB / 391.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002479/0.1689, allocations: 12 kB / 391.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006002/0.1695, allocations: 71.94 kB / 391.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.1696, allocations: 39.92 kB / 391.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.1697, allocations: 12 kB / 391.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003348/0.173, allocations: 2.243 MB / 394.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.173, allocations: 3.938 kB / 394.1 MB, free: 15.56 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001141/0.1742, allocations: 259.5 kB / 394.4 MB, free: 15.31 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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.003363/0.1776, allocations: 1.934 MB / 396.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001409/0.179, allocations: 0.6238 MB / 396.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.872e-06/0.179, allocations: 4 kB / 396.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006486/0.1797, allocations: 367.2 kB / 397.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/0.1821, allocations: 287 kB / 397.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03545/0.2176, allocations: 14.55 MB / 412.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001547/0.2192, allocations: 1.5 MB / 413.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009651/0.2202, allocations: 299.2 kB / 413.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/0.2212, allocations: 0.636 MB / 414.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of SimCode: time 1.372e-06/0.2212, allocations: 0 / 414.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2637/0.4849, allocations: 35.04 MB / 449.6 MB, free: 50.82 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/0.4851, allocations: 260.2 kB / 449.8 MB, free: 50.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.01/3.495, allocations: 0 / 449.8 MB, free: 50.48 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat does not exist to compare? outputFormat=mat