Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.001262/0.001262, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001414/0.001414, allocations: 216.8 kB / 22.25 MB, free: 5.078 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.333/1.333, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1249/0.1249, allocations: 23.86 MB / 336.3 MB, free: 11.25 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) 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(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 71.89 kB / 471.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2687, allocations: 59.85 MB / 0.5186 GB, free: 9.641 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell): time 0.03368/0.3023, allocations: 28.42 MB / 0.5463 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02626/0.3286, allocations: 21.76 MB / 0.5676 GB, free: 7.512 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.3297, allocations: 27.75 kB / 0.5676 GB, free: 7.484 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001411/0.3311, allocations: 0.5322 MB / 0.5681 GB, free: 7.062 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002542/0.3336, allocations: 1.01 MB / 0.5691 GB, free: 6.199 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008188/0.3418, allocations: 3.341 MB / 0.5724 GB, free: 3.086 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0023/0.3441, allocations: 1.809 MB / 0.5741 GB, free: 1.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008999/0.345, allocations: 0.7549 MB / 0.5749 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008242/0.3458, allocations: 0.8024 MB / 0.5757 GB, free: 15.69 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.347, allocations: 0.9029 MB / 0.5765 GB, free: 14.78 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001985/0.3472, allocations: 148 kB / 0.5767 GB, free: 14.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005031/0.3522, allocations: 2.083 MB / 0.5787 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003488/0.3525, allocations: 386.8 kB / 0.5791 GB, free: 12.17 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007379/0.3533, allocations: 0.8088 MB / 0.5799 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005638/0.3589, allocations: 4.062 MB / 0.5838 GB, free: 7.281 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3589, allocations: 0 / 0.5838 GB, free: 7.281 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3589, allocations: 0 / 0.5838 GB, free: 7.281 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.095e-05/0.3589, allocations: 0 / 0.5838 GB, free: 7.281 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003186/0.3621, allocations: 2.084 MB / 0.5859 GB, free: 5.156 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.3622, allocations: 8.031 kB / 0.5859 GB, free: 5.148 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002156/0.3624, allocations: 190.3 kB / 0.5861 GB, free: 4.953 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001716/0.3641, allocations: 439.1 kB / 0.5865 GB, free: 4.523 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.3658, allocations: 0.9881 MB / 0.5875 GB, free: 3.508 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.366, allocations: 217.4 kB / 0.5877 GB, free: 3.27 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002032/0.3662, allocations: 124 kB / 0.5878 GB, free: 3.148 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002627/0.3688, allocations: 1.756 MB / 0.5895 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/0.3689, allocations: 3.938 kB / 0.5895 GB, free: 1.316 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/0.369, allocations: 56 kB / 0.5895 GB, free: 1.262 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.902e-05/0.369, allocations: 32 kB / 0.5896 GB, free: 1.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003331/0.3723, allocations: 2.338 MB / 0.5919 GB, free: 14.89 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007816/0.3802, allocations: 5.52 MB / 0.5973 GB, free: 9.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.3815, allocations: 0.7045 MB / 0.5979 GB, free: 8.453 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005775/0.382, allocations: 332.4 kB / 0.5983 GB, free: 8.121 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006703/0.3887, allocations: 2.99 MB / 0.6012 GB, free: 5.105 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.3888, allocations: 38.56 kB / 0.6012 GB, free: 5.059 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 1.864e-06/0.3888, allocations: 3.938 kB / 0.6012 GB, free: 5.055 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001411/0.3902, allocations: 0.6504 MB / 0.6019 GB, free: 4.391 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.812e-05/0.3903, allocations: 110.8 kB / 0.602 GB, free: 4.258 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.3918, allocations: 1.307 MB / 0.6032 GB, free: 2.941 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.3918, allocations: 29.7 kB / 0.6033 GB, free: 2.906 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006532/0.3925, allocations: 0.8607 MB / 0.6041 GB, free: 2.035 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.3926, allocations: 159.1 kB / 0.6043 GB, free: 1.879 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003596/0.393, allocations: 295.3 kB / 0.6045 GB, free: 1.586 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3931, allocations: 357.9 kB / 0.6049 GB, free: 1.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005765/0.3937, allocations: 339.8 kB / 0.6052 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.3949, allocations: 1.156 MB / 0.6063 GB, free: 15.33 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/0.3967, allocations: 1.541 MB / 0.6078 GB, free: 13.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/0.3968, allocations: 16 kB / 0.6079 GB, free: 13.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002338/0.3991, allocations: 1.563 MB / 0.6094 GB, free: 11.79 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.3991, allocations: 26.75 kB / 0.6094 GB, free: 11.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/0.3992, allocations: 28 kB / 0.6094 GB, free: 11.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00058/0.3997, allocations: 158.1 kB / 0.6096 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.4009, allocations: 395.4 kB / 0.61 GB, free: 11.19 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002989/0.4038, allocations: 3.881 MB / 0.6137 GB, free: 7.023 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008511/0.4047, allocations: 190.8 kB / 0.6139 GB, free: 6.836 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/0.4048, allocations: 99.98 kB / 0.614 GB, free: 6.738 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004589/0.4053, allocations: 337.1 kB / 0.6143 GB, free: 6.398 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.4055, allocations: 119.2 kB / 0.6145 GB, free: 6.281 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.4072, allocations: 0.938 MB / 0.6154 GB, free: 5.293 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.4072, allocations: 4 kB / 0.6154 GB, free: 5.289 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.4072, allocations: 0 / 0.6154 GB, free: 5.289 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4072, allocations: 0 / 0.6154 GB, free: 5.289 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/0.4094, allocations: 1.349 MB / 0.6167 GB, free: 3.852 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4094, allocations: 4.062 kB / 0.6167 GB, free: 3.848 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002479/0.4096, allocations: 63.91 kB / 0.6168 GB, free: 3.785 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006888/0.4103, allocations: 171.3 kB / 0.6169 GB, free: 3.605 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.4104, allocations: 16 kB / 0.6169 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002938/0.4133, allocations: 3.742 MB / 0.6206 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.4133, allocations: 4 kB / 0.6206 GB, free: 15.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.4146, allocations: 0.9082 MB / 0.6215 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002397/0.4148, allocations: 119.1 kB / 0.6216 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.415, allocations: 19.89 kB / 0.6216 GB, free: 14.46 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003667/0.4153, allocations: 8 kB / 0.6216 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.88e-05/0.4154, allocations: 43.88 kB / 0.6217 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.4154, allocations: 16.06 kB / 0.6217 GB, free: 14.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001224/0.4166, allocations: 0.9703 MB / 0.6226 GB, free: 13.42 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4166, allocations: 0 / 0.6226 GB, free: 13.42 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001933/0.4186, allocations: 0.7046 MB / 0.6233 GB, free: 12.71 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (cathode.temperature,anode.temperature) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002877/0.4215, allocations: 2.222 MB / 0.6255 GB, free: 10.42 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.4231, allocations: 0.8271 MB / 0.6263 GB, free: 9.602 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4231, allocations: 0 / 0.6263 GB, free: 9.602 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005297/0.4236, allocations: 393.2 kB / 0.6267 GB, free: 9.191 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4247, allocations: 190.9 kB / 0.6269 GB, free: 9.012 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.4382, allocations: 10.47 MB / 0.6371 GB, free: 13.51 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007658/0.4389, allocations: 1.095 MB / 0.6381 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008755/0.4398, allocations: 310.9 kB / 0.6384 GB, free: 12.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006776/0.4405, allocations: 0.5461 MB / 0.639 GB, free: 11.55 MB / 494.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4405, allocations: 0 / 0.639 GB, free: 11.55 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07724/0.5177, allocations: 33.95 MB / 0.6721 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.26/24.77, allocations: 10.75 kB / 0.6721 GB, free: 9.762 MB / 0.5137 GB " [Timeout remaining time 635] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 27.315784571997938] Failed to read output from testmodel.py, exit status != 0: 24.917235782995704 24.935116396 24.57275434 Calling exit ...