Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.00137, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.634/1.634, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 91.48 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.959e-05/2.96e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1544, allocations: 50.42 MB / 387.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4079/0.5624, allocations: 93.32 MB / 480.9 MB, free: 1.387 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.5627, allocations: 79.95 kB / 481 MB, free: 1.309 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].C to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].C to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].Qnom to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].OCVmax to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].OCVmin to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].Ri to false. Notification: Performance of FrontEnd - DAE generated: time 1.091/1.653, allocations: 272.6 MB / 0.7359 GB, free: 47.47 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.653, allocations: 11.23 kB / 0.7359 GB, free: 47.47 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.004441/1.658, allocations: 256.8 kB / 0.7361 GB, free: 47.45 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.03593/1.694, allocations: 13.3 MB / 0.7491 GB, free: 42.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/1.694, allocations: 9.75 kB / 0.7491 GB, free: 42.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006631/1.701, allocations: 1.743 MB / 0.7508 GB, free: 41.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05271/1.753, allocations: 25.4 MB / 0.7756 GB, free: 38.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004855/1.754, allocations: 257.2 kB / 0.7759 GB, free: 38.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001642/1.755, allocations: 236.7 kB / 0.7761 GB, free: 38.58 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009882/1.765, allocations: 5.658 MB / 0.7816 GB, free: 38.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01366/1.779, allocations: 6.869 MB / 0.7883 GB, free: 37.79 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.516e-05/1.779, allocations: 5.188 kB / 0.7883 GB, free: 37.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000632/1.78, allocations: 9.75 kB / 0.7883 GB, free: 37.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-05/1.78, allocations: 97.03 kB / 0.7884 GB, free: 37.79 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06159/1.841, allocations: 33.64 MB / 0.8213 GB, free: 19.06 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006841/1.848, allocations: 4.7 MB / 0.8259 GB, free: 15.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004329/1.853, allocations: 3.637 MB / 0.8294 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001657/1.853, allocations: 29.44 kB / 0.8295 GB, free: 11.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.51e-05/1.853, allocations: 80 kB / 0.8295 GB, free: 11.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 4.659e-06/1.853, allocations: 0 / 0.8295 GB, free: 11.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.009028/1.862, allocations: 5.128 MB / 0.8345 GB, free: 7.238 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002336/1.862, allocations: 1.296 MB / 0.8358 GB, free: 5.641 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07938/1.942, allocations: 28.05 MB / 0.8632 GB, free: 320 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009097/1.943, allocations: 29.7 kB / 0.8632 GB, free: 284 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.01697/1.96, allocations: 8.215 MB / 0.8712 GB, free: 8.043 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001809/1.962, allocations: 0.7814 MB / 0.872 GB, free: 7.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002885/1.962, allocations: 4 kB / 0.872 GB, free: 7.246 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002643/1.962, allocations: 434.3 kB / 0.8724 GB, free: 6.82 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003136/1.965, allocations: 2.227 MB / 0.8746 GB, free: 4.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004811/1.97, allocations: 3.245 MB / 0.8778 GB, free: 1.012 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2714/2.242, allocations: 2.627 MB / 0.8803 GB, free: 77.04 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-05/2.242, allocations: 7.641 kB / 0.8803 GB, free: 77.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01423/2.256, allocations: 6.716 MB / 0.8869 GB, free: 76.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.414e-05/2.256, allocations: 11.34 kB / 0.8869 GB, free: 76.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.26e-05/2.256, allocations: 24.3 kB / 0.8869 GB, free: 76.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/2.257, allocations: 0.5235 MB / 0.8874 GB, free: 76.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004686/2.262, allocations: 1.031 MB / 0.8885 GB, free: 76.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007368/2.269, allocations: 5.808 MB / 0.8941 GB, free: 75.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009235/2.279, allocations: 0.7908 MB / 0.8949 GB, free: 75.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007839/2.279, allocations: 104.5 kB / 0.895 GB, free: 75.48 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stack.cell[1,1].n.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real [3,2] stack.cell[3,1].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3,2] cccvCharger.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 307 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 38} Notification: Performance of prepare postOptimizeDAE: time 0.0009249/2.28, allocations: 212.1 kB / 0.8952 GB, free: 75.37 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01003/2.29, allocations: 5.133 MB / 0.9002 GB, free: 74.45 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005259/2.296, allocations: 1.519 MB / 0.9017 GB, free: 73.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01251/2.308, allocations: 6.183 MB / 0.9077 GB, free: 73.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/2.308, allocations: 22.19 kB / 0.9078 GB, free: 73.36 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/2.308, allocations: 3.812 kB / 0.9078 GB, free: 73.36 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/2.308, allocations: 10.12 kB / 0.9078 GB, free: 73.36 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03949/2.348, allocations: 18.11 MB / 0.9255 GB, free: 72.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/2.348, allocations: 6.781 kB / 0.9255 GB, free: 72.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002986/2.351, allocations: 0.8675 MB / 0.9263 GB, free: 72.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009353/2.352, allocations: 443.3 kB / 0.9267 GB, free: 72.74 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002156/2.352, allocations: 39.77 kB / 0.9268 GB, free: 72.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004622/2.357, allocations: 4.997 MB / 0.9317 GB, free: 71.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/2.357, allocations: 3.344 kB / 0.9317 GB, free: 71.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/2.368, allocations: 8.414 MB / 0.9399 GB, free: 69.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009581/2.378, allocations: 7.376 MB / 0.9471 GB, free: 64.41 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003823/2.382, allocations: 49.53 kB / 0.9471 GB, free: 64.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008346/2.39, allocations: 0.9154 MB / 0.948 GB, free: 64.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001622/2.392, allocations: 484.6 kB / 0.9485 GB, free: 64.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003427/2.392, allocations: 62.59 kB / 0.9485 GB, free: 64.33 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.04137/2.434, allocations: 20.5 MB / 0.9686 GB, free: 57.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.434, allocations: 0 / 0.9686 GB, free: 57.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008205/2.442, allocations: 1.849 MB / 0.9704 GB, free: 55.49 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (201): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01408/2.456, allocations: 9.605 MB / 0.9797 GB, free: 46.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007029/2.463, allocations: 4.933 MB / 0.9846 GB, free: 42.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/2.463, allocations: 6.094 kB / 0.9846 GB, free: 42.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003091/2.466, allocations: 2.656 MB / 0.9872 GB, free: 40.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01246/2.479, allocations: 2.182 MB / 0.9893 GB, free: 38.65 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08306/2.562, allocations: 43.27 MB / 1.032 GB, free: 1.156 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02849/2.59, allocations: 11.83 MB / 1.043 GB, free: 8.48 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0164/2.607, allocations: 6.33 MB / 1.049 GB, free: 4.281 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.5322/3.139, allocations: 7.094 MB / 1.056 GB, free: 69.96 MB / 474.8 MB Notification: Performance of SimCode: time 1.533e-06/3.139, allocations: 0 / 1.056 GB, free: 69.96 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.698/3.837, allocations: 271 MB / 1.321 GB, free: 87.02 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/3.837, allocations: 173.1 kB / 1.321 GB, free: 86.84 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/17.77, allocations: 0 / 1.321 GB, free: 86.84 MB / 0.4949 GB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat does not exist to compare? outputFormat=mat