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.0007226/0.0007226, 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.0008592/0.0008592, 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.8173/0.8173, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.07747/0.07747, allocations: 17.45 MB / 276.6 MB, free: 11.75 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.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: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 411.6 MB, free: 268 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.3e-05/1.421e-05, allocations: 5.234 kB / 411.6 MB, free: 264 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.ElectrochemicalCell): time 0.02014/0.02015, allocations: 30.16 MB / 441.8 MB, free: 2.156 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1456/0.1657, allocations: 25.29 MB / 467.1 MB, free: 48.36 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.1669, allocations: 31.38 kB / 467.1 MB, free: 48.35 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.168, allocations: 0.6033 MB / 467.7 MB, free: 48.03 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00407/0.1721, allocations: 2.239 MB / 469.9 MB, free: 46.68 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006623/0.1787, allocations: 4.049 MB / 474 MB, free: 44.3 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002173/0.1809, allocations: 2.952 MB / 476.9 MB, free: 42.8 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001204/0.1821, allocations: 1.345 MB / 478.3 MB, free: 42.15 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001547/0.1836, allocations: 1.897 MB / 480.2 MB, free: 41.43 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001235/0.1848, allocations: 1.196 MB / 481.4 MB, free: 41.1 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004651/0.1853, allocations: 259.9 kB / 481.6 MB, free: 41.1 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005326/0.1906, allocations: 2.978 MB / 484.6 MB, free: 40.43 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005028/0.1911, allocations: 0.6197 MB / 485.2 MB, free: 40.03 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.1922, allocations: 0.9344 MB / 486.2 MB, free: 39.62 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008975/0.2011, allocations: 6.539 MB / 492.7 MB, free: 36.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2011, allocations: 2.625 kB / 492.7 MB, free: 36.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2012, allocations: 0 / 492.7 MB, free: 36.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001101/0.2013, allocations: 0 / 492.7 MB, free: 36.86 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.004964/0.2062, allocations: 3.066 MB / 495.8 MB, free: 35.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.2063, allocations: 9.406 kB / 495.8 MB, free: 35.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003023/0.2066, allocations: 308.2 kB / 496.1 MB, free: 34.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/0.208, allocations: 0.5546 MB / 496.6 MB, free: 34.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001822/0.2098, allocations: 1.243 MB / 497.9 MB, free: 34.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.21, allocations: 274.3 kB / 498.1 MB, free: 33.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002668/0.2102, allocations: 221.9 kB / 498.4 MB, free: 33.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003159/0.2134, allocations: 2.68 MB / 0.4893 GB, free: 32.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.144e-05/0.2134, allocations: 3.781 kB / 0.4893 GB, free: 32.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/0.2136, allocations: 87 kB / 0.4894 GB, free: 32.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-05/0.2136, allocations: 53.94 kB / 0.4894 GB, free: 32.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003605/0.2172, allocations: 3.299 MB / 0.4927 GB, free: 31.61 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.008073/0.2253, allocations: 7.26 MB / 0.4997 GB, free: 27.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/0.2268, allocations: 1.524 MB / 0.5012 GB, free: 26.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000782/0.2276, allocations: 0.8475 MB / 0.5021 GB, free: 26.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005224/0.2328, allocations: 4.284 MB / 0.5062 GB, free: 24.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.78e-05/0.2328, allocations: 52.66 kB / 0.5063 GB, free: 24.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 2.695e-06/0.2328, allocations: 0 / 0.5063 GB, free: 24.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=181): time 0.01381/0.2466, allocations: 8.116 MB / 0.5142 GB, free: 16.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.2467, allocations: 95.11 kB / 0.5143 GB, free: 15.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009046/0.2476, allocations: 1.42 MB / 0.5157 GB, free: 14.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.949e-05/0.2476, allocations: 53.7 kB / 0.5157 GB, free: 14.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002626/0.2479, allocations: 1.076 MB / 0.5168 GB, free: 13.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/0.2481, allocations: 0.6546 MB / 0.5174 GB, free: 12.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003469/0.2485, allocations: 473.1 kB / 0.5179 GB, free: 12.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.102e-05/0.2485, allocations: 301.1 kB / 0.5182 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007427/0.2492, allocations: 0.821 MB / 0.519 GB, free: 11.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009146/0.2501, allocations: 1.658 MB / 0.5206 GB, free: 9.027 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001797/0.2519, allocations: 2.614 MB / 0.5231 GB, free: 6.074 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.2519, allocations: 8 kB / 0.5232 GB, free: 6.066 MB / 410.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.003243/0.2552, allocations: 3.056 MB / 0.5261 GB, free: 3.016 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.2552, allocations: 16 kB / 0.5262 GB, free: 3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.2552, allocations: 28 kB / 0.5262 GB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/0.2566, allocations: 0.5166 MB / 0.5267 GB, free: 2.453 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/0.2582, allocations: 0.8035 MB / 0.5275 GB, free: 1.656 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004795/0.263, allocations: 7.585 MB / 0.5349 GB, free: 9.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.2641, allocations: 98.58 kB / 0.535 GB, free: 9.488 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/0.2643, allocations: 144 kB / 0.5351 GB, free: 9.348 MB / 426.7 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.0007012/0.265, allocations: 470.4 kB / 0.5356 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.2652, allocations: 170.9 kB / 0.5357 GB, free: 8.715 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003614/0.2688, allocations: 2.57 MB / 0.5382 GB, free: 6.207 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.2688, allocations: 20 kB / 0.5382 GB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2688, allocations: 0 / 0.5382 GB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.2689, allocations: 7.969 kB / 0.5383 GB, free: 6.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005584/0.2744, allocations: 4.482 MB / 0.5426 GB, free: 1.484 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.2745, allocations: 15.94 kB / 0.5426 GB, free: 1.469 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008092/0.2753, allocations: 418.1 kB / 0.543 GB, free: 1.062 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/0.2768, allocations: 0.5506 MB / 0.5436 GB, free: 0.5078 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.2769, allocations: 79.97 kB / 0.5437 GB, free: 440 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00467/0.2815, allocations: 7.38 MB / 0.5509 GB, free: 8.551 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/0.2815, allocations: 18.59 kB / 0.5509 GB, free: 8.535 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00417/0.2857, allocations: 3.442 MB / 0.5542 GB, free: 4.918 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004908/0.2862, allocations: 178.7 kB / 0.5544 GB, free: 4.742 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.2864, allocations: 55.98 kB / 0.5545 GB, free: 4.688 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005439/0.2869, allocations: 51.94 kB / 0.5545 GB, free: 4.637 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.2871, allocations: 199.4 kB / 0.5547 GB, free: 4.445 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.2872, allocations: 95.97 kB / 0.5548 GB, free: 4.352 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008149/0.288, allocations: 0.8967 MB / 0.5557 GB, free: 3.453 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.288, allocations: 0 / 0.5557 GB, free: 3.453 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002912/0.291, allocations: 1.216 MB / 0.5569 GB, free: 2.234 MB / 442.7 MB 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.006549/0.2975, allocations: 5.256 MB / 0.562 GB, free: 12.86 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003436/0.3009, allocations: 2.363 MB / 0.5643 GB, free: 10.49 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/0.301, allocations: 7.938 kB / 0.5643 GB, free: 10.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001424/0.3024, allocations: 1.359 MB / 0.5656 GB, free: 9.082 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001522/0.3039, allocations: 348.5 kB / 0.566 GB, free: 8.777 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0193/0.3232, allocations: 16.86 MB / 0.5824 GB, free: 6.668 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006744/0.3239, allocations: 0.8566 MB / 0.5833 GB, free: 5.801 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001188/0.3251, allocations: 461.7 kB / 0.5837 GB, free: 5.453 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009857/0.326, allocations: 0.9663 MB / 0.5847 GB, free: 4.492 MB / 474.7 MB Notification: Performance of SimCode: time 1.072e-06/0.326, allocations: 0 / 0.5847 GB, free: 4.492 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.217/0.5431, allocations: 60.39 MB / 0.6436 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.02/9.563, allocations: 3.641 kB / 0.6436 GB, free: 123.5 MB / 0.4948 GB " [Timeout remaining time 650] (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: 11.317122128792107] Failed to read output from testmodel.py, exit status != 0: 9.682875893078744 9.695030293 9.491899834 Calling exit ...