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.001022/0.001022, allocations: 114.4 kB / 17.06 MB, free: 5.965 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.000989/0.000989, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.285/1.285, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3239, allocations: 49.42 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01068/0.3346, allocations: 10.05 MB / 410.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005121/0.3398, allocations: 3.47 MB / 413.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008477/0.3406, allocations: 23.88 kB / 413.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002543/0.3432, allocations: 1.171 MB / 414.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001526/0.3448, allocations: 0.6412 MB / 415.6 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.346, allocations: 483.8 kB / 416.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007372/0.3534, allocations: 7.351 MB / 423.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00528/0.3587, allocations: 4.458 MB / 427.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004266/0.363, allocations: 2.855 MB / 430.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004841/0.3678, allocations: 2.923 MB / 433.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001803/0.3697, allocations: 0.6836 MB / 434.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002299/0.372, allocations: 0.7187 MB / 435 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004984/0.377, allocations: 5.814 MB / 440.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01104/0.388, allocations: 7.176 MB / 448 MB, free: 8.773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02485/0.4129, allocations: 24.88 MB / 472.9 MB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.413, allocations: 0 / 472.9 MB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.413, allocations: 0 / 472.9 MB, free: 15.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000816/0.4138, allocations: 3.938 kB / 472.9 MB, free: 15.82 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.05033/0.4641, allocations: 18.65 MB / 491.6 MB, free: 13.01 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.4642, allocations: 15.95 kB / 491.6 MB, free: 13 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001506/0.4657, allocations: 495.6 kB / 492.1 MB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00528/0.471, allocations: 1.551 MB / 493.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04119/0.5122, allocations: 17.73 MB / 0.4994 GB, free: 9.102 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005012/0.5127, allocations: 332.2 kB / 0.4997 GB, free: 8.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00109/0.5139, allocations: 335.8 kB / 0.5 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01372/0.5276, allocations: 6.491 MB / 0.5063 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.411e-05/0.5277, allocations: 0 / 0.5063 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006091/0.5283, allocations: 148 kB / 0.5065 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.245e-05/0.5284, allocations: 80 kB / 0.5066 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008949/0.5373, allocations: 5.126 MB / 0.5116 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4562/0.9936, allocations: 33.4 MB / 0.5442 GB, free: 105.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006292/0.9999, allocations: 4.309 MB / 0.5484 GB, free: 104.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003469/1.003, allocations: 2.59 MB / 0.5509 GB, free: 104.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001004/1.004, allocations: 18.5 kB / 0.5509 GB, free: 104.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.277e-05/1.004, allocations: 70.22 kB / 0.551 GB, free: 104 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.777e-06/1.004, allocations: 0 / 0.551 GB, free: 104 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01688/1.02, allocations: 7.528 MB / 0.5584 GB, free: 101.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002723/1.021, allocations: 0.985 MB / 0.5593 GB, free: 100 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06975/1.091, allocations: 35.76 MB / 0.5942 GB, free: 68.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005486/1.091, allocations: 65.7 kB / 0.5943 GB, free: 68.03 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01324/1.104, allocations: 7.464 MB / 0.6016 GB, free: 60.78 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000915/1.105, allocations: 0.5462 MB / 0.6021 GB, free: 60.24 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007779/1.106, allocations: 427.1 kB / 0.6025 GB, free: 59.81 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.147e-05/1.106, allocations: 309.1 kB / 0.6028 GB, free: 59.51 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003265/1.11, allocations: 1.967 MB / 0.6048 GB, free: 57.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003716/1.113, allocations: 2.856 MB / 0.6075 GB, free: 54.37 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006144/1.119, allocations: 4.213 MB / 0.6117 GB, free: 49.95 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.796e-05/1.119, allocations: 4 kB / 0.6117 GB, free: 49.95 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01397/1.133, allocations: 6.024 MB / 0.6175 GB, free: 43.89 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/1.134, allocations: 12 kB / 0.6176 GB, free: 43.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/1.134, allocations: 16.88 kB / 0.6176 GB, free: 43.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009086/1.134, allocations: 367.9 kB / 0.6179 GB, free: 43.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002032/1.137, allocations: 0.6942 MB / 0.6186 GB, free: 42.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004151/1.141, allocations: 4.611 MB / 0.6231 GB, free: 38.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007013/1.148, allocations: 0.6569 MB / 0.6237 GB, free: 37.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000291/1.148, allocations: 76 kB / 0.6238 GB, free: 37.33 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.01089/1.159, allocations: 8.124 MB / 0.6318 GB, free: 29.19 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005334/1.164, allocations: 1.4 MB / 0.6331 GB, free: 27.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01217/1.176, allocations: 6.019 MB / 0.639 GB, free: 21.74 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.439e-05/1.176, allocations: 25.25 kB / 0.639 GB, free: 21.71 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/1.176, allocations: 0 / 0.639 GB, free: 21.71 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/1.177, allocations: 7.969 kB / 0.639 GB, free: 21.71 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04003/1.217, allocations: 18.53 MB / 0.6571 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/1.217, allocations: 2.516 kB / 0.6571 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001661/1.218, allocations: 0.5577 MB / 0.6577 GB, free: 2.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006251/1.219, allocations: 298.2 kB / 0.658 GB, free: 2.277 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/1.219, allocations: 48.81 kB / 0.658 GB, free: 2.234 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003774/1.223, allocations: 4.027 MB / 0.6619 GB, free: 14.08 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.223, allocations: 0 / 0.6619 GB, free: 14.08 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/1.237, allocations: 7.621 MB / 0.6694 GB, free: 6.41 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01438/1.251, allocations: 4.197 MB / 0.6735 GB, free: 2.18 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004933/1.256, allocations: 47.98 kB / 0.6735 GB, free: 2.133 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006932/1.263, allocations: 0.6552 MB / 0.6742 GB, free: 1.477 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009879/1.264, allocations: 432.7 kB / 0.6746 GB, free: 1.051 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002055/1.265, allocations: 47.98 kB / 0.6746 GB, free: 1.004 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.07345/1.338, allocations: 25.59 MB / 0.6996 GB, free: 7.488 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.082e-06/1.338, allocations: 0 / 0.6996 GB, free: 7.488 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01635/1.354, allocations: 1.843 MB / 0.7014 GB, free: 5.645 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.02137/1.376, allocations: 8.58 MB / 0.7098 GB, free: 13.17 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009073/1.385, allocations: 4.482 MB / 0.7142 GB, free: 8.676 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.568e-05/1.385, allocations: 5.219 kB / 0.7142 GB, free: 8.672 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004657/1.39, allocations: 2.272 MB / 0.7164 GB, free: 6.387 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02343/1.413, allocations: 2.111 MB / 0.7185 GB, free: 4.301 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7737/2.187, allocations: 225.8 MB / 0.939 GB, free: 10.17 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2252/2.412, allocations: 10.17 MB / 0.9489 GB, free: 188.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01251/2.425, allocations: 8.147 MB / 0.9569 GB, free: 187.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007415/2.432, allocations: 6.084 MB / 0.9628 GB, free: 183.5 MB / 0.545 GB Notification: Performance of SimCode: time 6.72e-07/2.432, allocations: 0 / 0.9628 GB, free: 183.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.428/4.86, allocations: 334.2 MB / 1.289 GB, free: 55.44 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 100.8/105.7, allocations: 9.203 kB / 1.289 GB, free: 55.44 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)