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.001733/0.001733, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002021/0.002021, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 51.91 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2452, allocations: 50.56 MB / 408.8 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01158/0.2568, allocations: 10.08 MB / 418.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005562/0.2624, allocations: 3.637 MB / 422.5 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006876/0.2631, allocations: 27.88 kB / 422.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00247/0.2656, allocations: 1.179 MB / 423.7 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001459/0.2672, allocations: 0.6685 MB / 424.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.2683, allocations: 490.6 kB / 424.9 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007976/0.2763, allocations: 7.341 MB / 432.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005302/0.2816, allocations: 4.474 MB / 436.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00407/0.2857, allocations: 2.847 MB / 439.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00436/0.2901, allocations: 2.923 MB / 442.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001436/0.2915, allocations: 0.6875 MB / 443.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001666/0.2932, allocations: 0.7226 MB / 443.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005352/0.2986, allocations: 5.822 MB / 449.7 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01033/0.3089, allocations: 7.187 MB / 456.9 MB, free: 1.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02637/0.3353, allocations: 25.01 MB / 481.9 MB, free: 8.031 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3354, allocations: 0 / 481.9 MB, free: 8.031 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3354, allocations: 0 / 481.9 MB, free: 8.031 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006602/0.336, allocations: 0 / 481.9 MB, free: 8.031 MB / 398.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.04864/0.3847, allocations: 19.24 MB / 0.4894 GB, free: 4.633 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.3847, allocations: 8.031 kB / 0.4894 GB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001238/0.386, allocations: 0.4918 MB / 0.4899 GB, free: 4.121 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005244/0.3912, allocations: 1.635 MB / 0.4915 GB, free: 2.477 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04573/0.437, allocations: 17.92 MB / 0.509 GB, free: 496 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006893/0.4377, allocations: 336.2 kB / 0.5093 GB, free: 152 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001546/0.4393, allocations: 327.9 kB / 0.5096 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0182/0.4575, allocations: 6.495 MB / 0.516 GB, free: 9.105 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.936e-05/0.4576, allocations: 3.938 kB / 0.516 GB, free: 9.102 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004896/0.4581, allocations: 144 kB / 0.5161 GB, free: 8.961 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-05/0.4582, allocations: 80 kB / 0.5162 GB, free: 8.883 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01473/0.4729, allocations: 5.126 MB / 0.5212 GB, free: 3.746 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4809/0.9538, allocations: 33.45 MB / 0.5538 GB, free: 99.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006443/0.9603, allocations: 4.307 MB / 0.558 GB, free: 97.45 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003395/0.9637, allocations: 2.59 MB / 0.5606 GB, free: 96.33 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.843e-05/0.9638, allocations: 20.88 kB / 0.5606 GB, free: 96.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.29e-05/0.9639, allocations: 64.88 kB / 0.5607 GB, free: 96.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.436e-06/0.9639, allocations: 0 / 0.5607 GB, free: 96.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01642/0.9804, allocations: 7.61 MB / 0.5681 GB, free: 89.57 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000208/0.9806, allocations: 0.9824 MB / 0.569 GB, free: 88.35 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05825/1.039, allocations: 35.88 MB / 0.6041 GB, free: 52.58 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004482/1.039, allocations: 61.7 kB / 0.6041 GB, free: 52.51 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01009/1.049, allocations: 7.534 MB / 0.6115 GB, free: 45.29 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007168/1.05, allocations: 0.5743 MB / 0.6121 GB, free: 44.79 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006718/1.051, allocations: 427.2 kB / 0.6125 GB, free: 44.36 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.337e-05/1.051, allocations: 305.1 kB / 0.6128 GB, free: 44.06 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002856/1.054, allocations: 1.971 MB / 0.6147 GB, free: 42.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00311/1.057, allocations: 2.856 MB / 0.6175 GB, free: 38.92 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00544/1.062, allocations: 4.201 MB / 0.6216 GB, free: 34.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.288e-05/1.062, allocations: 9 kB / 0.6216 GB, free: 34.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0135/1.076, allocations: 6.111 MB / 0.6276 GB, free: 28.39 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/1.076, allocations: 14.97 kB / 0.6276 GB, free: 28.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/1.076, allocations: 19.72 kB / 0.6276 GB, free: 28.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009401/1.077, allocations: 367.5 kB / 0.6279 GB, free: 28 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002095/1.079, allocations: 0.6942 MB / 0.6286 GB, free: 27.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006654/1.086, allocations: 4.615 MB / 0.6331 GB, free: 22.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01106/1.097, allocations: 0.6618 MB / 0.6338 GB, free: 21.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004673/1.097, allocations: 76 kB / 0.6338 GB, free: 21.9 MB / 462.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.009878/1.107, allocations: 8.146 MB / 0.6418 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005603/1.113, allocations: 1.474 MB / 0.6432 GB, free: 12.26 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01226/1.125, allocations: 6.044 MB / 0.6491 GB, free: 6.207 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/1.125, allocations: 16.94 kB / 0.6492 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/1.125, allocations: 3.844 kB / 0.6492 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/1.125, allocations: 7.969 kB / 0.6492 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04257/1.168, allocations: 18.59 MB / 0.6673 GB, free: 3.578 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/1.168, allocations: 0 / 0.6673 GB, free: 3.578 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/1.17, allocations: 0.5577 MB / 0.6679 GB, free: 3.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008952/1.171, allocations: 298.7 kB / 0.6681 GB, free: 2.73 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001445/1.171, allocations: 40 kB / 0.6682 GB, free: 2.691 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005311/1.176, allocations: 4.04 MB / 0.6721 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.176, allocations: 0 / 0.6721 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02454/1.201, allocations: 7.708 MB / 0.6797 GB, free: 6.781 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01193/1.213, allocations: 4.267 MB / 0.6838 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005534/1.218, allocations: 47.98 kB / 0.6839 GB, free: 2.461 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007351/1.226, allocations: 0.659 MB / 0.6845 GB, free: 1.801 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001182/1.227, allocations: 436.7 kB / 0.6849 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001975/1.227, allocations: 40 kB / 0.685 GB, free: 1.332 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.05904/1.286, allocations: 25.67 MB / 0.71 GB, free: 7.734 MB / 0.5138 GB Notification: Performance of sort global known variables: time 7.21e-07/1.286, allocations: 0 / 0.71 GB, free: 7.734 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01113/1.297, allocations: 1.843 MB / 0.7118 GB, free: 5.957 MB / 0.5138 GB 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.0208/1.318, allocations: 8.651 MB / 0.7203 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009029/1.327, allocations: 4.486 MB / 0.7247 GB, free: 8.914 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/1.327, allocations: 5.219 kB / 0.7247 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004464/1.332, allocations: 2.277 MB / 0.7269 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01914/1.351, allocations: 2.093 MB / 0.7289 GB, free: 4.555 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6189/1.97, allocations: 226.3 MB / 0.95 GB, free: 2.73 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02012/1.99, allocations: 10.19 MB / 0.9599 GB, free: 8.504 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.254/2.244, allocations: 7.685 MB / 0.9674 GB, free: 190.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01472/2.259, allocations: 6.102 MB / 0.9734 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of SimCode: time 8.72e-07/2.259, allocations: 2.125 kB / 0.9734 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.643/2.902, allocations: 330.1 MB / 1.296 GB, free: 76.88 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 186.6/189.5, allocations: 11.55 kB / 1.296 GB, free: 76.87 MB / 0.5607 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)