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.001018/0.001018, allocations: 103.9 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.0009963/0.0009963, allocations: 206.4 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.337/1.337, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 60.12 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1067, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01173/0.1185, allocations: 10.09 MB / 367.7 MB, free: 3.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00558/0.1241, allocations: 3.633 MB / 371.3 MB, free: 236 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000983/0.1251, allocations: 27.88 kB / 371.3 MB, free: 208 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1554/0.2806, allocations: 1.167 MB / 372.5 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001593/0.2823, allocations: 0.6801 MB / 373.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.2834, allocations: 483.1 kB / 373.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008586/0.292, allocations: 7.302 MB / 381 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005129/0.2972, allocations: 4.473 MB / 385.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004668/0.3019, allocations: 2.845 MB / 388.3 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004858/0.3068, allocations: 2.932 MB / 391.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001879/0.3087, allocations: 0.687 MB / 391.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00217/0.3109, allocations: 0.7193 MB / 392.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003211/0.3141, allocations: 5.817 MB / 398.4 MB, free: 2.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008573/0.3227, allocations: 7.19 MB / 405.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01934/0.342, allocations: 24.69 MB / 430.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.375e-06/0.3421, allocations: 4 kB / 430.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.3421, allocations: 0 / 430.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000546/0.3426, allocations: 0 / 430.3 MB, free: 2.441 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.04576/0.3884, allocations: 18.69 MB / 449 MB, free: 15.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/0.3885, allocations: 8.031 kB / 449 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001946/0.3904, allocations: 0.4917 MB / 449.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006357/0.3968, allocations: 1.553 MB / 451 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04048/0.4373, allocations: 17.69 MB / 468.7 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001595/0.439, allocations: 0.7494 MB / 469.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/0.44, allocations: 320 kB / 469.8 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01159/0.4516, allocations: 6.492 MB / 476.3 MB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.523e-05/0.4517, allocations: 3.938 kB / 476.3 MB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004232/0.4521, allocations: 152 kB / 476.4 MB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-05/0.4522, allocations: 80 kB / 476.5 MB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009915/0.4621, allocations: 5.115 MB / 481.6 MB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06662/0.5288, allocations: 33.59 MB / 0.5032 GB, free: 13.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008185/0.537, allocations: 4.306 MB / 0.5074 GB, free: 8.934 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004649/0.5417, allocations: 2.571 MB / 0.5099 GB, free: 6.359 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.5419, allocations: 21.31 kB / 0.5099 GB, free: 6.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.219e-05/0.542, allocations: 67.81 kB / 0.51 GB, free: 6.262 MB / 430.1 MB Notification: Performance of pre-optimization done (n=156): time 3.306e-06/0.542, allocations: 0 / 0.51 GB, free: 6.262 MB / 430.1 MB Notification: Performance of matching and sorting (n=156): time 0.01927/0.5612, allocations: 7.512 MB / 0.5173 GB, free: 14.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004777/0.5618, allocations: 0.9824 MB / 0.5182 GB, free: 13.49 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4392/1.001, allocations: 35.89 MB / 0.5533 GB, free: 113.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005613/1.002, allocations: 68.2 kB / 0.5534 GB, free: 113.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.012/1.014, allocations: 7.497 MB / 0.5607 GB, free: 108.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007691/1.014, allocations: 0.5475 MB / 0.5612 GB, free: 108 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007813/1.015, allocations: 423 kB / 0.5616 GB, free: 107.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.017e-05/1.015, allocations: 309 kB / 0.5619 GB, free: 107.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003292/1.019, allocations: 1.964 MB / 0.5638 GB, free: 107.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00347/1.022, allocations: 2.846 MB / 0.5666 GB, free: 105.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00562/1.028, allocations: 4.197 MB / 0.5707 GB, free: 103.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/1.028, allocations: 3.906 kB / 0.5707 GB, free: 103.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01377/1.042, allocations: 6.031 MB / 0.5766 GB, free: 100.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/1.042, allocations: 14.97 kB / 0.5766 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/1.042, allocations: 16.88 kB / 0.5766 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008719/1.043, allocations: 365.8 kB / 0.577 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00218/1.045, allocations: 0.698 MB / 0.5777 GB, free: 99.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004056/1.049, allocations: 4.604 MB / 0.5822 GB, free: 95.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006358/1.055, allocations: 0.6607 MB / 0.5828 GB, free: 94.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000318/1.056, allocations: 79.98 kB / 0.5829 GB, free: 94.29 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.00888/1.064, allocations: 8.14 MB / 0.5908 GB, free: 86.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004425/1.069, allocations: 1.404 MB / 0.5922 GB, free: 84.72 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/1.081, allocations: 6.027 MB / 0.5981 GB, free: 78.67 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/1.081, allocations: 16.94 kB / 0.5981 GB, free: 78.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.081, allocations: 0 / 0.5981 GB, free: 78.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/1.081, allocations: 7.969 kB / 0.5981 GB, free: 78.65 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03299/1.114, allocations: 18.58 MB / 0.6162 GB, free: 60.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/1.114, allocations: 4 kB / 0.6163 GB, free: 60.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001622/1.116, allocations: 0.5655 MB / 0.6168 GB, free: 59.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006124/1.116, allocations: 292.2 kB / 0.6171 GB, free: 59.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/1.116, allocations: 47.83 kB / 0.6171 GB, free: 59.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003203/1.119, allocations: 4.025 MB / 0.6211 GB, free: 54.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/1.119, allocations: 4 kB / 0.6211 GB, free: 54.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01129/1.131, allocations: 7.624 MB / 0.6285 GB, free: 47.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007648/1.138, allocations: 4.193 MB / 0.6326 GB, free: 43.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002404/1.141, allocations: 40 kB / 0.6326 GB, free: 43.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003835/1.145, allocations: 0.6668 MB / 0.6333 GB, free: 42.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006213/1.145, allocations: 396.7 kB / 0.6337 GB, free: 41.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/1.145, allocations: 51.72 kB / 0.6337 GB, free: 41.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.03303/1.178, allocations: 25.67 MB / 0.6588 GB, free: 16.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.179, allocations: 0 / 0.6588 GB, free: 16.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006372/1.185, allocations: 1.835 MB / 0.6606 GB, free: 14.5 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.01227/1.197, allocations: 8.558 MB / 0.6689 GB, free: 6.043 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008916/1.206, allocations: 6.959 MB / 0.6757 GB, free: 15.09 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/1.206, allocations: 5.219 kB / 0.6757 GB, free: 15.08 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003416/1.21, allocations: 2.264 MB / 0.678 GB, free: 12.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01062/1.22, allocations: 2.105 MB / 0.68 GB, free: 10.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.099/2.319, 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.01349/2.333, allocations: 10.19 MB / 1.145 GB, free: 174 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01395/2.347, 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.01191/2.358, allocations: 6.1 MB / 1.159 GB, free: 165.8 MB / 0.5138 GB Notification: Performance of SimCode: time 1.293e-06/2.359, allocations: 0 / 1.159 GB, free: 165.8 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8553/3.214, allocations: 323 MB / 1.474 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.31/21.53, allocations: 7.891 kB / 1.474 GB, free: 102.5 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)