Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.0007594/0.0007594, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007224/0.0007224, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8585/0.8585, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.08676/0.08676, allocations: 17.45 MB / 276.6 MB, free: 11.76 MB / 266.7 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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 411.6 MB, free: 252 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.794e-05, allocations: 2.281 kB / 411.6 MB, free: 248 kB / 378.7 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.022/0.02202, allocations: 30.08 MB / 441.7 MB, free: 2.219 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.158/0.18, allocations: 21.97 MB / 463.7 MB, free: 50.73 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.1811, allocations: 31.41 kB / 463.7 MB, free: 50.71 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.1822, allocations: 0.5725 MB / 464.3 MB, free: 50.41 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003003/0.1852, allocations: 1.903 MB / 466.2 MB, free: 49.26 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005492/0.1907, allocations: 3.584 MB / 469.8 MB, free: 47.15 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001732/0.1924, allocations: 2.796 MB / 472.6 MB, free: 45.72 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009843/0.1934, allocations: 1.416 MB / 474 MB, free: 45.02 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.1944, allocations: 1.813 MB / 475.8 MB, free: 44.32 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008265/0.1953, allocations: 1.132 MB / 476.9 MB, free: 44.01 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002183/0.1955, allocations: 261.9 kB / 477.2 MB, free: 44.01 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003726/0.1992, allocations: 2.585 MB / 479.8 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.1995, allocations: 0.6162 MB / 480.4 MB, free: 43.03 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004571/0.1999, allocations: 0.9188 MB / 481.3 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004389/0.2043, allocations: 6.008 MB / 487.3 MB, free: 40.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2043, allocations: 6.625 kB / 487.3 MB, free: 40.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2043, allocations: 1.438 kB / 487.3 MB, free: 40.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.584e-05/0.2043, allocations: 0 / 487.3 MB, free: 40.1 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.002992/0.2073, allocations: 2.928 MB / 490.2 MB, free: 38.42 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2074, allocations: 9.625 kB / 490.2 MB, free: 38.42 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002063/0.2076, allocations: 304.3 kB / 490.5 MB, free: 38.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.2086, allocations: 0.5086 MB / 491 MB, free: 38.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.2099, allocations: 1.224 MB / 492.3 MB, free: 37.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/0.2101, allocations: 270.7 kB / 492.5 MB, free: 37.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002481/0.2103, allocations: 220.7 kB / 492.8 MB, free: 37.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002845/0.2132, allocations: 2.739 MB / 495.5 MB, free: 35.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.264e-05/0.2132, allocations: 5.25 kB / 495.5 MB, free: 35.92 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/0.2133, allocations: 86.97 kB / 495.6 MB, free: 35.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.786e-05/0.2134, allocations: 55.28 kB / 495.6 MB, free: 35.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003341/0.2167, allocations: 3.153 MB / 498.8 MB, free: 34.89 MB / 410.7 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.007478/0.2242, allocations: 8.016 MB / 0.4949 GB, free: 30.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.2257, allocations: 1.453 MB / 0.4963 GB, free: 29.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008007/0.2265, allocations: 0.8277 MB / 0.4972 GB, free: 29.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004988/0.2315, allocations: 4.353 MB / 0.5014 GB, free: 27.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.2315, allocations: 47.56 kB / 0.5014 GB, free: 27.14 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004247/0.2319, allocations: 240.9 kB / 0.5017 GB, free: 27.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=113): time 2.795e-06/0.2319, allocations: 5.656 kB / 0.5017 GB, free: 27.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=161): time 0.01567/0.2476, allocations: 9.32 MB / 0.5108 GB, free: 19.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/0.2477, allocations: 120.1 kB / 0.5109 GB, free: 19.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000869/0.2485, allocations: 1.407 MB / 0.5123 GB, free: 17.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.319e-05/0.2486, allocations: 53.7 kB / 0.5123 GB, free: 17.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.2489, allocations: 1.073 MB / 0.5134 GB, free: 16.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.2491, allocations: 0.581 MB / 0.5139 GB, free: 16.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003373/0.2494, allocations: 471.2 kB / 0.5144 GB, free: 15.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.002e-05/0.2494, allocations: 305.1 kB / 0.5147 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007455/0.2502, allocations: 0.8519 MB / 0.5155 GB, free: 14.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000929/0.2511, allocations: 1.716 MB / 0.5172 GB, free: 12.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001798/0.2529, allocations: 2.7 MB / 0.5198 GB, free: 9.367 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.2529, allocations: 11.94 kB / 0.5198 GB, free: 9.355 MB / 410.7 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.003965/0.2569, allocations: 3.483 MB / 0.5232 GB, free: 5.879 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.2569, allocations: 22.69 kB / 0.5233 GB, free: 5.859 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.2569, allocations: 28 kB / 0.5233 GB, free: 5.832 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002231/0.2591, allocations: 1.163 MB / 0.5244 GB, free: 4.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007814/0.2599, allocations: 0.5096 MB / 0.5249 GB, free: 4.172 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004881/0.2648, allocations: 7.25 MB / 0.532 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007313/0.2655, allocations: 106.5 kB / 0.5321 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.2657, allocations: 142.9 kB / 0.5322 GB, free: 12.33 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005208/0.2662, allocations: 451.5 kB / 0.5327 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/0.2664, allocations: 170.9 kB / 0.5328 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004106/0.2705, allocations: 2.835 MB / 0.5356 GB, free: 8.945 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.2705, allocations: 18.62 kB / 0.5356 GB, free: 8.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2705, allocations: 4 kB / 0.5356 GB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.2705, allocations: 7.969 kB / 0.5356 GB, free: 8.918 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00607/0.2766, allocations: 4.569 MB / 0.5401 GB, free: 4.258 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.2766, allocations: 4 kB / 0.5401 GB, free: 4.254 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005417/0.2771, allocations: 262.3 kB / 0.5403 GB, free: 4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002232/0.2794, allocations: 1.033 MB / 0.5414 GB, free: 2.973 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.805e-05/0.2795, allocations: 63.95 kB / 0.5414 GB, free: 2.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004642/0.2841, allocations: 6.545 MB / 0.5478 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2841, allocations: 11.91 kB / 0.5478 GB, free: 12.01 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004627/0.2887, allocations: 3.653 MB / 0.5514 GB, free: 8.312 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.2889, allocations: 158.8 kB / 0.5515 GB, free: 8.156 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.289, allocations: 35.94 kB / 0.5516 GB, free: 8.121 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000473/0.2895, allocations: 39.98 kB / 0.5516 GB, free: 8.082 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000234/0.2897, allocations: 157 kB / 0.5518 GB, free: 7.926 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.939e-05/0.2898, allocations: 74.61 kB / 0.5518 GB, free: 7.855 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000702/0.2905, allocations: 0.8882 MB / 0.5527 GB, free: 6.965 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2905, allocations: 3.938 kB / 0.5527 GB, free: 6.961 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002262/0.2928, allocations: 1.114 MB / 0.5538 GB, free: 5.844 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006177/0.299, allocations: 5.297 MB / 0.559 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00285/0.3018, allocations: 2.573 MB / 0.5615 GB, free: 13.96 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3018, allocations: 4 kB / 0.5615 GB, free: 13.96 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001309/0.3031, allocations: 1.308 MB / 0.5628 GB, free: 12.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008883/0.304, allocations: 286.3 kB / 0.563 GB, free: 12.37 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01774/0.3218, allocations: 17.13 MB / 0.5798 GB, free: 10.18 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005604/0.3223, allocations: 0.8229 MB / 0.5806 GB, free: 9.344 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.000802/0.3231, allocations: 386.5 kB / 0.5809 GB, free: 9.07 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007583/0.3239, allocations: 0.8779 MB / 0.5818 GB, free: 8.191 MB / 474.7 MB Notification: Performance of SimCode: time 6.41e-07/0.3239, allocations: 0 / 0.5818 GB, free: 8.191 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1921/0.516, allocations: 58.96 MB / 0.6394 GB, free: 147 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.582/10.1, allocations: 5.234 kB / 0.6394 GB, free: 147 MB / 0.4948 GB " [Timeout remaining time 650] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction_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_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.964643561281264] Failed to read output from testmodel.py, exit status != 0: 10.211287690326571 10.219404211 10.013425397 Calling exit ...