Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 108.6 kB / 18.49 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 197 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 47.94 kB / 366.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09793, allocations: 52.15 MB / 418.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01241/0.1103, allocations: 10.1 MB / 428.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005687/0.116, allocations: 3.474 MB / 432.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008159/0.1168, allocations: 35.75 kB / 432.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002629/0.1195, allocations: 1.187 MB / 433.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001395/0.1209, allocations: 0.649 MB / 433.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.122, allocations: 481.9 kB / 434.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007913/0.1299, allocations: 7.324 MB / 441.7 MB, free: 5.383 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00408/0.134, allocations: 3.306 MB / 445 MB, free: 1.988 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2037/0.3376, allocations: 2.909 MB / 447.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003976/0.3416, allocations: 2.979 MB / 450.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001616/0.3432, allocations: 0.6768 MB / 451.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001835/0.3451, allocations: 0.72 MB / 452.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006198/0.3513, allocations: 5.823 MB / 458.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01371/0.365, allocations: 7.186 MB / 465.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03008/0.3951, allocations: 24.97 MB / 490.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3951, allocations: 0 / 490.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3951, allocations: 0 / 490.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0009407/0.396, allocations: 0.5625 kB / 490.3 MB, free: 12.9 MB / 382.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.05564/0.4516, allocations: 19.19 MB / 0.4975 GB, free: 11.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.4517, allocations: 8.031 kB / 0.4975 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001112/0.4518, allocations: 90.69 kB / 0.4976 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001386/0.4532, allocations: 0.4918 MB / 0.4981 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005882/0.4591, allocations: 1.634 MB / 0.4997 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04712/0.5062, allocations: 17.88 MB / 0.5172 GB, free: 7.266 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005535/0.5067, allocations: 336.2 kB / 0.5175 GB, free: 6.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001402/0.5082, allocations: 328 kB / 0.5178 GB, free: 6.609 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/0.5217, allocations: 6.493 MB / 0.5241 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.586e-05/0.5217, allocations: 4 kB / 0.5241 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004706/0.5222, allocations: 147.9 kB / 0.5243 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-05/0.5223, allocations: 80 kB / 0.5244 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01015/0.5324, allocations: 5.131 MB / 0.5294 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07938/0.6118, allocations: 33.44 MB / 0.562 GB, free: 9.129 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008464/0.6203, allocations: 4.176 MB / 0.5661 GB, free: 5.035 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004774/0.625, allocations: 2.475 MB / 0.5685 GB, free: 2.566 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.6251, allocations: 18.95 kB / 0.5685 GB, free: 2.551 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.202e-05/0.6252, allocations: 69.36 kB / 0.5686 GB, free: 2.477 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.988e-06/0.6252, allocations: 4 kB / 0.5686 GB, free: 2.473 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.02241/0.6476, allocations: 7.592 MB / 0.576 GB, free: 10.85 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007619/0.6484, allocations: 0.9824 MB / 0.577 GB, free: 9.633 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1015/0.7499, allocations: 35.76 MB / 0.6119 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000592/0.7505, allocations: 61.7 kB / 0.612 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.01755/0.7681, allocations: 7.504 MB / 0.6193 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001012/0.7691, allocations: 0.5737 MB / 0.6199 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000865/0.7699, allocations: 427.4 kB / 0.6203 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.7701, allocations: 309.1 kB / 0.6206 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003868/0.7739, allocations: 1.971 MB / 0.6225 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004726/0.7787, allocations: 2.858 MB / 0.6253 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007935/0.7866, allocations: 4.213 MB / 0.6294 GB, free: 3.598 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.56e-05/0.7866, allocations: 4 kB / 0.6294 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.2339/1.02, allocations: 6.088 MB / 0.6353 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.62e-05/1.021, allocations: 11.75 kB / 0.6354 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/1.021, allocations: 15.22 kB / 0.6354 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009981/1.022, allocations: 363.7 kB / 0.6357 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/1.024, allocations: 0.6988 MB / 0.6364 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005534/1.03, allocations: 4.611 MB / 0.6409 GB, free: 150.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009081/1.039, allocations: 0.6647 MB / 0.6415 GB, free: 150.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000533/1.039, allocations: 77.95 kB / 0.6416 GB, free: 150.7 MB / 0.5137 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.01546/1.055, allocations: 8.123 MB / 0.6496 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006836/1.061, allocations: 1.469 MB / 0.651 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01484/1.076, allocations: 6.018 MB / 0.6569 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/1.076, allocations: 14.06 kB / 0.6569 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/1.076, allocations: 7.938 kB / 0.6569 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/1.076, allocations: 9.969 kB / 0.6569 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04776/1.124, allocations: 18.52 MB / 0.675 GB, free: 140.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/1.124, allocations: 2.094 kB / 0.675 GB, free: 140.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/1.126, allocations: 0.5637 MB / 0.6755 GB, free: 140.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007791/1.127, allocations: 292.6 kB / 0.6758 GB, free: 139.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/1.127, allocations: 43.98 kB / 0.6759 GB, free: 139.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003586/1.13, allocations: 4.049 MB / 0.6798 GB, free: 135.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.13, allocations: 0 / 0.6798 GB, free: 135.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01666/1.147, allocations: 7.698 MB / 0.6873 GB, free: 128.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01309/1.16, allocations: 4.262 MB / 0.6915 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007312/1.167, allocations: 43.98 kB / 0.6915 GB, free: 123.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009661/1.177, allocations: 0.6552 MB / 0.6922 GB, free: 123.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001146/1.178, allocations: 436.7 kB / 0.6926 GB, free: 122.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001631/1.178, allocations: 44 kB / 0.6926 GB, free: 122.6 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.05538/1.234, allocations: 25.59 MB / 0.7176 GB, free: 97.09 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/1.234, allocations: 0 / 0.7176 GB, free: 97.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.013/1.247, allocations: 1.85 MB / 0.7194 GB, free: 95.23 MB / 0.5137 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.01849/1.265, allocations: 8.651 MB / 0.7279 GB, free: 86.74 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006824/1.272, allocations: 4.4 MB / 0.7322 GB, free: 82.33 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/1.272, allocations: 5.219 kB / 0.7322 GB, free: 82.32 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003195/1.275, allocations: 2.213 MB / 0.7343 GB, free: 80.09 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01916/1.294, allocations: 2.115 MB / 0.7364 GB, free: 78.02 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9803/2.275, allocations: 226.4 MB / 0.9575 GB, free: 93.74 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02385/2.299, allocations: 10.17 MB / 0.9674 GB, free: 83.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0198/2.318, allocations: 7.719 MB / 0.975 GB, free: 75.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01725/2.336, allocations: 6.08 MB / 0.9809 GB, free: 69.83 MB / 0.545 GB Notification: Performance of SimCode: time 1.272e-06/2.336, allocations: 0 / 0.9809 GB, free: 69.83 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8702/3.206, allocations: 330.7 MB / 1.304 GB, free: 129.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 151.4/154.6, allocations: 8.281 kB / 1.304 GB, free: 129.5 MB / 0.545 GB " [Timeout remaining time 505] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 162.96011944499332] 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'] 154.9894375409931 155.002743804 154.605322394 Calling exit ...