Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",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.0008564/0.0008565, allocations: 86.56 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.0008646/0.0008647, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.437/1.437, allocations: 223.3 MB / 241.2 MB, free: 5.203 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002864/0.0002867, allocations: 8.375 kB / 300.9 MB, free: 5.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1243, allocations: 50.42 MB / 351.3 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005516/0.1299, allocations: 4.791 MB / 356.1 MB, free: 6.461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002612/0.1325, allocations: 1.595 MB / 357.7 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003471/0.1329, allocations: 11.94 kB / 357.7 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008849/0.1338, allocations: 486.4 kB / 358.2 MB, free: 4.375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005299/0.1343, allocations: 302.6 kB / 358.5 MB, free: 4.078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006833/0.135, allocations: 260.7 kB / 358.8 MB, free: 3.828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008147/0.1358, allocations: 0.7714 MB / 359.5 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000459/0.1363, allocations: 248 kB / 359.8 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003321/0.1366, allocations: 282.9 kB / 360 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004334/0.1371, allocations: 350.6 kB / 360.4 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.06e-05/0.1372, allocations: 39.88 kB / 360.4 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001577/0.1373, allocations: 63.98 kB / 360.5 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004524/0.1378, allocations: 0.5337 MB / 361 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002345/0.138, allocations: 292.8 kB / 361.3 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001426/0.1395, allocations: 1.711 MB / 363 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1395, allocations: 0 / 363 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1395, allocations: 0 / 363 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.1395, allocations: 4 kB / 363 MB, free: 15.53 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003001/0.1425, allocations: 1.819 MB / 364.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.1426, allocations: 8.031 kB / 364.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001234/0.1427, allocations: 94.52 kB / 364.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/0.1429, allocations: 185.7 kB / 365.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/0.145, allocations: 1.401 MB / 366.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/0.1452, allocations: 94.67 kB / 366.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.171e-05/0.1453, allocations: 48 kB / 366.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.1464, allocations: 0.597 MB / 367.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.1464, allocations: 4 kB / 367.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.1465, allocations: 23.98 kB / 367.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.1465, allocations: 12 kB / 367.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000715/0.1473, allocations: 351.7 kB / 367.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004838/0.1521, allocations: 3.293 MB / 370.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.1533, allocations: 422.2 kB / 371.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004747/0.1538, allocations: 201.1 kB / 371.5 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.491e-05/0.1538, allocations: 192 / 371.5 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.1539, allocations: 38.75 kB / 371.6 MB, free: 6.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.833e-06/0.1539, allocations: 0 / 371.6 MB, free: 6.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001904/0.1558, allocations: 0.7497 MB / 372.3 MB, free: 5.895 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.1559, allocations: 213.6 kB / 372.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003802/0.1597, allocations: 2.888 MB / 375.4 MB, free: 2.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.341e-05/0.1598, allocations: 29.7 kB / 375.5 MB, free: 2.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000754/0.1606, allocations: 0.7892 MB / 376.2 MB, free: 1.871 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.438e-05/0.1607, allocations: 71 kB / 376.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.64e-05/0.1607, allocations: 8 kB / 376.3 MB, free: 1.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1608, allocations: 322 kB / 376.6 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003293/0.1611, allocations: 124.6 kB / 376.8 MB, free: 1.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004357/0.1616, allocations: 308.7 kB / 377.1 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/0.1619, allocations: 151.9 kB / 377.2 MB, free: 0.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.162, allocations: 0 / 377.2 MB, free: 0.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001358/0.1633, allocations: 0.6355 MB / 377.8 MB, free: 192 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1633, allocations: 4.188 kB / 377.9 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1634, allocations: 12.06 kB / 377.9 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002786/0.1637, allocations: 68.75 kB / 377.9 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.164, allocations: 79.83 kB / 378 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.1655, allocations: 1.576 MB / 379.6 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005059/0.1661, allocations: 75.61 kB / 379.7 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.1661, allocations: 16 kB / 379.7 MB, free: 14.22 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0008445/0.167, allocations: 0.5785 MB / 380.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.1672, allocations: 161.9 kB / 380.4 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001178/0.1683, allocations: 0.5513 MB / 381 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.1684, allocations: 0 / 381 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.1684, allocations: 0 / 381 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.1684, allocations: 4.125 kB / 381 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/0.171, allocations: 1.721 MB / 382.7 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1711, allocations: 0 / 382.7 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.1713, allocations: 52 kB / 382.7 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001761/0.1715, allocations: 52.77 kB / 382.8 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.1715, allocations: 4 kB / 382.8 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00141/0.1729, allocations: 1.525 MB / 384.3 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.448e-05/0.173, allocations: 7.891 kB / 384.3 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.1745, allocations: 0.7462 MB / 385.1 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005945/0.1751, allocations: 386.9 kB / 385.4 MB, free: 8.168 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.1752, allocations: 11.98 kB / 385.5 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004035/0.1756, allocations: 55.95 kB / 385.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.791e-05/0.1757, allocations: 31.89 kB / 385.5 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.1758, allocations: 8 kB / 385.6 MB, free: 8.062 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002973/0.1787, allocations: 2.063 MB / 387.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1788, allocations: 0 / 387.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008619/0.1796, allocations: 199.6 kB / 387.8 MB, free: 5.781 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002788/0.1824, allocations: 1.555 MB / 389.4 MB, free: 4.328 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.1836, allocations: 462.6 kB / 389.8 MB, free: 3.863 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.1836, allocations: 0 / 389.8 MB, free: 3.863 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000586/0.1842, allocations: 286 kB / 390.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.1854, allocations: 214.6 kB / 390.3 MB, free: 3.359 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02805/0.2135, allocations: 12.62 MB / 402.9 MB, free: 6.117 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.2146, allocations: 1.359 MB / 404.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007321/0.2154, allocations: 241.7 kB / 404.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007604/0.2161, allocations: 0.5735 MB / 405.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of SimCode: time 2.144e-06/0.2161, allocations: 0 / 405.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2389/0.4551, allocations: 29.74 MB / 434.8 MB, free: 60.55 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003603/0.4555, allocations: 263.8 kB / 435.1 MB, free: 60.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.904/3.36, allocations: 4.625 kB / 435.1 MB, free: 60.22 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat does not exist to compare? outputFormat=mat