Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 110.4 kB / 17.07 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.001213/0.001213, allocations: 197.3 kB / 18 MB, free: 5.074 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.508/1.508, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 43.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2599, allocations: 49.45 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01879/0.2788, allocations: 10.05 MB / 410.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008612/0.2874, allocations: 3.466 MB / 413.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.2885, allocations: 23.94 kB / 413.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004015/0.2926, allocations: 1.171 MB / 414.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00225/0.2949, allocations: 0.6412 MB / 415.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.2966, allocations: 485.5 kB / 416.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01225/0.3089, allocations: 7.346 MB / 423.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00696/0.3159, allocations: 4.466 MB / 427.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00369/0.3196, allocations: 2.832 MB / 430.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003904/0.3235, allocations: 2.931 MB / 433.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001159/0.3247, allocations: 0.6758 MB / 434.3 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001407/0.3261, allocations: 0.7226 MB / 435 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004835/0.331, allocations: 5.806 MB / 440.8 MB, free: 16 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009532/0.3405, allocations: 7.184 MB / 448 MB, free: 8.789 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02543/0.366, allocations: 24.97 MB / 473 MB, free: 15.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.366, allocations: 0 / 473 MB, free: 15.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.366, allocations: 0 / 473 MB, free: 15.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006059/0.3667, allocations: 0 / 473 MB, free: 15.74 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.04932/0.416, allocations: 19.19 MB / 492.2 MB, free: 12.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.862e-05/0.4161, allocations: 8.031 kB / 492.2 MB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001523/0.4176, allocations: 0.4956 MB / 492.7 MB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005736/0.4233, allocations: 1.637 MB / 494.3 MB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04027/0.4636, allocations: 17.87 MB / 0.5002 GB, free: 8.285 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005504/0.4642, allocations: 336.2 kB / 0.5005 GB, free: 7.949 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/0.4653, allocations: 316 kB / 0.5008 GB, free: 7.641 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01514/0.4805, allocations: 6.499 MB / 0.5072 GB, free: 0.918 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.598e-05/0.4806, allocations: 7.938 kB / 0.5072 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000534/0.4811, allocations: 148 kB / 0.5073 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-05/0.4812, allocations: 80 kB / 0.5074 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01168/0.4929, allocations: 5.127 MB / 0.5124 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4779/0.9709, allocations: 33.44 MB / 0.545 GB, free: 105.6 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006655/0.9776, allocations: 4.309 MB / 0.5493 GB, free: 104.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003575/0.9812, allocations: 2.586 MB / 0.5518 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.443e-05/0.9813, allocations: 17.47 kB / 0.5518 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.903e-05/0.9813, allocations: 74.91 kB / 0.5519 GB, free: 103.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.627e-06/0.9814, allocations: 0 / 0.5519 GB, free: 103.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01662/0.998, allocations: 7.609 MB / 0.5593 GB, free: 101 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001962/0.9982, allocations: 0.985 MB / 0.5603 GB, free: 99.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0818/1.08, allocations: 35.77 MB / 0.5952 GB, free: 66.78 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000572/1.081, allocations: 61.7 kB / 0.5952 GB, free: 66.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0125/1.093, allocations: 7.495 MB / 0.6026 GB, free: 59.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/1.094, allocations: 0.5721 MB / 0.6031 GB, free: 59.03 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000861/1.095, allocations: 431.4 kB / 0.6035 GB, free: 58.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.75e-05/1.095, allocations: 305.1 kB / 0.6038 GB, free: 58.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003056/1.098, allocations: 1.971 MB / 0.6058 GB, free: 56.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003266/1.102, allocations: 2.852 MB / 0.6085 GB, free: 53.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00564/1.107, allocations: 4.21 MB / 0.6127 GB, free: 48.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.22e-05/1.107, allocations: 7.719 kB / 0.6127 GB, free: 48.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01459/1.122, allocations: 6.107 MB / 0.6186 GB, free: 42.62 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.65e-05/1.122, allocations: 14.66 kB / 0.6186 GB, free: 42.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/1.122, allocations: 12 kB / 0.6186 GB, free: 42.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/1.123, allocations: 371.2 kB / 0.619 GB, free: 42.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00218/1.125, allocations: 0.6902 MB / 0.6197 GB, free: 41.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004418/1.13, allocations: 4.608 MB / 0.6242 GB, free: 36.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009526/1.139, allocations: 0.6675 MB / 0.6248 GB, free: 36.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005567/1.14, allocations: 84 kB / 0.6249 GB, free: 36.12 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.01118/1.151, allocations: 8.119 MB / 0.6328 GB, free: 28 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005177/1.156, allocations: 1.467 MB / 0.6343 GB, free: 26.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01191/1.168, allocations: 6.033 MB / 0.6402 GB, free: 20.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/1.168, allocations: 19.94 kB / 0.6402 GB, free: 20.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/1.168, allocations: 0 / 0.6402 GB, free: 20.46 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/1.168, allocations: 7.969 kB / 0.6402 GB, free: 20.45 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03922/1.207, allocations: 18.53 MB / 0.6583 GB, free: 1.895 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.878e-06/1.207, allocations: 7.984 kB / 0.6583 GB, free: 1.887 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001716/1.209, allocations: 0.5562 MB / 0.6588 GB, free: 1.332 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000756/1.21, allocations: 297.9 kB / 0.6591 GB, free: 1.039 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/1.21, allocations: 39.98 kB / 0.6592 GB, free: 1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004762/1.215, allocations: 4.038 MB / 0.6631 GB, free: 12.84 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/1.215, allocations: 4 kB / 0.6631 GB, free: 12.84 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01768/1.233, allocations: 7.703 MB / 0.6706 GB, free: 5.102 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01137/1.244, allocations: 4.265 MB / 0.6748 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005063/1.249, allocations: 54 kB / 0.6748 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007729/1.257, allocations: 0.6552 MB / 0.6755 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001187/1.258, allocations: 436.7 kB / 0.6759 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001849/1.258, allocations: 43.98 kB / 0.6759 GB, free: 15.65 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.05842/1.317, allocations: 25.59 MB / 0.7009 GB, free: 6.137 MB / 0.4982 GB Notification: Performance of sort global known variables: time 5.81e-07/1.317, allocations: 0 / 0.7009 GB, free: 6.137 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009167/1.326, allocations: 1.853 MB / 0.7027 GB, free: 4.352 MB / 0.4982 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.02116/1.347, allocations: 8.646 MB / 0.7112 GB, free: 11.82 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008879/1.356, allocations: 4.489 MB / 0.7156 GB, free: 7.316 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/1.356, allocations: 5.219 kB / 0.7156 GB, free: 7.312 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004323/1.36, allocations: 2.269 MB / 0.7178 GB, free: 5.031 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02346/1.384, allocations: 2.118 MB / 0.7198 GB, free: 2.934 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7455/2.129, allocations: 226.4 MB / 0.9409 GB, free: 7.648 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2952/2.425, allocations: 10.17 MB / 0.9509 GB, free: 189.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01769/2.442, allocations: 8.153 MB / 0.9588 GB, free: 188.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01421/2.457, allocations: 6.077 MB / 0.9648 GB, free: 183.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/2.457, allocations: 0 / 0.9648 GB, free: 183.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6765/3.133, allocations: 329.8 MB / 1.287 GB, free: 55.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 67.97/71.11, allocations: 4.078 kB / 1.287 GB, free: 55.18 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)