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.001453/0.001453, allocations: 110 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.001582/0.001582, allocations: 216.2 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.419/1.419, allocations: 230.6 MB / 252.8 MB, free: 8.949 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.1515/0.1515, allocations: 23.85 MB / 332.7 MB, free: 12.37 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.002097/0.002097, allocations: 72.19 kB / 466 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3096, allocations: 59.81 MB / 0.5135 GB, free: 8.902 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.04319/0.3528, allocations: 29.06 MB / 0.5418 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02704/0.3798, allocations: 19.49 MB / 0.5609 GB, free: 9.828 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001689/0.3815, allocations: 23.81 kB / 0.5609 GB, free: 9.805 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002002/0.3835, allocations: 0.5021 MB / 0.5614 GB, free: 9.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004364/0.3879, allocations: 1.232 MB / 0.5626 GB, free: 8.367 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008849/0.3967, allocations: 2.861 MB / 0.5654 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003641/0.4003, allocations: 2.087 MB / 0.5674 GB, free: 4.023 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.4022, allocations: 1.103 MB / 0.5685 GB, free: 2.871 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001466/0.4037, allocations: 0.9387 MB / 0.5694 GB, free: 1.93 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001805/0.4055, allocations: 1.066 MB / 0.5705 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004842/0.406, allocations: 200 kB / 0.5706 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006758/0.4127, allocations: 2.083 MB / 0.5727 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006483/0.4134, allocations: 466.6 kB / 0.5731 GB, free: 14.12 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001434/0.4148, allocations: 0.9839 MB / 0.5741 GB, free: 13.13 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009946/0.4248, allocations: 4.362 MB / 0.5783 GB, free: 8.754 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4248, allocations: 0 / 0.5783 GB, free: 8.754 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4248, allocations: 0 / 0.5783 GB, free: 8.754 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.849e-05/0.4248, allocations: 0 / 0.5783 GB, free: 8.754 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.005483/0.4303, allocations: 2.407 MB / 0.5807 GB, free: 6.285 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.4304, allocations: 12.03 kB / 0.5807 GB, free: 6.273 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004092/0.4308, allocations: 240.8 kB / 0.5809 GB, free: 6.027 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001928/0.4327, allocations: 447 kB / 0.5814 GB, free: 5.59 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.4348, allocations: 1.092 MB / 0.5824 GB, free: 4.453 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/0.435, allocations: 182.8 kB / 0.5826 GB, free: 4.262 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003965/0.4354, allocations: 164 kB / 0.5828 GB, free: 4.102 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00408/0.4395, allocations: 2.214 MB / 0.5849 GB, free: 1.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.564e-05/0.4395, allocations: 11.94 kB / 0.5849 GB, free: 1.809 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001828/0.4397, allocations: 71.98 kB / 0.585 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.83e-05/0.4397, allocations: 44 kB / 0.585 GB, free: 1.695 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00447/0.4442, allocations: 2.676 MB / 0.5877 GB, free: 15.01 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.01214/0.4563, allocations: 7.279 MB / 0.5948 GB, free: 7.461 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001932/0.4583, allocations: 1.126 MB / 0.5959 GB, free: 6.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009245/0.4592, allocations: 0.5105 MB / 0.5964 GB, free: 5.746 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008269/0.4675, allocations: 5.156 MB / 0.6014 GB, free: 72 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.4675, allocations: 39.12 kB / 0.6014 GB, free: 24 kB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005184/0.468, allocations: 119.1 kB / 0.6015 GB, free: 15.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.976e-06/0.468, allocations: 0 / 0.6015 GB, free: 15.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.01957/0.4876, allocations: 4.872 MB / 0.6063 GB, free: 10.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.708e-05/0.4877, allocations: 119.8 kB / 0.6064 GB, free: 10.76 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/0.4897, allocations: 1.47 MB / 0.6079 GB, free: 9.277 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.366e-05/0.4898, allocations: 49.77 kB / 0.6079 GB, free: 9.223 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007489/0.4905, allocations: 0.92 MB / 0.6088 GB, free: 8.289 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003496/0.4909, allocations: 357.1 kB / 0.6091 GB, free: 7.938 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005835/0.4914, allocations: 359.3 kB / 0.6095 GB, free: 7.578 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.4916, allocations: 305.1 kB / 0.6098 GB, free: 7.277 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.4927, allocations: 0.6208 MB / 0.6104 GB, free: 6.656 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.4945, allocations: 1.329 MB / 0.6117 GB, free: 4.996 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002831/0.4973, allocations: 1.921 MB / 0.6136 GB, free: 2.742 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.574e-05/0.4973, allocations: 8 kB / 0.6136 GB, free: 2.734 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005892/0.5032, allocations: 2.363 MB / 0.6159 GB, free: 360 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.5032, allocations: 19.94 kB / 0.6159 GB, free: 340 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.425e-05/0.5033, allocations: 27.98 kB / 0.6159 GB, free: 312 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002567/0.5059, allocations: 378.9 kB / 0.6163 GB, free: 15.92 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002703/0.5086, allocations: 0.5578 MB / 0.6168 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009483/0.518, allocations: 7.9 MB / 0.6245 GB, free: 6.852 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.5195, allocations: 96.03 kB / 0.6246 GB, free: 6.758 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/0.5198, allocations: 108 kB / 0.6247 GB, free: 6.652 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.0008598/0.5206, allocations: 369 kB / 0.6251 GB, free: 6.281 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000413/0.521, allocations: 135.1 kB / 0.6252 GB, free: 6.148 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005008/0.5261, allocations: 1.534 MB / 0.6267 GB, free: 4.582 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/0.5261, allocations: 15.94 kB / 0.6267 GB, free: 4.566 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.5261, allocations: 0 / 0.6267 GB, free: 4.566 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.5261, allocations: 3.984 kB / 0.6267 GB, free: 4.562 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007351/0.5334, allocations: 3.011 MB / 0.6297 GB, free: 1.395 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.5335, allocations: 8 kB / 0.6297 GB, free: 1.387 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009007/0.5344, allocations: 216.6 kB / 0.6299 GB, free: 1.176 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002769/0.5371, allocations: 412.8 kB / 0.6303 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.5372, allocations: 43.98 kB / 0.6303 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008797/0.546, allocations: 7.715 MB / 0.6379 GB, free: 8.371 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.439e-05/0.546, allocations: 11.94 kB / 0.6379 GB, free: 8.359 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00519/0.5512, allocations: 2.153 MB / 0.64 GB, free: 6.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003842/0.5516, allocations: 208.4 kB / 0.6402 GB, free: 5.867 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/0.5518, allocations: 35.98 kB / 0.6402 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007477/0.5526, allocations: 24 kB / 0.6402 GB, free: 5.809 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.5528, allocations: 116.3 kB / 0.6403 GB, free: 5.691 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.49e-05/0.5529, allocations: 51.98 kB / 0.6404 GB, free: 5.641 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001422/0.5543, allocations: 1.013 MB / 0.6414 GB, free: 4.621 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5543, allocations: 0 / 0.6414 GB, free: 4.621 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00286/0.5572, allocations: 0.826 MB / 0.6422 GB, free: 3.793 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.007266/0.5644, allocations: 3.508 MB / 0.6456 GB, free: 156 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003621/0.5681, allocations: 1.688 MB / 0.6473 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/0.5681, allocations: 4 kB / 0.6473 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.5696, allocations: 0.9567 MB / 0.6482 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.5712, allocations: 224.5 kB / 0.6484 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02444/0.5956, allocations: 13.42 MB / 0.6615 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001089/0.5967, allocations: 1.223 MB / 0.6627 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001101/0.5978, allocations: 330.5 kB / 0.663 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009738/0.5988, allocations: 0.6593 MB / 0.6637 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of SimCode: time 9.62e-07/0.5988, allocations: 0 / 0.6637 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09631/0.6951, allocations: 40.9 MB / 0.7036 GB, free: 3.793 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.05/27.74, allocations: 14.23 kB / 0.7036 GB, free: 3.781 MB / 0.545 GB " [Timeout remaining time 632] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 30.447158562019467] Failed to read output from testmodel.py, exit status != 0: 27.863981040893123 27.877830826 27.450129601 Calling exit ...