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.001106/0.001106, allocations: 94.34 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.001056/0.001056, allocations: 184.4 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.485/1.485, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003284, allocations: 8.125 kB / 300.8 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1129, allocations: 50.42 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006141/0.1191, allocations: 4.499 MB / 355.7 MB, free: 7.145 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002886/0.122, allocations: 1.595 MB / 357.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004452/0.1225, allocations: 15.94 kB / 357.3 MB, free: 5.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000948/0.1235, allocations: 482.5 kB / 357.8 MB, free: 5.059 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007285/0.1242, allocations: 331.2 kB / 358.1 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007942/0.125, allocations: 254.2 kB / 358.4 MB, free: 4.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009895/0.126, allocations: 0.6481 MB / 359 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004556/0.1265, allocations: 243.9 kB / 359.3 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004072/0.1269, allocations: 303 kB / 359.6 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003884/0.1273, allocations: 334.7 kB / 359.9 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.312e-05/0.1274, allocations: 32 kB / 359.9 MB, free: 2.938 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.1276, allocations: 63.92 kB / 360 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004885/0.1281, allocations: 0.5376 MB / 360.5 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002557/0.1283, allocations: 292.8 kB / 360.8 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.13, allocations: 1.707 MB / 362.5 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.13, allocations: 0 / 362.5 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.13, allocations: 0 / 362.5 MB, free: 336 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.13, allocations: 0 / 362.5 MB, free: 336 kB / 286.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.003049/0.1331, allocations: 1.823 MB / 364.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/0.1331, allocations: 12.03 kB / 364.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.1333, allocations: 90.52 kB / 364.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002758/0.1336, allocations: 185.7 kB / 364.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002362/0.1359, allocations: 1.397 MB / 366 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.1362, allocations: 102.7 kB / 366.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.894e-05/0.1363, allocations: 47.98 kB / 366.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.1373, allocations: 0.5893 MB / 366.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.1374, allocations: 4 kB / 366.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.052e-05/0.1374, allocations: 20 kB / 366.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.705e-05/0.1375, allocations: 12 kB / 366.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007092/0.1382, allocations: 355.7 kB / 367.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004813/0.143, allocations: 3.289 MB / 370.4 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.1442, allocations: 425.3 kB / 370.8 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.649e-05/0.1442, allocations: 192 / 370.8 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.1443, allocations: 38.75 kB / 370.9 MB, free: 7.664 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.1443, allocations: 4 kB / 370.9 MB, free: 7.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002316/0.1466, allocations: 0.8086 MB / 371.7 MB, free: 6.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.1467, allocations: 209.6 kB / 371.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003851/0.1506, allocations: 2.888 MB / 374.8 MB, free: 3.637 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.233e-05/0.1507, allocations: 37.7 kB / 374.8 MB, free: 3.594 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007238/0.1514, allocations: 0.7853 MB / 375.6 MB, free: 2.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.245e-05/0.1515, allocations: 71.02 kB / 375.7 MB, free: 2.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.622e-05/0.1515, allocations: 7.938 kB / 375.7 MB, free: 2.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.1517, allocations: 322 kB / 376 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003761/0.1521, allocations: 132.6 kB / 376.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005375/0.1526, allocations: 302 kB / 376.4 MB, free: 1.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.153, allocations: 159.9 kB / 376.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.153, allocations: 0 / 376.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001442/0.1545, allocations: 0.6446 MB / 377.2 MB, free: 1.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.1545, allocations: 7.984 kB / 377.2 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1545, allocations: 4 kB / 377.2 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003374/0.1549, allocations: 88.98 kB / 377.3 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000269/0.1552, allocations: 71.89 kB / 377.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002056/0.1572, allocations: 1.814 MB / 379.2 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005856/0.1578, allocations: 75.69 kB / 379.3 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.1579, allocations: 12 kB / 379.3 MB, free: 14.89 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 (33): * Single equations (assignments): 32 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0008979/0.1588, allocations: 0.5757 MB / 379.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.159, allocations: 161.9 kB / 380 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/0.1603, allocations: 0.5727 MB / 380.6 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1603, allocations: 4 kB / 380.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1603, allocations: 4.062 kB / 380.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.1603, allocations: 3.984 kB / 380.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.1615, allocations: 1.066 MB / 381.7 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1615, allocations: 4 kB / 381.7 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.1617, allocations: 43.91 kB / 381.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002931/0.162, allocations: 80.8 kB / 381.8 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.162, allocations: 11.95 kB / 381.8 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001868/0.1639, allocations: 1.803 MB / 383.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1639, allocations: 0 / 383.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.1655, allocations: 0.7907 MB / 384.4 MB, free: 9.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007076/0.1662, allocations: 383 kB / 384.8 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.1663, allocations: 8 kB / 384.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.1667, allocations: 55.95 kB / 384.8 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.833e-05/0.1668, allocations: 27.95 kB / 384.9 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.1669, allocations: 15.98 kB / 384.9 MB, free: 9.035 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002734/0.1696, allocations: 2.059 MB / 386.9 MB, free: 6.953 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1696, allocations: 3.938 kB / 386.9 MB, free: 6.949 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007603/0.1704, allocations: 207.5 kB / 387.2 MB, free: 6.746 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 13 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00256/0.1729, allocations: 1.599 MB / 388.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.174, allocations: 488 kB / 389.2 MB, free: 4.766 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.174, allocations: 3.938 kB / 389.2 MB, free: 4.762 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005381/0.1746, allocations: 299.1 kB / 389.5 MB, free: 4.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008358/0.1754, allocations: 206.6 kB / 389.7 MB, free: 4.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02621/0.2017, allocations: 14.49 MB / 404.2 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.2028, allocations: 1.386 MB / 405.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005737/0.2034, allocations: 237.7 kB / 405.8 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006529/0.204, allocations: 0.5696 MB / 406.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of SimCode: time 1.603e-06/0.204, allocations: 0 / 406.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2492/0.4532, allocations: 29.85 MB / 436.3 MB, free: 60.17 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/0.4535, allocations: 245.4 kB / 436.5 MB, free: 59.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.66/3.114, allocations: 4 kB / 436.5 MB, free: 59.84 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