Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001334/0.001334, allocations: 106.3 kB / 16.45 MB, free: 6.453 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.001514/0.001514, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.447/1.447, allocations: 230.6 MB / 252.8 MB, free: 8.926 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.1368/0.1368, allocations: 23.88 MB / 332.7 MB, free: 12.29 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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_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.002053/0.002053, allocations: 71.91 kB / 466 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.299, allocations: 59.82 MB / 0.5135 GB, free: 8.852 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.H2O_ElectrochemicalCell): time 0.04097/0.34, allocations: 29.06 MB / 0.5419 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02694/0.3669, allocations: 19.48 MB / 0.5609 GB, free: 9.738 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001595/0.3685, allocations: 31.75 kB / 0.561 GB, free: 9.707 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001736/0.3702, allocations: 0.4948 MB / 0.5614 GB, free: 9.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004097/0.3743, allocations: 1.236 MB / 0.5627 GB, free: 8.273 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008258/0.3826, allocations: 2.857 MB / 0.5654 GB, free: 5.922 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003422/0.386, allocations: 2.101 MB / 0.5675 GB, free: 3.918 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001701/0.3877, allocations: 1.092 MB / 0.5686 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001353/0.3891, allocations: 0.9349 MB / 0.5695 GB, free: 1.84 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0017/0.3908, allocations: 1.074 MB / 0.5705 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004137/0.3912, allocations: 200 kB / 0.5707 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006101/0.3973, allocations: 2.075 MB / 0.5727 GB, free: 14.49 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005664/0.3979, allocations: 478.5 kB / 0.5732 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001255/0.3991, allocations: 0.9878 MB / 0.5742 GB, free: 13.03 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008446/0.4076, allocations: 4.354 MB / 0.5784 GB, free: 8.656 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.4076, allocations: 0 / 0.5784 GB, free: 8.656 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.4076, allocations: 0 / 0.5784 GB, free: 8.656 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.691e-05/0.4076, allocations: 8 kB / 0.5784 GB, free: 8.648 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.005012/0.4126, allocations: 2.407 MB / 0.5808 GB, free: 6.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.4127, allocations: 8.031 kB / 0.5808 GB, free: 6.172 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003221/0.413, allocations: 240.8 kB / 0.581 GB, free: 5.926 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001742/0.4147, allocations: 447 kB / 0.5814 GB, free: 5.488 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001867/0.4166, allocations: 1.088 MB / 0.5825 GB, free: 4.355 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.4168, allocations: 182.8 kB / 0.5827 GB, free: 4.164 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000286/0.4171, allocations: 164 kB / 0.5828 GB, free: 4.004 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003622/0.4207, allocations: 2.222 MB / 0.585 GB, free: 1.715 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.4207, allocations: 3.984 kB / 0.585 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001774/0.4209, allocations: 68 kB / 0.5851 GB, free: 1.645 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.477e-05/0.4209, allocations: 43.94 kB / 0.5851 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004219/0.4252, allocations: 2.672 MB / 0.5877 GB, free: 14.92 MB / 446.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.01104/0.4362, allocations: 7.279 MB / 0.5948 GB, free: 7.371 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.4381, allocations: 1.126 MB / 0.5959 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008781/0.439, allocations: 0.5144 MB / 0.5964 GB, free: 5.652 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008157/0.4471, allocations: 5.156 MB / 0.6015 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.4472, allocations: 43.12 kB / 0.6015 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004811/0.4477, allocations: 122.9 kB / 0.6016 GB, free: 15.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 3.366e-06/0.4477, allocations: 4 kB / 0.6016 GB, free: 15.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.01892/0.4666, allocations: 4.856 MB / 0.6064 GB, free: 10.81 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.922e-05/0.4667, allocations: 111.8 kB / 0.6065 GB, free: 10.68 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001898/0.4686, allocations: 1.482 MB / 0.6079 GB, free: 9.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.514e-05/0.4686, allocations: 45.64 kB / 0.608 GB, free: 9.129 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007144/0.4694, allocations: 0.92 MB / 0.6089 GB, free: 8.195 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000342/0.4697, allocations: 365 kB / 0.6092 GB, free: 7.836 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005561/0.4703, allocations: 359.3 kB / 0.6096 GB, free: 7.477 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4704, allocations: 305.1 kB / 0.6098 GB, free: 7.176 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.4715, allocations: 0.6247 MB / 0.6105 GB, free: 6.551 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/0.4732, allocations: 1.325 MB / 0.6117 GB, free: 4.895 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002849/0.4761, allocations: 1.921 MB / 0.6136 GB, free: 2.641 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/0.4761, allocations: 8 kB / 0.6136 GB, free: 2.633 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005821/0.4819, allocations: 2.359 MB / 0.6159 GB, free: 260 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.4819, allocations: 19.94 kB / 0.616 GB, free: 240 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-05/0.482, allocations: 20 kB / 0.616 GB, free: 220 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002809/0.4848, allocations: 379.1 kB / 0.6163 GB, free: 15.83 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002867/0.4877, allocations: 0.5656 MB / 0.6169 GB, free: 15.26 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009521/0.4972, allocations: 7.908 MB / 0.6246 GB, free: 6.746 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.4985, allocations: 83.86 kB / 0.6247 GB, free: 6.664 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002301/0.4987, allocations: 108 kB / 0.6248 GB, free: 6.559 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.0007156/0.4994, allocations: 376 kB / 0.6252 GB, free: 6.184 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003699/0.4998, allocations: 131.1 kB / 0.6253 GB, free: 6.055 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004879/0.5047, allocations: 1.523 MB / 0.6268 GB, free: 4.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.5047, allocations: 12 kB / 0.6268 GB, free: 4.488 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.5047, allocations: 7.938 kB / 0.6268 GB, free: 4.48 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.5047, allocations: 11.97 kB / 0.6268 GB, free: 4.469 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007211/0.5119, allocations: 3.003 MB / 0.6297 GB, free: 1.309 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.5119, allocations: 8.875 kB / 0.6297 GB, free: 1.301 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008992/0.5128, allocations: 219.7 kB / 0.6299 GB, free: 1.086 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/0.5155, allocations: 404.7 kB / 0.6303 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.5156, allocations: 43.98 kB / 0.6304 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008706/0.5243, allocations: 7.719 MB / 0.6379 GB, free: 8.285 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-05/0.5243, allocations: 11.94 kB / 0.6379 GB, free: 8.273 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00516/0.5295, allocations: 2.156 MB / 0.64 GB, free: 6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000355/0.5299, allocations: 208.2 kB / 0.6402 GB, free: 5.777 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002127/0.5301, allocations: 31.94 kB / 0.6403 GB, free: 5.746 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007289/0.5308, allocations: 31.98 kB / 0.6403 GB, free: 5.715 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.531, allocations: 104.4 kB / 0.6404 GB, free: 5.609 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.514e-05/0.5311, allocations: 55.98 kB / 0.6404 GB, free: 5.555 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001373/0.5325, allocations: 1.017 MB / 0.6414 GB, free: 4.531 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5325, allocations: 0 / 0.6414 GB, free: 4.531 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002689/0.5352, allocations: 0.8299 MB / 0.6422 GB, free: 3.699 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.00712/0.5423, allocations: 3.5 MB / 0.6457 GB, free: 68 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003611/0.5459, allocations: 1.695 MB / 0.6473 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5459, allocations: 4.438 kB / 0.6473 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.5474, allocations: 0.9605 MB / 0.6483 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.5489, allocations: 224.7 kB / 0.6485 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02379/0.5727, allocations: 13.41 MB / 0.6616 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.5737, allocations: 1.223 MB / 0.6628 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001019/0.5748, allocations: 330.5 kB / 0.6631 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008928/0.5756, allocations: 0.6515 MB / 0.6637 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of SimCode: time 9.12e-07/0.5756, allocations: 0 / 0.6637 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09086/0.6665, allocations: 40.92 MB / 0.7037 GB, free: 3.699 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.61/27.28, allocations: 7.938 kB / 0.7037 GB, free: 3.691 MB / 0.545 GB " [Timeout remaining time 633] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 29.997385279042646] Failed to read output from testmodel.py, exit status != 0: 27.40377224003896 27.431380234 27.018701135 Calling exit ...