Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00187/0.00187, allocations: 120 kB / 18.5 MB, free: 4.52 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.002171/0.002171, allocations: 213.6 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.507/1.507, allocations: 230.5 MB / 254.8 MB, free: 15.12 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-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 71.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09972/0.1017, allocations: 53.33 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.2576/0.3593, allocations: 10.14 MB / 437.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00476/0.3641, allocations: 3.628 MB / 440.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00087/0.365, allocations: 36.09 kB / 440.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002557/0.3675, allocations: 1.187 MB / 442 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.369, allocations: 0.688 MB / 442.7 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.37, allocations: 495 kB / 443.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007332/0.3773, allocations: 7.326 MB / 450.5 MB, free: 68 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004288/0.3816, allocations: 3.323 MB / 453.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004866/0.3865, allocations: 2.915 MB / 456.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00585/0.3923, allocations: 2.984 MB / 459.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002714/0.395, allocations: 0.6813 MB / 460.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002968/0.398, allocations: 0.7193 MB / 461.1 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006134/0.4041, allocations: 5.837 MB / 466.9 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0131/0.4172, allocations: 7.189 MB / 474.1 MB, free: 1.957 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03007/0.4473, allocations: 25.02 MB / 499.2 MB, free: 8.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.4473, allocations: 0 / 499.2 MB, free: 8.852 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4473, allocations: 0 / 499.2 MB, free: 8.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008435/0.4481, allocations: 0 / 499.2 MB, free: 8.852 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.05407/0.5022, allocations: 19.23 MB / 0.5062 GB, free: 5.465 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.5023, allocations: 12.03 kB / 0.5062 GB, free: 5.453 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001403/0.5037, allocations: 499.6 kB / 0.5067 GB, free: 4.953 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006027/0.5097, allocations: 1.646 MB / 0.5083 GB, free: 3.297 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04162/0.5513, allocations: 17.91 MB / 0.5258 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004909/0.5518, allocations: 332.2 kB / 0.5261 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009681/0.5528, allocations: 327.9 kB / 0.5265 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0133/0.5661, allocations: 6.495 MB / 0.5328 GB, free: 9.934 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.5e-05/0.5661, allocations: 11.92 kB / 0.5328 GB, free: 9.922 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000471/0.5666, allocations: 144 kB / 0.5329 GB, free: 9.781 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.543e-05/0.5667, allocations: 81.5 kB / 0.533 GB, free: 9.703 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01021/0.5769, allocations: 5.123 MB / 0.538 GB, free: 4.57 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07199/0.6489, allocations: 33.45 MB / 0.5707 GB, free: 2.816 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008461/0.6573, allocations: 4.182 MB / 0.5748 GB, free: 14.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00495/0.6623, allocations: 2.466 MB / 0.5772 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.6624, allocations: 25.3 kB / 0.5772 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.681e-05/0.6625, allocations: 63.88 kB / 0.5773 GB, free: 12.15 MB / 494.1 MB Notification: Performance of pre-optimization done (n=156): time 4.609e-06/0.6625, allocations: 0 / 0.5773 GB, free: 12.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.02042/0.6829, allocations: 7.588 MB / 0.5847 GB, free: 4.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006338/0.6836, allocations: 0.9863 MB / 0.5856 GB, free: 3.301 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4779/1.161, allocations: 35.88 MB / 0.6207 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006022/1.162, allocations: 63.86 kB / 0.6207 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.01421/1.176, allocations: 7.535 MB / 0.6281 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001018/1.177, allocations: 0.5702 MB / 0.6287 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009641/1.178, allocations: 430.9 kB / 0.6291 GB, free: 123.1 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.567e-05/1.178, allocations: 306.7 kB / 0.6294 GB, free: 122.8 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003922/1.182, allocations: 1.967 MB / 0.6313 GB, free: 122.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004623/1.187, allocations: 2.856 MB / 0.6341 GB, free: 121 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007348/1.194, allocations: 4.208 MB / 0.6382 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.232e-05/1.194, allocations: 5.188 kB / 0.6382 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01726/1.211, allocations: 6.096 MB / 0.6441 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 3.801e-05/1.211, allocations: 15.31 kB / 0.6442 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.328e-05/1.212, allocations: 15.53 kB / 0.6442 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/1.213, allocations: 369.2 kB / 0.6445 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/1.215, allocations: 0.6955 MB / 0.6452 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005107/1.22, allocations: 4.606 MB / 0.6497 GB, free: 114.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007724/1.228, allocations: 0.6635 MB / 0.6503 GB, free: 114.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004767/1.228, allocations: 80.11 kB / 0.6504 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.01181/1.24, allocations: 8.146 MB / 0.6584 GB, free: 112.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005625/1.246, allocations: 1.474 MB / 0.6598 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0127/1.258, allocations: 6.029 MB / 0.6657 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/1.259, allocations: 15.25 kB / 0.6657 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/1.259, allocations: 0 / 0.6657 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/1.259, allocations: 9.594 kB / 0.6657 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03954/1.298, allocations: 18.58 MB / 0.6839 GB, free: 99.54 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/1.298, allocations: 4 kB / 0.6839 GB, free: 99.54 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/1.3, allocations: 0.5565 MB / 0.6844 GB, free: 99.34 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007466/1.301, allocations: 293.3 kB / 0.6847 GB, free: 99.22 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001201/1.301, allocations: 43.64 kB / 0.6847 GB, free: 99.19 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003501/1.304, allocations: 4.04 MB / 0.6887 GB, free: 96.23 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.304, allocations: 2.156 kB / 0.6887 GB, free: 96.23 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01396/1.318, allocations: 7.708 MB / 0.6962 GB, free: 92.43 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01022/1.328, allocations: 4.266 MB / 0.7004 GB, free: 90.46 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005208/1.334, allocations: 47.3 kB / 0.7004 GB, free: 90.43 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00781/1.341, allocations: 0.6543 MB / 0.7011 GB, free: 90.12 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001003/1.342, allocations: 439.5 kB / 0.7015 GB, free: 89.91 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/1.343, allocations: 39.38 kB / 0.7015 GB, free: 89.9 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.04804/1.391, allocations: 25.68 MB / 0.7266 GB, free: 64.83 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.01e-07/1.391, allocations: 0 / 0.7266 GB, free: 64.83 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01034/1.401, allocations: 1.836 MB / 0.7284 GB, free: 63.06 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.01859/1.419, allocations: 8.644 MB / 0.7368 GB, free: 54.56 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007521/1.427, allocations: 4.401 MB / 0.7411 GB, free: 50.16 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.334e-05/1.427, allocations: 5.219 kB / 0.7411 GB, free: 50.16 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003358/1.43, allocations: 2.21 MB / 0.7433 GB, free: 47.93 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02062/1.451, allocations: 2.102 MB / 0.7454 GB, free: 45.87 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6803/2.131, allocations: 226.3 MB / 0.9664 GB, free: 81.47 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01798/2.149, allocations: 10.19 MB / 0.9763 GB, free: 71.3 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01544/2.165, allocations: 7.694 MB / 0.9838 GB, free: 63.63 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01477/2.18, allocations: 6.099 MB / 0.9898 GB, free: 57.53 MB / 0.5607 GB Notification: Performance of SimCode: time 8.92e-07/2.18, allocations: 0 / 0.9898 GB, free: 57.53 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9474/3.127, allocations: 331.1 MB / 1.313 GB, free: 131.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 183.1/186.3, allocations: 5.188 kB / 1.313 GB, free: 131.1 MB / 0.5763 GB " [Timeout remaining time 473] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 189.2307455171831] 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'] 186.5772675848566 186.592308386 186.14119495 Calling exit ...