Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001797/0.001797, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002118/0.002118, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.557/1.557, allocations: 227.7 MB / 247.1 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 68.42 kB / 307.3 MB, free: 420 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1105, allocations: 50.54 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01276/0.1233, allocations: 10.09 MB / 368 MB, free: 3.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006255/0.1296, allocations: 3.641 MB / 371.6 MB, free: 64 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009519/0.1306, allocations: 31.81 kB / 371.6 MB, free: 32 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1506/0.2813, allocations: 1.167 MB / 372.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001576/0.2829, allocations: 0.6812 MB / 373.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.2839, allocations: 485 kB / 374 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006466/0.2904, allocations: 7.312 MB / 381.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004775/0.2952, allocations: 4.477 MB / 385.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004658/0.2999, allocations: 2.843 MB / 388.6 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005727/0.3057, allocations: 2.926 MB / 391.5 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002237/0.308, allocations: 0.6818 MB / 392.2 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002772/0.3107, allocations: 0.7215 MB / 392.9 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00361/0.3144, allocations: 5.82 MB / 398.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009773/0.3242, allocations: 7.191 MB / 405.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02248/0.3467, allocations: 24.69 MB / 430.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.438e-06/0.3467, allocations: 4 kB / 430.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3467, allocations: 4 kB / 430.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0006546/0.3474, allocations: 0 / 430.6 MB, free: 2.109 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.04355/0.391, allocations: 18.69 MB / 449.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.391, allocations: 8.031 kB / 449.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009485/0.392, allocations: 0.4917 MB / 449.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003816/0.3958, allocations: 1.56 MB / 451.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03822/0.434, allocations: 17.68 MB / 469 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0017/0.4358, allocations: 0.7533 MB / 469.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001073/0.4369, allocations: 324 kB / 470.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01417/0.451, allocations: 6.496 MB / 476.6 MB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.385e-05/0.4511, allocations: 3.938 kB / 476.6 MB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004989/0.4516, allocations: 148 kB / 476.8 MB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.924e-05/0.4517, allocations: 84 kB / 476.8 MB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01/0.4617, allocations: 5.119 MB / 482 MB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06548/0.5272, allocations: 33.58 MB / 0.5035 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008948/0.5362, allocations: 4.303 MB / 0.5077 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005335/0.5416, allocations: 2.574 MB / 0.5102 GB, free: 6.023 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.5418, allocations: 17.31 kB / 0.5102 GB, free: 6.008 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.179e-05/0.5419, allocations: 67.81 kB / 0.5103 GB, free: 5.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=156): time 3.827e-06/0.5419, allocations: 0 / 0.5103 GB, free: 5.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=156): time 0.02122/0.5631, allocations: 7.516 MB / 0.5176 GB, free: 14.37 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000616/0.5637, allocations: 0.9824 MB / 0.5186 GB, free: 13.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4179/0.9817, allocations: 35.88 MB / 0.5536 GB, free: 113.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005283/0.9823, allocations: 62.11 kB / 0.5537 GB, free: 113.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01369/0.996, allocations: 7.499 MB / 0.561 GB, free: 108 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007227/0.9967, allocations: 0.5483 MB / 0.5615 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009771/0.9977, allocations: 421.1 kB / 0.5619 GB, free: 107.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.758e-05/0.9978, allocations: 305.7 kB / 0.5622 GB, free: 107.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003176/1.001, allocations: 1.966 MB / 0.5641 GB, free: 107 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003432/1.004, allocations: 2.849 MB / 0.5669 GB, free: 105.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005851/1.01, allocations: 4.202 MB / 0.571 GB, free: 103.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-05/1.01, allocations: 3.875 kB / 0.571 GB, free: 103.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01573/1.026, allocations: 6.027 MB / 0.5769 GB, free: 100.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/1.026, allocations: 15.98 kB / 0.5769 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.474e-05/1.026, allocations: 16 kB / 0.5769 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/1.027, allocations: 364.7 kB / 0.5773 GB, free: 99.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002257/1.029, allocations: 0.698 MB / 0.578 GB, free: 99.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00426/1.034, allocations: 4.608 MB / 0.5825 GB, free: 94.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007196/1.041, allocations: 0.6491 MB / 0.5831 GB, free: 93.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00043/1.041, allocations: 76 kB / 0.5832 GB, free: 93.79 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,24)} Notification: Performance of prepare postOptimizeDAE: time 0.01078/1.052, allocations: 8.153 MB / 0.5911 GB, free: 85.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004856/1.057, allocations: 1.4 MB / 0.5925 GB, free: 84.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01262/1.07, allocations: 6.02 MB / 0.5984 GB, free: 78.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/1.07, allocations: 19.94 kB / 0.5984 GB, free: 78.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/1.07, allocations: 0 / 0.5984 GB, free: 78.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-05/1.07, allocations: 7.969 kB / 0.5984 GB, free: 78.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04062/1.11, allocations: 18.58 MB / 0.6165 GB, free: 59.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/1.11, allocations: 0 / 0.6165 GB, free: 59.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/1.112, allocations: 0.5616 MB / 0.6171 GB, free: 58.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000796/1.113, allocations: 294.5 kB / 0.6174 GB, free: 58.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/1.113, allocations: 44.53 kB / 0.6174 GB, free: 58.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003775/1.117, allocations: 4.023 MB / 0.6213 GB, free: 54.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.117, allocations: 7.938 kB / 0.6214 GB, free: 54.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01407/1.131, allocations: 7.616 MB / 0.6288 GB, free: 46.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01042/1.142, allocations: 4.189 MB / 0.6329 GB, free: 42.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005651/1.147, allocations: 43.98 kB / 0.6329 GB, free: 42.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007867/1.155, allocations: 0.6664 MB / 0.6336 GB, free: 41.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009385/1.156, allocations: 400.7 kB / 0.634 GB, free: 41.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002677/1.156, allocations: 47.98 kB / 0.634 GB, free: 41.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.05563/1.212, allocations: 25.67 MB / 0.6591 GB, free: 15.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.91e-07/1.212, allocations: 0 / 0.6591 GB, free: 15.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009584/1.222, allocations: 1.835 MB / 0.6609 GB, free: 13.99 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].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 (136): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02074/1.242, allocations: 8.563 MB / 0.6692 GB, free: 5.539 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01322/1.256, allocations: 6.952 MB / 0.676 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.52e-05/1.256, allocations: 9.156 kB / 0.676 GB, free: 14.58 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005306/1.261, allocations: 2.268 MB / 0.6782 GB, free: 12.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02337/1.285, allocations: 2.106 MB / 0.6803 GB, free: 10.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.213/2.498, allocations: 466.3 MB / 1.136 GB, free: 178.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01853/2.516, allocations: 10.19 MB / 1.146 GB, free: 174 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01815/2.534, allocations: 7.688 MB / 1.153 GB, free: 171.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01305/2.548, allocations: 6.096 MB / 1.159 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.964e-06/2.548, allocations: 0 / 1.159 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9173/3.465, allocations: 323.1 MB / 1.475 GB, free: 102.8 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.99/23.45, allocations: 4.562 kB / 1.475 GB, free: 102.8 MB / 0.5138 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)