Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.001238/0.001238, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001432/0.001432, allocations: 218.9 kB / 22.25 MB, free: 5.25 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.379/1.379, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.1351/0.1351, allocations: 23.88 MB / 336.3 MB, free: 10.95 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.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",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.001936/0.001936, allocations: 67.91 kB / 471.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3059, allocations: 59.86 MB / 0.5185 GB, free: 9.555 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.StandardElectrochemicalCell2): time 0.07098/0.3769, allocations: 27.11 MB / 0.545 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02141/0.3983, allocations: 16.05 MB / 0.5607 GB, free: 13.94 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.3997, allocations: 23.81 kB / 0.5607 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.401, allocations: 435.1 kB / 0.5611 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002718/0.4037, allocations: 0.8102 MB / 0.5619 GB, free: 12.9 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008086/0.4118, allocations: 2.847 MB / 0.5647 GB, free: 10.51 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003202/0.415, allocations: 1.633 MB / 0.5663 GB, free: 8.969 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001155/0.4162, allocations: 0.7467 MB / 0.567 GB, free: 8.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008945/0.4171, allocations: 0.7206 MB / 0.5677 GB, free: 7.477 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.4182, allocations: 0.8211 MB / 0.5685 GB, free: 6.652 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002337/0.4185, allocations: 140 kB / 0.5687 GB, free: 6.516 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004703/0.4232, allocations: 1.708 MB / 0.5703 GB, free: 4.805 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004152/0.4236, allocations: 362.8 kB / 0.5707 GB, free: 4.449 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007051/0.4243, allocations: 0.6146 MB / 0.5713 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007563/0.4319, allocations: 3.587 MB / 0.5748 GB, free: 236 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4319, allocations: 0 / 0.5748 GB, free: 236 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4319, allocations: 0 / 0.5748 GB, free: 236 kB / 414.1 MB Notification: Performance of Transformations before backend: time 2.359e-05/0.4319, allocations: 0 / 0.5748 GB, free: 236 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003636/0.4355, allocations: 1.885 MB / 0.5766 GB, free: 14.3 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.4356, allocations: 12.03 kB / 0.5766 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002265/0.4358, allocations: 177.8 kB / 0.5768 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.4373, allocations: 395.3 kB / 0.5772 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.4391, allocations: 0.9119 MB / 0.5781 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.4393, allocations: 201.3 kB / 0.5783 GB, free: 12.56 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002015/0.4395, allocations: 120 kB / 0.5784 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002512/0.442, allocations: 1.664 MB / 0.58 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.4421, allocations: 8 kB / 0.58 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.4422, allocations: 44 kB / 0.58 GB, free: 10.65 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.4422, allocations: 32 kB / 0.5801 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003016/0.4452, allocations: 2.104 MB / 0.5821 GB, free: 8.516 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007611/0.4528, allocations: 4.848 MB / 0.5869 GB, free: 3.539 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.4542, allocations: 0.6956 MB / 0.5875 GB, free: 2.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005547/0.4547, allocations: 332.3 kB / 0.5879 GB, free: 2.488 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006324/0.461, allocations: 2.656 MB / 0.5905 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.4611, allocations: 38.56 kB / 0.5905 GB, free: 15.76 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002803/0.4614, allocations: 83.19 kB / 0.5906 GB, free: 15.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 1.753e-06/0.4614, allocations: 0 / 0.5906 GB, free: 15.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001369/0.4627, allocations: 0.616 MB / 0.5912 GB, free: 15.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/0.4628, allocations: 115 kB / 0.5913 GB, free: 14.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.4643, allocations: 1.249 MB / 0.5925 GB, free: 13.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.4643, allocations: 29.7 kB / 0.5925 GB, free: 13.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006223/0.4649, allocations: 0.8023 MB / 0.5933 GB, free: 12.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.4651, allocations: 143 kB / 0.5934 GB, free: 12.65 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003478/0.4654, allocations: 270.7 kB / 0.5937 GB, free: 12.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.4656, allocations: 353.9 kB / 0.594 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005012/0.4661, allocations: 322.5 kB / 0.5943 GB, free: 11.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.4672, allocations: 1.058 MB / 0.5954 GB, free: 10.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001619/0.4688, allocations: 1.407 MB / 0.5968 GB, free: 8.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.29e-05/0.4688, allocations: 12 kB / 0.5968 GB, free: 8.508 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002183/0.471, allocations: 1.451 MB / 0.5982 GB, free: 7.043 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.471, allocations: 23.92 kB / 0.5982 GB, free: 7.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.627e-05/0.4711, allocations: 28.81 kB / 0.5982 GB, free: 6.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005806/0.4716, allocations: 149.6 kB / 0.5984 GB, free: 6.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.4727, allocations: 371.4 kB / 0.5987 GB, free: 6.477 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003092/0.4758, allocations: 3.878 MB / 0.6025 GB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008499/0.4767, allocations: 71.86 kB / 0.6026 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/0.4768, allocations: 87.98 kB / 0.6027 GB, free: 2.156 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * 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.0004683/0.4773, allocations: 313.3 kB / 0.603 GB, free: 1.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.4775, allocations: 107.3 kB / 0.6031 GB, free: 1.734 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/0.4791, allocations: 0.8642 MB / 0.6039 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.4791, allocations: 0 / 0.6039 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.4791, allocations: 4 kB / 0.6039 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.4791, allocations: 0 / 0.6039 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001982/0.481, allocations: 1.176 MB / 0.6051 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4811, allocations: 0 / 0.6051 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.4813, allocations: 59.91 kB / 0.6051 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006811/0.482, allocations: 179.2 kB / 0.6053 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.482, allocations: 12 kB / 0.6053 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002819/0.4848, allocations: 3.737 MB / 0.609 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.4848, allocations: 3.984 kB / 0.609 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.4861, allocations: 0.8639 MB / 0.6098 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002284/0.4863, allocations: 103.2 kB / 0.6099 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.4864, allocations: 15.92 kB / 0.6099 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.4868, allocations: 12 kB / 0.6099 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.4868, allocations: 35.89 kB / 0.61 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.4869, allocations: 12 kB / 0.61 GB, free: 10.19 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.488, allocations: 0.9005 MB / 0.6109 GB, free: 9.281 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.488, allocations: 0 / 0.6109 GB, free: 9.281 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002029/0.49, allocations: 0.6306 MB / 0.6115 GB, free: 8.648 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (27): * Single equations (assignments): 23 * 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.002639/0.4927, allocations: 2.054 MB / 0.6135 GB, free: 6.539 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.4942, allocations: 0.7651 MB / 0.6142 GB, free: 5.781 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4942, allocations: 192 / 0.6142 GB, free: 5.781 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005044/0.4947, allocations: 393 kB / 0.6146 GB, free: 5.371 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.4958, allocations: 163.9 kB / 0.6148 GB, free: 5.215 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.5082, allocations: 9.66 MB / 0.6242 GB, free: 10.63 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/0.5087, allocations: 480.8 kB / 0.6246 GB, free: 10.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008139/0.5095, allocations: 281.9 kB / 0.6249 GB, free: 9.867 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006114/0.5101, allocations: 499.2 kB / 0.6254 GB, free: 9.379 MB / 478.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5101, allocations: 0 / 0.6254 GB, free: 9.379 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07583/0.5859, allocations: 31.05 MB / 0.6557 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.6, allocations: 8.062 kB / 0.6557 GB, free: 10.56 MB / 0.4981 GB " [Timeout remaining time 646] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2_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_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.218698464974295] Failed to read output from testmodel.py, exit status != 0: 13.72523137999815 13.739583825 13.304725763 Calling exit ...