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.001506/0.001506, allocations: 96.48 kB / 16.3 MB, free: 5.996 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.001397/0.001397, allocations: 183.2 kB / 17.2 MB, free: 5.914 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.492/1.492, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003263/0.0003263, allocations: 7.094 kB / 300.8 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1236, allocations: 50.43 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006479/0.1301, allocations: 4.913 MB / 356.1 MB, free: 6.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003882/0.1341, allocations: 1.993 MB / 358.1 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005814/0.1347, allocations: 15.94 kB / 358.2 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.1364, allocations: 0.8259 MB / 359 MB, free: 3.812 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.0006274/0.137, allocations: 239.3 kB / 359.2 MB, free: 3.578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007922/0.1378, allocations: 274.5 kB / 359.5 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001503/0.1393, allocations: 0.9995 MB / 360.5 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006996/0.14, allocations: 371.2 kB / 360.8 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005009/0.1405, allocations: 382.7 kB / 361.2 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004841/0.141, allocations: 414.3 kB / 361.6 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.705e-05/0.1411, allocations: 36 kB / 361.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.1414, allocations: 87.91 kB / 361.7 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004131/0.1418, allocations: 450.5 kB / 362.2 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002718/0.1421, allocations: 336.6 kB / 362.5 MB, free: 260 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001687/0.1438, allocations: 1.812 MB / 364.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1438, allocations: 0 / 364.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1438, allocations: 0 / 364.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.145e-05/0.1439, allocations: 0 / 364.3 MB, free: 14.44 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.003496/0.1474, allocations: 1.936 MB / 366.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.1474, allocations: 8.031 kB / 366.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.1476, allocations: 114.4 kB / 366.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002671/0.1479, allocations: 209.4 kB / 366.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002532/0.1504, allocations: 1.632 MB / 368.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002802/0.1507, allocations: 136.7 kB / 368.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.627e-05/0.1508, allocations: 67.89 kB / 368.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.1523, allocations: 0.8259 MB / 369.2 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1524, allocations: 0 / 369.2 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.535e-05/0.1524, allocations: 31.94 kB / 369.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.1524, allocations: 16 kB / 369.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.1535, allocations: 0.5555 MB / 369.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005232/0.1587, allocations: 3.38 MB / 373.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.1601, allocations: 0.5672 MB / 373.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.1601, allocations: 288 / 373.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.1601, allocations: 38.84 kB / 373.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.747e-06/0.1602, allocations: 0 / 373.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002474/0.1626, allocations: 1.073 MB / 374.9 MB, free: 3.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.1628, allocations: 265 kB / 375.2 MB, free: 3.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.1654, allocations: 2.121 MB / 377.3 MB, free: 1.004 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.1655, allocations: 29.7 kB / 377.3 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007514/0.1663, allocations: 0.8881 MB / 378.2 MB, free: 76 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.1664, allocations: 118.5 kB / 378.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.437e-05/0.1664, allocations: 12 kB / 378.3 MB, free: 15.94 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1665, allocations: 329.7 kB / 378.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004607/0.167, allocations: 228.9 kB / 378.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005837/0.1676, allocations: 413.9 kB / 379.3 MB, free: 14.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000519/0.1681, allocations: 267.8 kB / 379.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1681, allocations: 0 / 379.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001617/0.1698, allocations: 0.8741 MB / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.1698, allocations: 7.953 kB / 380.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1698, allocations: 4.188 kB / 380.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003458/0.1702, allocations: 100.7 kB / 380.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004347/0.1706, allocations: 111.9 kB / 380.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002146/0.1728, allocations: 1.919 MB / 382.6 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005114/0.1733, allocations: 79.36 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.527e-05/0.1733, allocations: 24.17 kB / 382.7 MB, free: 11.39 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 (48): * Single equations (assignments): 47 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0009598/0.1743, allocations: 0.6615 MB / 383.3 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/0.1745, allocations: 181.7 kB / 383.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/0.1748, allocations: 222.7 kB / 383.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1748, allocations: 4 kB / 383.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.1748, allocations: 3.938 kB / 383.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1748, allocations: 0 / 383.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.1761, allocations: 1.108 MB / 384.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1761, allocations: 0 / 384.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003865/0.1765, allocations: 83.94 kB / 384.9 MB, free: 9.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002394/0.1767, allocations: 88.73 kB / 385 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.1768, allocations: 15.98 kB / 385 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001931/0.1787, allocations: 1.907 MB / 386.9 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1787, allocations: 96 / 386.9 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/0.1806, allocations: 1.066 MB / 388 MB, free: 5.824 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004283/0.181, allocations: 298.7 kB / 388.3 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.1812, allocations: 12 kB / 388.3 MB, free: 5.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004874/0.1816, allocations: 75.89 kB / 388.4 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.1818, allocations: 35.94 kB / 388.4 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.1818, allocations: 12 kB / 388.4 MB, free: 5.379 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002121/0.1839, allocations: 1.497 MB / 389.9 MB, free: 3.863 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1839, allocations: 7.938 kB / 389.9 MB, free: 3.855 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000791/0.1847, allocations: 207.5 kB / 390.1 MB, free: 3.652 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (25): * Single equations (assignments): 24 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.003456/0.1882, allocations: 1.981 MB / 392.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001502/0.1897, allocations: 0.6587 MB / 392.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1897, allocations: 0 / 392.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007079/0.1904, allocations: 395 kB / 393.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.1915, allocations: 259 kB / 393.4 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02648/0.218, allocations: 13.97 MB / 407.4 MB, free: 1.703 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.2192, allocations: 1.527 MB / 408.9 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008581/0.2201, allocations: 236.4 kB / 409.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007089/0.2208, allocations: 0.6321 MB / 409.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.2208, allocations: 0 / 409.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.266/0.4868, allocations: 28.89 MB / 438.6 MB, free: 60.44 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/0.487, allocations: 243.7 kB / 438.9 MB, free: 60.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.025/3.512, allocations: 5.547 kB / 438.9 MB, free: 60.11 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