Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.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.001884/0.001884, allocations: 103.6 kB / 18.95 MB, free: 2.664 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.002488/0.002488, allocations: 210.3 kB / 22.24 MB, free: 5.266 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.557/1.557, allocations: 230.6 MB / 256 MB, free: 7.781 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.1454/0.1454, allocations: 23.99 MB / 336.4 MB, free: 10.85 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_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.002167/0.002167, allocations: 67.89 kB / 471.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3234, allocations: 59.89 MB / 0.5187 GB, free: 9.453 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.ElectrochemicalCell): time 0.08085/0.4043, allocations: 29.94 MB / 0.548 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03657/0.4408, allocations: 25.3 MB / 0.5727 GB, free: 2.492 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001924/0.4428, allocations: 31.75 kB / 0.5727 GB, free: 2.461 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002046/0.4448, allocations: 0.6008 MB / 0.5733 GB, free: 1.855 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007748/0.4526, allocations: 2.165 MB / 0.5754 GB, free: 15.68 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01297/0.4655, allocations: 3.93 MB / 0.5792 GB, free: 11.72 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004667/0.4702, allocations: 2.844 MB / 0.582 GB, free: 8.867 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002259/0.4724, allocations: 1.341 MB / 0.5833 GB, free: 7.477 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002122/0.4746, allocations: 1.344 MB / 0.5846 GB, free: 6.129 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002484/0.4771, allocations: 1.335 MB / 0.5859 GB, free: 4.789 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000762/0.4778, allocations: 264 kB / 0.5862 GB, free: 4.531 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008146/0.486, allocations: 2.96 MB / 0.5891 GB, free: 1.566 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009822/0.4869, allocations: 0.5998 MB / 0.5897 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002098/0.489, allocations: 1.101 MB / 0.5908 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01483/0.5039, allocations: 6.194 MB / 0.5968 GB, free: 9.641 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.5039, allocations: 0 / 0.5968 GB, free: 9.641 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.5039, allocations: 0 / 0.5968 GB, free: 9.641 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001749/0.5041, allocations: 0 / 0.5968 GB, free: 9.641 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.008492/0.5126, allocations: 3.072 MB / 0.5998 GB, free: 6.516 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.5126, allocations: 12.03 kB / 0.5998 GB, free: 6.504 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006403/0.5132, allocations: 304.3 kB / 0.6001 GB, free: 6.195 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002423/0.5157, allocations: 0.5609 MB / 0.6007 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002876/0.5185, allocations: 1.25 MB / 0.6019 GB, free: 4.344 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003032/0.5188, allocations: 275.3 kB / 0.6021 GB, free: 4.047 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004645/0.5193, allocations: 228 kB / 0.6024 GB, free: 3.824 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004803/0.5241, allocations: 2.686 MB / 0.605 GB, free: 1.047 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.71e-05/0.5242, allocations: 3.938 kB / 0.605 GB, free: 1.043 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002104/0.5244, allocations: 91.98 kB / 0.6051 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.608e-05/0.5244, allocations: 56 kB / 0.6051 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005747/0.5302, allocations: 3.283 MB / 0.6083 GB, free: 13.61 MB / 462.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.01538/0.5455, allocations: 7.255 MB / 0.6154 GB, free: 6.203 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002931/0.5485, allocations: 1.523 MB / 0.6169 GB, free: 4.676 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.55, allocations: 0.8509 MB / 0.6177 GB, free: 3.812 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01103/0.561, allocations: 4.296 MB / 0.6219 GB, free: 15.49 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.505e-05/0.5611, allocations: 47.88 kB / 0.622 GB, free: 15.43 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.446e-06/0.5611, allocations: 0 / 0.622 GB, free: 15.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03272/0.5938, allocations: 8.103 MB / 0.6299 GB, free: 7.277 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.553e-05/0.5939, allocations: 99.09 kB / 0.63 GB, free: 7.16 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.5959, allocations: 1.42 MB / 0.6314 GB, free: 5.723 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002512/0.5962, allocations: 57.7 kB / 0.6314 GB, free: 5.66 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008935/0.5971, allocations: 1.073 MB / 0.6325 GB, free: 4.574 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007504/0.5978, allocations: 0.6585 MB / 0.6331 GB, free: 3.91 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007621/0.5986, allocations: 485 kB / 0.6336 GB, free: 3.43 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.5988, allocations: 309.2 kB / 0.6339 GB, free: 3.125 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.6003, allocations: 0.8132 MB / 0.6347 GB, free: 2.309 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002492/0.6028, allocations: 1.665 MB / 0.6363 GB, free: 264 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004117/0.6069, allocations: 2.61 MB / 0.6388 GB, free: 13.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-05/0.6069, allocations: 8 kB / 0.6388 GB, free: 13.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007313/0.6142, allocations: 3.054 MB / 0.6418 GB, free: 10.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.153e-05/0.6142, allocations: 16 kB / 0.6418 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.947e-05/0.6143, allocations: 28 kB / 0.6419 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003206/0.6175, allocations: 0.5145 MB / 0.6424 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003909/0.6214, allocations: 0.7997 MB / 0.6432 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.6322, allocations: 7.61 MB / 0.6506 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001927/0.6341, allocations: 99.95 kB / 0.6507 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004303/0.6345, allocations: 143.9 kB / 0.6508 GB, free: 472 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * 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,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009879/0.6355, allocations: 452.9 kB / 0.6513 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004547/0.636, allocations: 170.9 kB / 0.6514 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007022/0.643, allocations: 2.586 MB / 0.6539 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.072e-05/0.643, allocations: 16 kB / 0.654 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.643, allocations: 4 kB / 0.654 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.717e-05/0.643, allocations: 8.109 kB / 0.654 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/0.6537, allocations: 4.47 MB / 0.6583 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-05/0.6538, allocations: 12 kB / 0.6583 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001821/0.6556, allocations: 419.4 kB / 0.6587 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003401/0.659, allocations: 0.5509 MB / 0.6593 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002397/0.6592, allocations: 79.97 kB / 0.6594 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009579/0.6688, allocations: 7.38 MB / 0.6666 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.358e-05/0.6688, allocations: 19.88 kB / 0.6666 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/0.6801, allocations: 3.47 MB / 0.67 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006813/0.6808, allocations: 170.8 kB / 0.6701 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004629/0.6812, allocations: 55.98 kB / 0.6702 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/0.6829, allocations: 51.98 kB / 0.6702 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005461/0.6834, allocations: 204.6 kB / 0.6704 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002812/0.6837, allocations: 91.97 kB / 0.6705 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001839/0.6855, allocations: 0.8967 MB / 0.6714 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6855, allocations: 0 / 0.6714 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005436/0.691, allocations: 1.216 MB / 0.6726 GB, free: 9.176 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * 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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01742/0.7084, allocations: 5.24 MB / 0.6777 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008886/0.7173, allocations: 2.362 MB / 0.68 GB, free: 1.352 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-05/0.7173, allocations: 4 kB / 0.68 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004/0.7213, allocations: 1.367 MB / 0.6813 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003423/0.7247, allocations: 356.1 kB / 0.6817 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05122/0.7759, allocations: 17 MB / 0.6983 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/0.7775, allocations: 0.8617 MB / 0.6991 GB, free: 12.32 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003013/0.7806, allocations: 458.4 kB / 0.6996 GB, free: 11.87 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002442/0.783, allocations: 0.9638 MB / 0.7005 GB, free: 10.91 MB / 0.545 GB Notification: Performance of SimCode: time 1.002e-06/0.783, allocations: 0 / 0.7005 GB, free: 10.91 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3706/1.154, allocations: 60.21 MB / 0.7593 GB, free: 166.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.06/17.21, allocations: 10.56 kB / 0.7593 GB, free: 166.7 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.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_master_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.15736947907135] Failed to read output from testmodel.py, exit status != 0: 17.369008264038712 17.385106912 16.877949231 Calling exit ...