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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001342/0.001342, allocations: 116.9 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 212.7 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 63.89 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1152, allocations: 53.37 MB / 427.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.2127/0.3279, allocations: 10.13 MB / 437.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005413/0.3333, allocations: 3.633 MB / 440.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009276/0.3343, allocations: 38.19 kB / 440.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002785/0.337, allocations: 1.185 MB / 442 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001754/0.3388, allocations: 0.6888 MB / 442.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00138/0.3402, allocations: 494.3 kB / 443.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008057/0.3482, allocations: 7.315 MB / 450.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005009/0.3533, allocations: 3.317 MB / 453.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005512/0.3588, allocations: 2.919 MB / 456.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006359/0.3651, allocations: 2.986 MB / 459.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002688/0.3678, allocations: 0.6838 MB / 460.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003342/0.3712, allocations: 0.7219 MB / 461.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00657/0.3777, allocations: 5.841 MB / 467 MB, free: 8.598 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01299/0.3907, allocations: 7.184 MB / 474.2 MB, free: 1.688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02903/0.4197, allocations: 25.01 MB / 499.2 MB, free: 8.594 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.4198, allocations: 0 / 499.2 MB, free: 8.594 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.479e-05/0.4198, allocations: 3.984 kB / 499.2 MB, free: 8.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000848/0.4206, allocations: 4 kB / 499.2 MB, free: 8.586 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.05143/0.472, allocations: 19.24 MB / 0.5063 GB, free: 5.191 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.4721, allocations: 8.031 kB / 0.5063 GB, free: 5.184 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001197/0.4722, allocations: 86.75 kB / 0.5064 GB, free: 5.098 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001253/0.4735, allocations: 0.4918 MB / 0.5069 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005207/0.4787, allocations: 1.639 MB / 0.5085 GB, free: 2.945 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04244/0.5211, allocations: 17.92 MB / 0.526 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005132/0.5216, allocations: 336.2 kB / 0.5263 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/0.5228, allocations: 327.9 kB / 0.5266 GB, free: 304 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01475/0.5375, allocations: 6.487 MB / 0.5329 GB, free: 9.578 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.208e-05/0.5376, allocations: 5.641 kB / 0.5329 GB, free: 9.574 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005992/0.5382, allocations: 144 kB / 0.5331 GB, free: 9.434 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.336e-05/0.5383, allocations: 83.98 kB / 0.5331 GB, free: 9.352 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01153/0.5498, allocations: 5.126 MB / 0.5382 GB, free: 4.215 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07268/0.6225, allocations: 33.44 MB / 0.5708 GB, free: 2.477 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00831/0.6308, allocations: 4.185 MB / 0.5749 GB, free: 14.37 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004537/0.6353, allocations: 2.477 MB / 0.5773 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.6354, allocations: 25.25 kB / 0.5773 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.132e-05/0.6355, allocations: 59.88 kB / 0.5774 GB, free: 11.8 MB / 494.1 MB Notification: Performance of pre-optimization done (n=156): time 3.296e-06/0.6355, allocations: 0 / 0.5774 GB, free: 11.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.01963/0.6551, allocations: 7.601 MB / 0.5848 GB, free: 4.156 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005993/0.6557, allocations: 0.9824 MB / 0.5858 GB, free: 2.941 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5199/1.176, allocations: 35.87 MB / 0.6208 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006644/1.176, allocations: 66.92 kB / 0.6209 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.01827/1.195, allocations: 7.533 MB / 0.6282 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001267/1.196, allocations: 0.5684 MB / 0.6288 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001022/1.197, allocations: 430.2 kB / 0.6292 GB, free: 123.1 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.274e-05/1.197, allocations: 302 kB / 0.6295 GB, free: 122.8 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004254/1.201, allocations: 1.969 MB / 0.6314 GB, free: 122.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00491/1.206, allocations: 2.858 MB / 0.6342 GB, free: 121 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007795/1.214, allocations: 4.206 MB / 0.6383 GB, free: 119.6 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.663e-05/1.214, allocations: 4.125 kB / 0.6383 GB, free: 119.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01779/1.232, allocations: 6.102 MB / 0.6443 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 4.427e-05/1.232, allocations: 12.7 kB / 0.6443 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-05/1.232, allocations: 16 kB / 0.6443 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/1.233, allocations: 374.6 kB / 0.6447 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002506/1.235, allocations: 0.6926 MB / 0.6453 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005331/1.241, allocations: 4.608 MB / 0.6498 GB, free: 114.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01004/1.251, allocations: 0.6633 MB / 0.6505 GB, free: 114.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007229/1.251, allocations: 82.03 kB / 0.6506 GB, free: 114.8 MB / 0.5138 GB 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.01413/1.266, allocations: 8.142 MB / 0.6585 GB, free: 112.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005586/1.271, allocations: 1.471 MB / 0.6599 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01283/1.284, allocations: 6.037 MB / 0.6658 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/1.284, allocations: 14.41 kB / 0.6659 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.284, allocations: 0 / 0.6659 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/1.284, allocations: 7.969 kB / 0.6659 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04028/1.324, allocations: 18.58 MB / 0.684 GB, free: 99.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.393e-06/1.324, allocations: 7.906 kB / 0.684 GB, free: 99.48 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001739/1.326, allocations: 0.5561 MB / 0.6846 GB, free: 99.28 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007543/1.327, allocations: 295 kB / 0.6848 GB, free: 99.16 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/1.327, allocations: 35.88 kB / 0.6849 GB, free: 99.13 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003543/1.33, allocations: 4.041 MB / 0.6888 GB, free: 96.16 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.33, allocations: 5.938 kB / 0.6888 GB, free: 96.16 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01542/1.346, allocations: 7.696 MB / 0.6963 GB, free: 92.36 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01131/1.357, allocations: 4.271 MB / 0.7005 GB, free: 90.39 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006601/1.364, allocations: 43.67 kB / 0.7005 GB, free: 90.36 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00949/1.373, allocations: 0.6598 MB / 0.7012 GB, free: 90.06 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001134/1.374, allocations: 440.6 kB / 0.7016 GB, free: 89.84 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002185/1.375, allocations: 39.56 kB / 0.7016 GB, free: 89.83 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.05249/1.427, allocations: 25.67 MB / 0.7267 GB, free: 64.33 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.2e-07/1.427, allocations: 0.7656 kB / 0.7267 GB, free: 64.33 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0107/1.438, allocations: 1.841 MB / 0.7285 GB, free: 62.55 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.01831/1.456, allocations: 8.64 MB / 0.737 GB, free: 54.04 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008274/1.464, allocations: 4.404 MB / 0.7413 GB, free: 49.63 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/1.464, allocations: 5.219 kB / 0.7413 GB, free: 49.63 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003475/1.468, allocations: 2.212 MB / 0.7434 GB, free: 47.41 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02176/1.49, allocations: 2.103 MB / 0.7455 GB, free: 45.34 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7098/2.2, allocations: 226.3 MB / 0.9665 GB, free: 81.08 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01932/2.219, allocations: 10.19 MB / 0.9765 GB, free: 70.91 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01622/2.235, allocations: 7.692 MB / 0.984 GB, free: 63.24 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0147/2.25, allocations: 6.096 MB / 0.9899 GB, free: 57.14 MB / 0.5607 GB Notification: Performance of SimCode: time 1.412e-06/2.25, allocations: 0 / 0.9899 GB, free: 57.14 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9663/3.216, allocations: 331 MB / 1.313 GB, free: 131.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 188.6/191.9, allocations: 6.109 kB / 1.313 GB, free: 131.7 MB / 0.5763 GB " [Timeout remaining time 468] (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 --stepSize=0.1 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 200.37268687202595] Failed to read output from testmodel.py, exit status != 0: ['time', 'energy.y', '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'] 192.21353959303815 192.221869459 191.799234143 Calling exit ...