Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002372/0.002372, allocations: 216.2 kB / 24.53 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.411/1.411, allocations: 230.6 MB / 258.3 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 47.92 kB / 378.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2766, allocations: 53.35 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01253/0.2891, allocations: 10.18 MB / 442.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006314/0.2954, allocations: 3.668 MB / 445.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001158/0.2966, allocations: 35.75 kB / 445.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002944/0.2995, allocations: 1.186 MB / 447 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001814/0.3013, allocations: 0.688 MB / 447.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.3026, allocations: 0.4976 MB / 448.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008627/0.3112, allocations: 7.325 MB / 455.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003128/0.3144, allocations: 2.096 MB / 457.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005313/0.3197, allocations: 2.921 MB / 460.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005435/0.3251, allocations: 2.989 MB / 463.5 MB, free: 7.109 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001454/0.3266, allocations: 0.6797 MB / 464.2 MB, free: 6.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.3281, allocations: 0.7187 MB / 464.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005622/0.3337, allocations: 5.829 MB / 470.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01198/0.3457, allocations: 7.195 MB / 477.9 MB, free: 8.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02917/0.3749, allocations: 25.01 MB / 0.4911 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3749, allocations: 3.938 kB / 0.4911 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3749, allocations: 4 kB / 0.4911 GB, free: 15.53 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007348/0.3756, allocations: 0 / 0.4911 GB, free: 15.53 MB / 414.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.05044/0.4261, allocations: 19.33 MB / 0.51 GB, free: 12.05 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.4261, allocations: 12.03 kB / 0.51 GB, free: 12.04 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001114/0.4262, allocations: 86.75 kB / 0.5101 GB, free: 11.96 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001388/0.4276, allocations: 495.6 kB / 0.5106 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005367/0.433, allocations: 1.646 MB / 0.5122 GB, free: 9.805 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04103/0.474, allocations: 18.1 MB / 0.5299 GB, free: 7.625 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004707/0.4745, allocations: 357.9 kB / 0.5302 GB, free: 7.262 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009003/0.4754, allocations: 324 kB / 0.5305 GB, free: 6.945 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01369/0.4891, allocations: 6.495 MB / 0.5369 GB, free: 232 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.761e-05/0.4891, allocations: 11.92 kB / 0.5369 GB, free: 220 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005391/0.4897, allocations: 148 kB / 0.537 GB, free: 72 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2083/0.698, allocations: 78.77 kB / 0.5371 GB, free: 84.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/0.7095, allocations: 5.13 MB / 0.5421 GB, free: 83.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05641/0.766, allocations: 33.54 MB / 0.5749 GB, free: 58.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006331/0.7723, allocations: 4.18 MB / 0.5789 GB, free: 54.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003562/0.7758, allocations: 2.47 MB / 0.5814 GB, free: 51.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-05/0.7759, allocations: 23.02 kB / 0.5814 GB, free: 51.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.206e-05/0.776, allocations: 67.05 kB / 0.5814 GB, free: 51.49 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.967e-06/0.776, allocations: 0 / 0.5814 GB, free: 51.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01624/0.7922, allocations: 7.514 MB / 0.5888 GB, free: 44.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001908/0.7924, allocations: 0.9902 MB / 0.5897 GB, free: 43.19 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0663/0.8587, allocations: 35.89 MB / 0.6248 GB, free: 7.383 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005539/0.8593, allocations: 61.7 kB / 0.6248 GB, free: 7.316 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01346/0.8728, allocations: 7.528 MB / 0.6322 GB, free: 15.78 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00103/0.8738, allocations: 0.5696 MB / 0.6328 GB, free: 15.21 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009078/0.8747, allocations: 431.4 kB / 0.6332 GB, free: 14.79 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.8748, allocations: 305.1 kB / 0.6335 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003847/0.8787, allocations: 1.971 MB / 0.6354 GB, free: 12.51 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004882/0.8836, allocations: 2.846 MB / 0.6382 GB, free: 9.34 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008366/0.8919, allocations: 4.212 MB / 0.6423 GB, free: 4.918 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.006e-05/0.892, allocations: 4 kB / 0.6423 GB, free: 4.914 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01734/0.9093, allocations: 6.099 MB / 0.6482 GB, free: 14.79 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.677e-05/0.9093, allocations: 12 kB / 0.6482 GB, free: 14.78 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.198e-05/0.9094, allocations: 15.98 kB / 0.6483 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.9105, allocations: 363.6 kB / 0.6486 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002496/0.913, allocations: 0.6941 MB / 0.6493 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006263/0.9192, allocations: 4.514 MB / 0.6537 GB, free: 9.098 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008499/0.9277, allocations: 0.6616 MB / 0.6543 GB, free: 8.434 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005852/0.9283, allocations: 80 kB / 0.6544 GB, free: 8.355 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.01505/0.9434, allocations: 8.145 MB / 0.6624 GB, free: 204 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006476/0.9498, allocations: 1.471 MB / 0.6638 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01594/0.9658, allocations: 6.02 MB / 0.6697 GB, free: 8.684 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/0.9658, allocations: 23.88 kB / 0.6697 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.9658, allocations: 0 / 0.6697 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.467e-05/0.9658, allocations: 7.969 kB / 0.6697 GB, free: 8.652 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04925/1.015, allocations: 18.81 MB / 0.6881 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/1.015, allocations: 0 / 0.6881 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002064/1.017, allocations: 0.5655 MB / 0.6886 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009515/1.018, allocations: 295.2 kB / 0.6889 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002004/1.018, allocations: 47.98 kB / 0.689 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005157/1.023, allocations: 3.928 MB / 0.6928 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/1.023, allocations: 0 / 0.6928 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01891/1.042, allocations: 7.704 MB / 0.7003 GB, free: 9.078 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01402/1.056, allocations: 4.403 MB / 0.7046 GB, free: 4.664 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005749/1.062, allocations: 43.98 kB / 0.7047 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008549/1.071, allocations: 0.659 MB / 0.7053 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001241/1.072, allocations: 444.6 kB / 0.7057 GB, free: 3.527 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002317/1.072, allocations: 43.98 kB / 0.7058 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.06174/1.134, allocations: 25.68 MB / 0.7309 GB, free: 9.879 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/1.134, allocations: 0 / 0.7309 GB, free: 9.879 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01053/1.144, allocations: 1.842 MB / 0.7326 GB, free: 8.035 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.02273/1.167, allocations: 8.645 MB / 0.7411 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00948/1.177, allocations: 4.404 MB / 0.7454 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/1.177, allocations: 5.156 kB / 0.7454 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004299/1.181, allocations: 2.211 MB / 0.7476 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02216/1.203, allocations: 2.115 MB / 0.7496 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.083/2.286, allocations: 226.4 MB / 0.9707 GB, free: 197.6 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02079/2.307, allocations: 10.19 MB / 0.9807 GB, free: 196.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01498/2.322, allocations: 7.692 MB / 0.9882 GB, free: 195.2 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01486/2.337, allocations: 6.099 MB / 0.9941 GB, free: 189.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.743e-06/2.337, allocations: 0 / 0.9941 GB, free: 189.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6528/2.989, allocations: 332.8 MB / 1.319 GB, free: 60.14 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 121.7/124.7, allocations: 8 kB / 1.319 GB, free: 60.13 MB / 0.5607 GB " [Timeout remaining time 535] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 132.87154519796604] 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'] 125.07916533999378 125.08765016 124.710017614 Calling exit ...