Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_trunk_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.001097/0.001097, 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.001195/0.001195, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 64.36 kB / 307.1 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1096, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.0128/0.1225, allocations: 10.08 MB / 367.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005449/0.128, allocations: 3.633 MB / 371.3 MB, free: 248 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008533/0.1289, allocations: 27.94 kB / 371.3 MB, free: 220 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2042/0.3331, allocations: 1.165 MB / 372.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002547/0.3358, allocations: 0.6848 MB / 373.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.337, allocations: 480.2 kB / 373.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007654/0.3447, allocations: 7.304 MB / 381 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004481/0.3492, allocations: 4.471 MB / 385.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004031/0.3532, allocations: 2.847 MB / 388.3 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004896/0.3581, allocations: 2.923 MB / 391.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001918/0.3601, allocations: 0.6812 MB / 391.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002709/0.3628, allocations: 0.7233 MB / 392.6 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003845/0.3667, allocations: 5.826 MB / 398.4 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01088/0.3775, allocations: 7.193 MB / 405.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02453/0.4021, allocations: 24.69 MB / 430.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.4022, allocations: 0 / 430.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.4022, allocations: 0 / 430.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0006329/0.4028, allocations: 0 / 430.3 MB, free: 2.414 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.04806/0.4509, allocations: 18.69 MB / 449 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.451, allocations: 8.031 kB / 449 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001506/0.4525, allocations: 0.4973 MB / 449.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005154/0.4576, allocations: 1.556 MB / 451.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04559/0.5032, allocations: 17.69 MB / 468.7 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001782/0.5051, allocations: 0.7455 MB / 469.5 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001378/0.5065, allocations: 320 kB / 469.8 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.5211, allocations: 6.492 MB / 476.3 MB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001491/0.5213, allocations: 7.984 kB / 476.3 MB, free: 4.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001165/0.5225, allocations: 144 kB / 476.4 MB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.032e-05/0.5226, allocations: 84 kB / 476.5 MB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01249/0.5351, allocations: 5.123 MB / 481.6 MB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07388/0.609, allocations: 33.59 MB / 0.5032 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008048/0.6171, allocations: 4.298 MB / 0.5074 GB, free: 8.898 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004424/0.6216, allocations: 2.57 MB / 0.5099 GB, free: 6.324 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001176/0.6217, allocations: 20.52 kB / 0.5099 GB, free: 6.309 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.647e-05/0.6218, allocations: 71.75 kB / 0.51 GB, free: 6.227 MB / 430.1 MB Notification: Performance of pre-optimization done (n=156): time 3.677e-06/0.6218, allocations: 0 / 0.51 GB, free: 6.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=156): time 0.01785/0.6397, allocations: 7.517 MB / 0.5173 GB, free: 14.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003688/0.6401, allocations: 0.9824 MB / 0.5183 GB, free: 13.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4216/1.062, allocations: 35.87 MB / 0.5533 GB, free: 113.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006105/1.062, allocations: 62.83 kB / 0.5533 GB, free: 113.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01334/1.076, allocations: 7.502 MB / 0.5607 GB, free: 108.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001302/1.077, allocations: 0.5494 MB / 0.5612 GB, free: 108 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/1.078, allocations: 421.8 kB / 0.5616 GB, free: 107.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.97e-05/1.078, allocations: 301.9 kB / 0.5619 GB, free: 107.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003334/1.082, allocations: 1.971 MB / 0.5638 GB, free: 107.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003627/1.085, allocations: 2.852 MB / 0.5666 GB, free: 105.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005868/1.091, allocations: 4.199 MB / 0.5707 GB, free: 103.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/1.091, allocations: 3.875 kB / 0.5707 GB, free: 103.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01635/1.107, allocations: 6.021 MB / 0.5766 GB, free: 100.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.025e-05/1.108, allocations: 18.95 kB / 0.5766 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.956e-05/1.108, allocations: 12 kB / 0.5766 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/1.109, allocations: 369.6 kB / 0.577 GB, free: 100.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002295/1.111, allocations: 0.7019 MB / 0.5777 GB, free: 99.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004824/1.116, allocations: 4.608 MB / 0.5822 GB, free: 94.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009181/1.125, allocations: 0.6528 MB / 0.5828 GB, free: 94.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003271/1.126, allocations: 80 kB / 0.5829 GB, free: 94.23 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.01275/1.138, allocations: 8.149 MB / 0.5908 GB, free: 86.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005094/1.143, allocations: 1.404 MB / 0.5922 GB, free: 84.65 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/1.155, allocations: 6.019 MB / 0.5981 GB, free: 78.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/1.155, allocations: 19.94 kB / 0.5981 GB, free: 78.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/1.155, allocations: 3.938 kB / 0.5981 GB, free: 78.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/1.155, allocations: 7.969 kB / 0.5981 GB, free: 78.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03808/1.193, allocations: 18.58 MB / 0.6163 GB, free: 59.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/1.193, allocations: 0 / 0.6163 GB, free: 59.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00175/1.195, allocations: 0.5577 MB / 0.6168 GB, free: 59.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007593/1.196, allocations: 300.2 kB / 0.6171 GB, free: 59.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/1.196, allocations: 39.98 kB / 0.6171 GB, free: 59.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003704/1.199, allocations: 4.03 MB / 0.6211 GB, free: 54.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.2, allocations: 3.875 kB / 0.6211 GB, free: 54.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/1.214, allocations: 7.616 MB / 0.6285 GB, free: 47.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01171/1.226, allocations: 4.185 MB / 0.6326 GB, free: 43.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005787/1.232, allocations: 51.98 kB / 0.6326 GB, free: 42.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008022/1.24, allocations: 0.6512 MB / 0.6333 GB, free: 42.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000915/1.241, allocations: 404.7 kB / 0.6337 GB, free: 41.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/1.241, allocations: 43.72 kB / 0.6337 GB, free: 41.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.05772/1.299, allocations: 25.68 MB / 0.6588 GB, free: 16.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.299, allocations: 3.844 kB / 0.6588 GB, free: 16.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01067/1.309, allocations: 1.839 MB / 0.6606 GB, free: 14.44 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.01929/1.329, allocations: 8.561 MB / 0.6689 GB, free: 5.973 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01205/1.341, allocations: 6.95 MB / 0.6757 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.479e-05/1.341, allocations: 5.844 kB / 0.6757 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00432/1.345, allocations: 2.272 MB / 0.6779 GB, free: 12.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02186/1.367, allocations: 2.104 MB / 0.68 GB, free: 10.65 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.299/2.666, allocations: 466.3 MB / 1.135 GB, free: 178.8 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02231/2.689, allocations: 10.19 MB / 1.145 GB, free: 173.9 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.02295/2.712, allocations: 7.69 MB / 1.153 GB, free: 171.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01571/2.727, allocations: 6.103 MB / 1.159 GB, free: 165.5 MB / 0.5138 GB Notification: Performance of SimCode: time 8.92e-07/2.727, allocations: 0 / 1.159 GB, free: 165.5 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8055/3.533, allocations: 323 MB / 1.474 GB, free: 101.6 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.05/21.59, allocations: 10.58 kB / 1.474 GB, free: 101.6 MB / 0.5138 GB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)