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.001303/0.001303, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001477/0.001477, allocations: 213.5 kB / 24.52 MB, free: 3.91 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.493/1.493, allocations: 230.5 MB / 258.2 MB, free: 7.805 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.00189/0.00189, allocations: 55.91 kB / 378.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3251, allocations: 53.4 MB / 431.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01278/0.3378, allocations: 8.75 MB / 440.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007163/0.345, allocations: 3.345 MB / 444 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.3461, allocations: 31.81 kB / 444 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002805/0.3489, allocations: 1.152 MB / 445.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001717/0.3506, allocations: 0.6841 MB / 445.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.3518, allocations: 0.4907 MB / 446.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007964/0.3597, allocations: 7.318 MB / 453.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003082/0.3628, allocations: 2.092 MB / 455.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004177/0.367, allocations: 2.925 MB / 458.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004851/0.3718, allocations: 2.989 MB / 461.7 MB, free: 8.523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001801/0.3736, allocations: 0.6797 MB / 462.4 MB, free: 7.844 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.3757, allocations: 0.7187 MB / 463.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005584/0.3813, allocations: 5.841 MB / 468.9 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01135/0.3926, allocations: 5.279 MB / 474.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02959/0.4222, allocations: 25.17 MB / 499.4 MB, free: 2.707 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.4222, allocations: 0 / 499.4 MB, free: 2.707 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4223, allocations: 4 kB / 499.4 MB, free: 2.703 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009817/0.4232, allocations: 4 kB / 499.4 MB, free: 2.699 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.05618/0.4794, allocations: 19.33 MB / 0.5065 GB, free: 15.22 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4795, allocations: 8.031 kB / 0.5066 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000126/0.4796, allocations: 94.69 kB / 0.5066 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001766/0.4813, allocations: 495.6 kB / 0.5071 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006058/0.4874, allocations: 1.635 MB / 0.5087 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05172/0.5391, allocations: 18.11 MB / 0.5264 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006194/0.5397, allocations: 357.9 kB / 0.5267 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.5412, allocations: 324 kB / 0.5271 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01743/0.5587, allocations: 8.013 MB / 0.5349 GB, free: 1.504 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.849e-05/0.5588, allocations: 11.92 kB / 0.5349 GB, free: 1.492 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007869/0.5595, allocations: 144 kB / 0.535 GB, free: 1.352 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.841e-05/0.5596, allocations: 80 kB / 0.5351 GB, free: 1.273 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4656/1.025, allocations: 5.123 MB / 0.5401 GB, free: 80.22 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05633/1.082, allocations: 30.74 MB / 0.5701 GB, free: 58.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006205/1.088, allocations: 4.162 MB / 0.5742 GB, free: 54.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003358/1.091, allocations: 2.463 MB / 0.5766 GB, free: 51.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.745e-05/1.091, allocations: 21.3 kB / 0.5766 GB, free: 51.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.001e-05/1.091, allocations: 67.88 kB / 0.5767 GB, free: 51.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.018e-06/1.091, allocations: 0 / 0.5767 GB, free: 51.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01721/1.108, allocations: 7.525 MB / 0.584 GB, free: 44.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002278/1.109, allocations: 0.9824 MB / 0.585 GB, free: 43.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07333/1.182, allocations: 35.89 MB / 0.62 GB, free: 7.754 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006727/1.183, allocations: 61.7 kB / 0.6201 GB, free: 7.688 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01179/1.194, allocations: 7.531 MB / 0.6275 GB, free: 324 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008317/1.195, allocations: 0.5678 MB / 0.628 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008542/1.196, allocations: 435.2 kB / 0.6284 GB, free: 15.39 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/1.196, allocations: 305.1 kB / 0.6287 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003658/1.2, allocations: 1.971 MB / 0.6306 GB, free: 13.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004974/1.205, allocations: 3.761 MB / 0.6343 GB, free: 8.805 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00743/1.212, allocations: 4.207 MB / 0.6384 GB, free: 4.391 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/1.212, allocations: 4 kB / 0.6384 GB, free: 4.387 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01763/1.23, allocations: 6.096 MB / 0.6444 GB, free: 14.27 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/1.23, allocations: 15.98 kB / 0.6444 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.951e-05/1.23, allocations: 16 kB / 0.6444 GB, free: 14.24 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/1.231, allocations: 367.2 kB / 0.6448 GB, free: 13.88 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/1.234, allocations: 0.698 MB / 0.6454 GB, free: 13.18 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006097/1.24, allocations: 4.439 MB / 0.6498 GB, free: 8.652 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009577/1.249, allocations: 0.6618 MB / 0.6504 GB, free: 8.055 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004756/1.25, allocations: 84 kB / 0.6505 GB, free: 7.973 MB / 478.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.01498/1.265, allocations: 8.136 MB / 0.6584 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006052/1.271, allocations: 1.474 MB / 0.6599 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01682/1.288, allocations: 6.033 MB / 0.6658 GB, free: 8.301 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/1.288, allocations: 12 kB / 0.6658 GB, free: 8.289 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/1.288, allocations: 3.938 kB / 0.6658 GB, free: 8.285 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/1.288, allocations: 8.922 kB / 0.6658 GB, free: 8.277 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05398/1.342, allocations: 16.73 MB / 0.6821 GB, free: 7.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/1.342, allocations: 0 / 0.6821 GB, free: 7.5 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002178/1.344, allocations: 0.5655 MB / 0.6827 GB, free: 6.934 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009682/1.345, allocations: 292.2 kB / 0.683 GB, free: 6.648 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002594/1.345, allocations: 43.98 kB / 0.683 GB, free: 6.605 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005641/1.351, allocations: 3.877 MB / 0.6868 GB, free: 2.625 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.351, allocations: 4 kB / 0.6868 GB, free: 2.621 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01965/1.371, allocations: 7.703 MB / 0.6943 GB, free: 10.88 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01424/1.385, allocations: 4.399 MB / 0.6986 GB, free: 6.492 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007159/1.392, allocations: 43.94 kB / 0.6987 GB, free: 6.449 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008567/1.4, allocations: 0.663 MB / 0.6993 GB, free: 5.785 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/1.402, allocations: 440.6 kB / 0.6997 GB, free: 5.355 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003786/1.402, allocations: 40 kB / 0.6998 GB, free: 5.316 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.06982/1.472, allocations: 25.68 MB / 0.7248 GB, free: 11.71 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.5e-07/1.472, allocations: 0 / 0.7248 GB, free: 11.71 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0123/1.484, allocations: 1.85 MB / 0.7267 GB, free: 9.93 MB / 0.545 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.02278/1.507, allocations: 8.65 MB / 0.7351 GB, free: 1.375 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009697/1.517, allocations: 4.415 MB / 0.7394 GB, free: 12.95 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.517, allocations: 5.156 kB / 0.7394 GB, free: 12.95 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004694/1.521, allocations: 2.207 MB / 0.7416 GB, free: 10.73 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02581/1.547, allocations: 2.096 MB / 0.7436 GB, free: 8.645 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9527/2.5, allocations: 226.3 MB / 0.9646 GB, free: 194.6 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01835/2.518, allocations: 9.813 MB / 0.9742 GB, free: 192.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01504/2.533, allocations: 7.686 MB / 0.9817 GB, free: 190 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01378/2.547, allocations: 6.095 MB / 0.9877 GB, free: 184.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.603e-06/2.547, allocations: 3.281 kB / 0.9877 GB, free: 184.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6346/3.182, allocations: 338.3 MB / 1.318 GB, free: 68.32 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 142.9/146.1, allocations: 3.906 kB / 1.318 GB, free: 68.32 MB / 0.5763 GB " [Timeout remaining time 514] (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: 154.4498023610795] 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'] 146.47930924000684 146.486578306 146.061810711 Calling exit ...