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.001312/0.001312, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001481/0.001481, allocations: 214.1 kB / 22.24 MB, free: 5.262 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.51/1.51, allocations: 230.6 MB / 256 MB, free: 7.785 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.147/0.147, allocations: 23.89 MB / 336.3 MB, free: 10.96 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.002092/0.002092, allocations: 63.91 kB / 471.1 MB, free: 7.5 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3291, allocations: 59.86 MB / 0.5185 GB, free: 9.621 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.07421/0.4033, allocations: 27.72 MB / 0.5456 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02686/0.4302, allocations: 19.03 MB / 0.5642 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001806/0.432, allocations: 27.75 kB / 0.5642 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.4335, allocations: 493.1 kB / 0.5647 GB, free: 10.24 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003444/0.437, allocations: 0.9595 MB / 0.5656 GB, free: 9.426 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009899/0.4469, allocations: 3.349 MB / 0.5689 GB, free: 6.266 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003073/0.4499, allocations: 1.813 MB / 0.5707 GB, free: 4.445 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001094/0.451, allocations: 0.7394 MB / 0.5714 GB, free: 3.684 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.4522, allocations: 0.8063 MB / 0.5722 GB, free: 2.875 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001382/0.4535, allocations: 0.8092 MB / 0.573 GB, free: 2.062 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002607/0.4538, allocations: 148 kB / 0.5731 GB, free: 1.918 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006246/0.46, allocations: 1.965 MB / 0.575 GB, free: 15.95 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005546/0.4606, allocations: 378.8 kB / 0.5754 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008604/0.4615, allocations: 0.6729 MB / 0.576 GB, free: 14.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01012/0.4716, allocations: 4.054 MB / 0.58 GB, free: 10.83 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.4716, allocations: 4 kB / 0.58 GB, free: 10.83 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4716, allocations: 0 / 0.58 GB, free: 10.83 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.793e-05/0.4716, allocations: 3.938 kB / 0.58 GB, free: 10.82 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.004/0.4756, allocations: 2.064 MB / 0.582 GB, free: 8.719 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/0.4757, allocations: 8.031 kB / 0.582 GB, free: 8.711 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002636/0.476, allocations: 186.3 kB / 0.5822 GB, free: 8.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001859/0.4778, allocations: 439.1 kB / 0.5826 GB, free: 8.09 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002046/0.4799, allocations: 0.9959 MB / 0.5836 GB, free: 7.066 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.4801, allocations: 205.5 kB / 0.5838 GB, free: 6.84 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002305/0.4803, allocations: 124 kB / 0.5839 GB, free: 6.719 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/0.4832, allocations: 1.768 MB / 0.5856 GB, free: 4.879 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.4832, allocations: 3.938 kB / 0.5856 GB, free: 4.875 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.4833, allocations: 52 kB / 0.5857 GB, free: 4.824 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.957e-05/0.4833, allocations: 32 kB / 0.5857 GB, free: 4.793 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003557/0.4869, allocations: 2.323 MB / 0.588 GB, free: 2.465 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008489/0.4954, allocations: 4.985 MB / 0.5929 GB, free: 13.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.4968, allocations: 0.6938 MB / 0.5935 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000605/0.4974, allocations: 332.4 kB / 0.5939 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007315/0.5047, allocations: 2.873 MB / 0.5967 GB, free: 9.406 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.5048, allocations: 42.55 kB / 0.5967 GB, free: 9.355 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 2.114e-06/0.5048, allocations: 0 / 0.5967 GB, free: 9.355 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001485/0.5062, allocations: 0.6504 MB / 0.5973 GB, free: 8.691 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.765e-05/0.5063, allocations: 110.8 kB / 0.5974 GB, free: 8.559 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/0.5079, allocations: 1.341 MB / 0.5987 GB, free: 7.207 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.705e-05/0.508, allocations: 41.7 kB / 0.5988 GB, free: 7.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007174/0.5087, allocations: 0.8685 MB / 0.5996 GB, free: 6.281 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.5089, allocations: 146.8 kB / 0.5998 GB, free: 6.137 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003743/0.5092, allocations: 291.4 kB / 0.6001 GB, free: 5.848 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.5094, allocations: 357.9 kB / 0.6004 GB, free: 5.492 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005501/0.51, allocations: 339.8 kB / 0.6007 GB, free: 5.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.5112, allocations: 1.16 MB / 0.6019 GB, free: 3.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001986/0.5132, allocations: 1.537 MB / 0.6034 GB, free: 1.645 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-05/0.5132, allocations: 8 kB / 0.6034 GB, free: 1.637 MB / 446.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002643/0.5159, allocations: 1.567 MB / 0.6049 GB, free: 60 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.5159, allocations: 22.75 kB / 0.6049 GB, free: 40 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-05/0.5159, allocations: 31.94 kB / 0.6049 GB, free: 8 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006476/0.5166, allocations: 153.4 kB / 0.6051 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.5177, allocations: 399.6 kB / 0.6055 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00326/0.521, allocations: 3.87 MB / 0.6092 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.5221, allocations: 194.9 kB / 0.6094 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.5222, allocations: 99.98 kB / 0.6095 GB, free: 11.01 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.0005748/0.5228, allocations: 339.4 kB / 0.6099 GB, free: 10.67 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/0.5231, allocations: 119.2 kB / 0.61 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001899/0.525, allocations: 0.949 MB / 0.6109 GB, free: 9.559 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.525, allocations: 4 kB / 0.6109 GB, free: 9.555 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.525, allocations: 0 / 0.6109 GB, free: 9.555 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.525, allocations: 0 / 0.6109 GB, free: 9.555 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002293/0.5273, allocations: 1.281 MB / 0.6121 GB, free: 8.188 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.5273, allocations: 4 kB / 0.6122 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.5275, allocations: 59.91 kB / 0.6122 GB, free: 8.125 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007526/0.5283, allocations: 179.5 kB / 0.6124 GB, free: 7.938 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.5283, allocations: 19.94 kB / 0.6124 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.5314, allocations: 3.738 MB / 0.6161 GB, free: 3.891 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.5314, allocations: 12.06 kB / 0.6161 GB, free: 3.879 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.5328, allocations: 0.9015 MB / 0.6169 GB, free: 2.922 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002865/0.5331, allocations: 111.2 kB / 0.617 GB, free: 2.812 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001403/0.5332, allocations: 23.88 kB / 0.6171 GB, free: 2.789 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003856/0.5336, allocations: 12 kB / 0.6171 GB, free: 2.777 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.686e-05/0.5337, allocations: 43.89 kB / 0.6171 GB, free: 2.734 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/0.5337, allocations: 20 kB / 0.6171 GB, free: 2.715 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001348/0.535, allocations: 0.9664 MB / 0.6181 GB, free: 1.746 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.535, allocations: 0 / 0.6181 GB, free: 1.746 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002608/0.5376, allocations: 0.7085 MB / 0.6188 GB, free: 1.035 MB / 462.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.003458/0.5411, allocations: 2.199 MB / 0.6209 GB, free: 14.77 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001918/0.543, allocations: 0.8305 MB / 0.6217 GB, free: 13.95 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.543, allocations: 0 / 0.6217 GB, free: 13.95 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005745/0.5436, allocations: 386.3 kB / 0.6221 GB, free: 13.54 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.5449, allocations: 186.7 kB / 0.6223 GB, free: 13.36 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/0.56, allocations: 10.48 MB / 0.6325 GB, free: 1.855 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005659/0.5605, allocations: 0.5035 MB / 0.633 GB, free: 1.316 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009537/0.5615, allocations: 315.4 kB / 0.6333 GB, free: 1.027 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006946/0.5622, allocations: 0.5344 MB / 0.6338 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5622, allocations: 7.875 kB / 0.6338 GB, free: 496 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07973/0.6419, allocations: 34.17 MB / 0.6672 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/14.83, allocations: 14.97 kB / 0.6672 GB, free: 14.55 MB / 0.5137 GB " [Timeout remaining time 645] (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: 17.719099624082446] Failed to read output from testmodel.py, exit status != 0: 15.009815932717174 15.031278311 14.556210205 Calling exit ...