Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001948/0.001948, allocations: 104.2 kB / 16.45 MB, free: 6.449 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.002637/0.002637, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.492/1.492, allocations: 230.6 MB / 252.8 MB, free: 9.113 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1372/0.1372, allocations: 23.89 MB / 332.7 MB, free: 12.32 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_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.002207/0.002207, allocations: 79.89 kB / 466 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3062, allocations: 59.81 MB / 0.5135 GB, free: 9.203 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.04143/0.3477, allocations: 27.77 MB / 0.5407 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02491/0.3726, allocations: 18.27 MB / 0.5585 GB, free: 12.24 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.3738, allocations: 23.81 kB / 0.5585 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001743/0.3755, allocations: 483.5 kB / 0.559 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003085/0.3786, allocations: 0.8434 MB / 0.5598 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008922/0.3875, allocations: 2.811 MB / 0.5625 GB, free: 8.789 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002971/0.3905, allocations: 1.635 MB / 0.5641 GB, free: 7.309 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.3918, allocations: 0.7574 MB / 0.5649 GB, free: 6.703 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001172/0.393, allocations: 0.73 MB / 0.5656 GB, free: 6.035 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001395/0.3944, allocations: 0.8211 MB / 0.5664 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000356/0.3947, allocations: 140 kB / 0.5665 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005783/0.4005, allocations: 1.786 MB / 0.5683 GB, free: 3.285 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005127/0.401, allocations: 346.9 kB / 0.5686 GB, free: 2.945 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.4022, allocations: 0.7543 MB / 0.5693 GB, free: 2.188 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007964/0.4101, allocations: 3.579 MB / 0.5728 GB, free: 14.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4101, allocations: 0 / 0.5728 GB, free: 14.59 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4101, allocations: 0 / 0.5728 GB, free: 14.59 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.816e-05/0.4102, allocations: 0 / 0.5728 GB, free: 14.59 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.004002/0.4142, allocations: 1.98 MB / 0.5748 GB, free: 12.55 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.4143, allocations: 8.031 kB / 0.5748 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002677/0.4145, allocations: 177.8 kB / 0.575 GB, free: 12.36 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/0.4163, allocations: 391.3 kB / 0.5753 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001977/0.4183, allocations: 0.9854 MB / 0.5763 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.4185, allocations: 149.9 kB / 0.5764 GB, free: 10.79 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002872/0.4188, allocations: 116 kB / 0.5765 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003109/0.4219, allocations: 1.656 MB / 0.5782 GB, free: 8.949 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.107e-05/0.4219, allocations: 3.938 kB / 0.5782 GB, free: 8.945 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001504/0.4221, allocations: 52 kB / 0.5782 GB, free: 8.895 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.756e-05/0.4221, allocations: 39.92 kB / 0.5782 GB, free: 8.855 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003526/0.4256, allocations: 2.1 MB / 0.5803 GB, free: 6.754 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009738/0.4354, allocations: 5.445 MB / 0.5856 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/0.4368, allocations: 0.686 MB / 0.5863 GB, free: 412 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006838/0.4375, allocations: 336.3 kB / 0.5866 GB, free: 68 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00916/0.4467, allocations: 5.059 MB / 0.5915 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.4467, allocations: 46.5 kB / 0.5916 GB, free: 10.37 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003837/0.4471, allocations: 79.19 kB / 0.5917 GB, free: 10.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.455e-06/0.4471, allocations: 0 / 0.5917 GB, free: 10.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001736/0.4489, allocations: 0.7428 MB / 0.5924 GB, free: 9.496 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.228e-05/0.4489, allocations: 111.1 kB / 0.5925 GB, free: 9.363 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.4507, allocations: 1.206 MB / 0.5937 GB, free: 8.141 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/0.4507, allocations: 33.7 kB / 0.5937 GB, free: 8.102 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006828/0.4514, allocations: 0.7984 MB / 0.5945 GB, free: 7.293 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.4516, allocations: 138.9 kB / 0.5946 GB, free: 7.156 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004135/0.452, allocations: 274.7 kB / 0.5949 GB, free: 6.883 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.4521, allocations: 349.9 kB / 0.5952 GB, free: 6.535 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005673/0.4527, allocations: 322.4 kB / 0.5955 GB, free: 6.219 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001265/0.454, allocations: 1.05 MB / 0.5965 GB, free: 4.801 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/0.4558, allocations: 1.403 MB / 0.5979 GB, free: 3.031 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-05/0.4559, allocations: 11.94 kB / 0.5979 GB, free: 3.023 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002566/0.4584, allocations: 1.436 MB / 0.5993 GB, free: 1.574 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.4585, allocations: 19.94 kB / 0.5994 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.592e-05/0.4585, allocations: 28 kB / 0.5994 GB, free: 1.527 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006534/0.4591, allocations: 149.6 kB / 0.5995 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.4604, allocations: 379.6 kB / 0.5999 GB, free: 1.004 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003571/0.4639, allocations: 4.073 MB / 0.6039 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008834/0.4648, allocations: 76.03 kB / 0.6039 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.465, allocations: 91.98 kB / 0.604 GB, free: 12.43 MB / 462.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.0004941/0.4655, allocations: 317.1 kB / 0.6043 GB, free: 12.11 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002272/0.4657, allocations: 107.2 kB / 0.6044 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001838/0.4675, allocations: 0.8507 MB / 0.6053 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.4675, allocations: 4 kB / 0.6053 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.4675, allocations: 8 kB / 0.6053 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4675, allocations: 3.984 kB / 0.6053 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002323/0.4699, allocations: 1.263 MB / 0.6065 GB, free: 9.754 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/0.4699, allocations: 4 kB / 0.6065 GB, free: 9.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002788/0.4702, allocations: 59.91 kB / 0.6066 GB, free: 9.691 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000779/0.4709, allocations: 175.2 kB / 0.6067 GB, free: 9.508 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.471, allocations: 12 kB / 0.6067 GB, free: 9.496 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003415/0.4744, allocations: 3.947 MB / 0.6106 GB, free: 5.203 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4744, allocations: 4.031 kB / 0.6106 GB, free: 5.199 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.4758, allocations: 0.8812 MB / 0.6115 GB, free: 4.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002865/0.4761, allocations: 176.3 kB / 0.6116 GB, free: 4.078 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.4763, allocations: 8 kB / 0.6116 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004099/0.4767, allocations: 11.98 kB / 0.6117 GB, free: 4.059 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-05/0.4768, allocations: 39.97 kB / 0.6117 GB, free: 4.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/0.4768, allocations: 12 kB / 0.6117 GB, free: 4.008 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001302/0.4781, allocations: 0.8887 MB / 0.6126 GB, free: 3.113 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4781, allocations: 0 / 0.6126 GB, free: 3.113 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002105/0.4802, allocations: 0.6267 MB / 0.6132 GB, free: 2.484 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.003227/0.4834, allocations: 2.049 MB / 0.6152 GB, free: 380 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001831/0.4853, allocations: 0.7695 MB / 0.6159 GB, free: 15.61 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4853, allocations: 0 / 0.6159 GB, free: 15.61 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006237/0.4859, allocations: 385.2 kB / 0.6163 GB, free: 15.21 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.487, allocations: 170.1 kB / 0.6165 GB, free: 15.05 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01635/0.5034, allocations: 9.633 MB / 0.6259 GB, free: 4.492 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008526/0.5043, allocations: 1.059 MB / 0.6269 GB, free: 3.406 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008701/0.5051, allocations: 282.6 kB / 0.6272 GB, free: 3.145 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007053/0.5058, allocations: 499.2 kB / 0.6276 GB, free: 2.656 MB / 478.1 MB Notification: Performance of SimCode: time 7.42e-07/0.5058, allocations: 0 / 0.6276 GB, free: 2.656 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1091/0.6149, allocations: 29.67 MB / 0.6566 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.35/22.96, allocations: 11.86 kB / 0.6566 GB, free: 5.188 MB / 0.4981 GB " [Timeout remaining time 637] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 25.79811061406508] Failed to read output from testmodel.py, exit status != 0: 23.078844698145986 23.100120748 22.685889848 Calling exit ...