Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.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.00124/0.00124, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001572/0.001572, allocations: 219.8 kB / 22.24 MB, free: 5.102 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.356/1.356, allocations: 230.6 MB / 256 MB, free: 7.805 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.1306/0.1306, allocations: 23.88 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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",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.001971/0.001971, allocations: 71.91 kB / 471.1 MB, free: 7.523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3123, allocations: 59.85 MB / 0.5185 GB, free: 9.531 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.H2O_ElectrochemicalCell): time 0.06979/0.3821, allocations: 28.17 MB / 0.546 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02401/0.4061, allocations: 17.13 MB / 0.5628 GB, free: 12 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002056/0.4082, allocations: 27.75 kB / 0.5628 GB, free: 11.97 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.4096, allocations: 467 kB / 0.5632 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003804/0.4134, allocations: 1.197 MB / 0.5644 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008042/0.4214, allocations: 2.902 MB / 0.5672 GB, free: 8.012 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003694/0.4251, allocations: 2.094 MB / 0.5693 GB, free: 5.906 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.4267, allocations: 1.08 MB / 0.5703 GB, free: 4.777 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.4278, allocations: 0.9387 MB / 0.5713 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001351/0.4292, allocations: 1.066 MB / 0.5723 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003373/0.4295, allocations: 200 kB / 0.5725 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005206/0.4347, allocations: 2.001 MB / 0.5744 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004501/0.4352, allocations: 474.5 kB / 0.5749 GB, free: 104 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000888/0.4361, allocations: 0.8248 MB / 0.5757 GB, free: 15.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007541/0.4436, allocations: 4.354 MB / 0.58 GB, free: 10.9 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.4436, allocations: 4 kB / 0.58 GB, free: 10.9 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4436, allocations: 0 / 0.58 GB, free: 10.9 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.995e-05/0.4436, allocations: 0 / 0.58 GB, free: 10.9 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.00422/0.4479, allocations: 2.324 MB / 0.5822 GB, free: 8.531 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.4479, allocations: 8.031 kB / 0.5822 GB, free: 8.523 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002785/0.4482, allocations: 240.8 kB / 0.5825 GB, free: 8.277 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001567/0.4497, allocations: 451 kB / 0.5829 GB, free: 7.836 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.4516, allocations: 1.015 MB / 0.5839 GB, free: 6.789 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.4518, allocations: 238.2 kB / 0.5841 GB, free: 6.531 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002625/0.4521, allocations: 168 kB / 0.5843 GB, free: 6.367 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003233/0.4553, allocations: 2.233 MB / 0.5865 GB, free: 4.07 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.4554, allocations: 3.938 kB / 0.5865 GB, free: 4.066 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001496/0.4555, allocations: 72 kB / 0.5865 GB, free: 3.996 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.635e-05/0.4556, allocations: 44 kB / 0.5866 GB, free: 3.953 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004073/0.4596, allocations: 2.695 MB / 0.5892 GB, free: 1.25 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.471, allocations: 6.333 MB / 0.5954 GB, free: 10.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001727/0.4727, allocations: 0.9794 MB / 0.5963 GB, free: 9.758 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008216/0.4735, allocations: 0.5135 MB / 0.5968 GB, free: 9.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006622/0.4802, allocations: 2.986 MB / 0.5998 GB, free: 6.223 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.4802, allocations: 43.16 kB / 0.5998 GB, free: 6.172 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000397/0.4806, allocations: 115 kB / 0.5999 GB, free: 6.059 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.274e-06/0.4806, allocations: 0 / 0.5999 GB, free: 6.059 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01597/0.4966, allocations: 4.566 MB / 0.6044 GB, free: 1.434 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.052e-05/0.4967, allocations: 127.9 kB / 0.6045 GB, free: 1.281 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001796/0.4985, allocations: 1.54 MB / 0.606 GB, free: 15.72 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.282e-05/0.4985, allocations: 45.7 kB / 0.606 GB, free: 15.67 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006726/0.4992, allocations: 0.92 MB / 0.6069 GB, free: 14.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003032/0.4995, allocations: 357 kB / 0.6073 GB, free: 14.39 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004869/0.5, allocations: 359.3 kB / 0.6076 GB, free: 14.03 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.5001, allocations: 305.1 kB / 0.6079 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009761/0.5011, allocations: 0.6325 MB / 0.6085 GB, free: 13.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/0.5028, allocations: 1.345 MB / 0.6098 GB, free: 11.42 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002641/0.5054, allocations: 1.937 MB / 0.6117 GB, free: 9.152 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.5054, allocations: 4 kB / 0.6117 GB, free: 9.148 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005273/0.5107, allocations: 2.379 MB / 0.6141 GB, free: 6.746 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.873e-05/0.5107, allocations: 23.92 kB / 0.6141 GB, free: 6.723 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.07e-05/0.5108, allocations: 28.47 kB / 0.6141 GB, free: 6.695 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002219/0.513, allocations: 378.8 kB / 0.6145 GB, free: 6.312 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002541/0.5155, allocations: 0.5656 MB / 0.615 GB, free: 5.746 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008823/0.5243, allocations: 7.453 MB / 0.6223 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.5257, allocations: 88.03 kB / 0.6224 GB, free: 13.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001895/0.5259, allocations: 108 kB / 0.6225 GB, free: 13.59 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006416/0.5266, allocations: 367.9 kB / 0.6228 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002875/0.5268, allocations: 135.1 kB / 0.623 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004232/0.5311, allocations: 1.535 MB / 0.6245 GB, free: 11.53 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.5311, allocations: 11.94 kB / 0.6245 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5311, allocations: 4 kB / 0.6245 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.5311, allocations: 7.922 kB / 0.6245 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006866/0.538, allocations: 2.819 MB / 0.6272 GB, free: 8.539 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/0.538, allocations: 8.188 kB / 0.6272 GB, free: 8.531 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000856/0.5388, allocations: 215.7 kB / 0.6275 GB, free: 8.32 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002392/0.5412, allocations: 400.8 kB / 0.6278 GB, free: 7.91 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.5413, allocations: 39.98 kB / 0.6279 GB, free: 7.871 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008292/0.5496, allocations: 7.264 MB / 0.635 GB, free: 92 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.5496, allocations: 16 kB / 0.635 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00472/0.5544, allocations: 2.164 MB / 0.6371 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.5547, allocations: 127.2 kB / 0.6372 GB, free: 13.66 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.5549, allocations: 31.98 kB / 0.6372 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006205/0.5555, allocations: 24 kB / 0.6373 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.5557, allocations: 120.2 kB / 0.6374 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.611e-05/0.5558, allocations: 51.98 kB / 0.6374 GB, free: 13.44 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001256/0.557, allocations: 1.029 MB / 0.6384 GB, free: 12.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.557, allocations: 0 / 0.6384 GB, free: 12.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002582/0.5596, allocations: 0.826 MB / 0.6392 GB, free: 11.58 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn) * 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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006551/0.5662, allocations: 3.506 MB / 0.6427 GB, free: 7.93 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003308/0.5695, allocations: 1.703 MB / 0.6443 GB, free: 6.207 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/0.5695, allocations: 4.125 kB / 0.6443 GB, free: 6.203 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.5709, allocations: 0.9606 MB / 0.6453 GB, free: 5.191 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/0.5724, allocations: 227.7 kB / 0.6455 GB, free: 4.969 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02341/0.5958, allocations: 13.47 MB / 0.6587 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007556/0.5965, allocations: 0.6332 MB / 0.6593 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001064/0.5976, allocations: 318.5 kB / 0.6596 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008859/0.5985, allocations: 0.6671 MB / 0.6602 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of SimCode: time 9.62e-07/0.5985, allocations: 0 / 0.6602 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09297/0.6915, allocations: 42.89 MB / 0.7021 GB, free: 10.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/14.44, allocations: 11.42 kB / 0.7021 GB, free: 10.2 MB / 0.545 GB " [Timeout remaining time 645] (rm -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell_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_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.064258949976647] Failed to read output from testmodel.py, exit status != 0: 14.58184094799799 14.597222102 14.149979896 Calling exit ...