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.001797/0.001797, 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.002344/0.002344, allocations: 213 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.527/1.527, allocations: 230.6 MB / 256 MB, free: 7.828 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.1466/0.1466, allocations: 23.89 MB / 336.3 MB, free: 10.99 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.002214/0.002214, allocations: 67.91 kB / 471.1 MB, free: 7.547 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.328, allocations: 59.86 MB / 0.5185 GB, free: 9.508 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.07318/0.4011, allocations: 27.19 MB / 0.5451 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0235/0.4246, allocations: 16.06 MB / 0.5608 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001197/0.4258, allocations: 23.81 kB / 0.5608 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.4272, allocations: 419.9 kB / 0.5612 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002517/0.4297, allocations: 0.8099 MB / 0.562 GB, free: 12.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008195/0.4379, allocations: 2.851 MB / 0.5648 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.4409, allocations: 1.636 MB / 0.5664 GB, free: 9 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.4421, allocations: 0.7234 MB / 0.5671 GB, free: 8.254 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.4432, allocations: 0.7245 MB / 0.5678 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001196/0.4444, allocations: 0.7351 MB / 0.5685 GB, free: 6.789 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002772/0.4447, allocations: 144 kB / 0.5686 GB, free: 6.648 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005444/0.4501, allocations: 1.669 MB / 0.5703 GB, free: 4.977 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004662/0.4506, allocations: 358.9 kB / 0.5706 GB, free: 4.625 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008481/0.4514, allocations: 0.6262 MB / 0.5712 GB, free: 3.996 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01058/0.462, allocations: 3.572 MB / 0.5747 GB, free: 420 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.462, allocations: 0 / 0.5747 GB, free: 420 kB / 414.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.462, allocations: 3.938 kB / 0.5747 GB, free: 416 kB / 414.1 MB Notification: Performance of Transformations before backend: time 5.145e-05/0.4621, allocations: 0 / 0.5747 GB, free: 416 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.004084/0.4661, allocations: 1.893 MB / 0.5766 GB, free: 14.47 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.4662, allocations: 8.031 kB / 0.5766 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002475/0.4664, allocations: 177.8 kB / 0.5767 GB, free: 14.28 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.4681, allocations: 391.3 kB / 0.5771 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00195/0.4701, allocations: 0.9197 MB / 0.578 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/0.4703, allocations: 205.3 kB / 0.5782 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002166/0.4705, allocations: 112 kB / 0.5783 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002859/0.4734, allocations: 1.664 MB / 0.5799 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.195e-05/0.4734, allocations: 3.938 kB / 0.5799 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.4735, allocations: 48 kB / 0.58 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.4735, allocations: 28 kB / 0.58 GB, free: 10.79 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003226/0.4768, allocations: 2.1 MB / 0.5821 GB, free: 8.691 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008034/0.4848, allocations: 4.856 MB / 0.5868 GB, free: 3.707 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.4862, allocations: 0.6898 MB / 0.5875 GB, free: 2.992 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006084/0.4868, allocations: 332.4 kB / 0.5878 GB, free: 2.66 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00663/0.4934, allocations: 2.656 MB / 0.5904 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.979e-05/0.4934, allocations: 46.48 kB / 0.5904 GB, free: 15.92 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000335/0.4938, allocations: 83.19 kB / 0.5905 GB, free: 15.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.184e-06/0.4938, allocations: 0 / 0.5905 GB, free: 15.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001431/0.4952, allocations: 0.6121 MB / 0.5911 GB, free: 15.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.4953, allocations: 110.8 kB / 0.5912 GB, free: 15.08 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.4968, allocations: 1.253 MB / 0.5924 GB, free: 13.81 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.4969, allocations: 29.7 kB / 0.5925 GB, free: 13.78 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000597/0.4975, allocations: 0.7983 MB / 0.5932 GB, free: 12.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.4976, allocations: 146.9 kB / 0.5934 GB, free: 12.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003481/0.4979, allocations: 270.7 kB / 0.5936 GB, free: 12.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.4981, allocations: 354.2 kB / 0.594 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005367/0.4986, allocations: 330.5 kB / 0.5943 GB, free: 11.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.4998, allocations: 1.054 MB / 0.5953 GB, free: 10.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001887/0.5017, allocations: 1.403 MB / 0.5967 GB, free: 8.699 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.666e-05/0.5017, allocations: 8 kB / 0.5967 GB, free: 8.691 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002666/0.5044, allocations: 1.46 MB / 0.5981 GB, free: 7.219 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/0.5044, allocations: 19.94 kB / 0.5981 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.494e-05/0.5044, allocations: 24 kB / 0.5982 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007756/0.5052, allocations: 153.6 kB / 0.5983 GB, free: 7.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.5064, allocations: 375.5 kB / 0.5987 GB, free: 6.652 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/0.5099, allocations: 3.862 MB / 0.6024 GB, free: 2.504 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.5111, allocations: 72.17 kB / 0.6025 GB, free: 2.434 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/0.5113, allocations: 87.98 kB / 0.6026 GB, free: 2.348 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.0006105/0.5119, allocations: 321.1 kB / 0.6029 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002307/0.5121, allocations: 103.3 kB / 0.603 GB, free: 1.922 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.5139, allocations: 0.8663 MB / 0.6039 GB, free: 1.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.5139, allocations: 8 kB / 0.6039 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.5139, allocations: 3.938 kB / 0.6039 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.5139, allocations: 0 / 0.6039 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.5161, allocations: 1.169 MB / 0.605 GB, free: 15.76 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.5161, allocations: 4 kB / 0.605 GB, free: 15.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.5163, allocations: 60.09 kB / 0.6051 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007454/0.5171, allocations: 179 kB / 0.6052 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.5171, allocations: 12 kB / 0.6052 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003211/0.5203, allocations: 3.748 MB / 0.6089 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.5203, allocations: 4 kB / 0.6089 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.5218, allocations: 0.8557 MB / 0.6097 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/0.522, allocations: 103.3 kB / 0.6098 GB, free: 10.44 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.5222, allocations: 12 kB / 0.6099 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003736/0.5226, allocations: 12.16 kB / 0.6099 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.576e-05/0.5226, allocations: 39.83 kB / 0.6099 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.649e-05/0.5227, allocations: 23.98 kB / 0.6099 GB, free: 10.36 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001193/0.5239, allocations: 0.8888 MB / 0.6108 GB, free: 9.461 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5239, allocations: 0 / 0.6108 GB, free: 9.461 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002147/0.526, allocations: 0.6228 MB / 0.6114 GB, free: 8.836 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.003158/0.5292, allocations: 2.052 MB / 0.6134 GB, free: 6.727 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.5309, allocations: 0.7739 MB / 0.6142 GB, free: 5.957 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5309, allocations: 0 / 0.6142 GB, free: 5.957 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005361/0.5314, allocations: 378.8 kB / 0.6145 GB, free: 5.562 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.5325, allocations: 174.1 kB / 0.6147 GB, free: 5.398 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/0.5459, allocations: 9.667 MB / 0.6241 GB, free: 10.81 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005615/0.5465, allocations: 476.8 kB / 0.6246 GB, free: 10.31 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008778/0.5474, allocations: 279.7 kB / 0.6249 GB, free: 10.05 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006518/0.548, allocations: 0.4914 MB / 0.6253 GB, free: 9.559 MB / 478.1 MB Notification: Performance of SimCode: time 1.193e-06/0.548, allocations: 7.938 kB / 0.6253 GB, free: 9.551 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07688/0.6249, allocations: 30.67 MB / 0.6553 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/14.75, allocations: 4 kB / 0.6553 GB, free: 11.12 MB / 0.4981 GB " [Timeout remaining time 645] (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: 17.688683559186757] Failed to read output from testmodel.py, exit status != 0: 14.89058996643871 14.919044415 14.451767559 Calling exit ...