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.001347/0.001347, allocations: 99.64 kB / 18.95 MB, free: 2.66 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.001526/0.001526, allocations: 218.5 kB / 22.25 MB, free: 5.258 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.479/1.479, 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 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.1413/0.1413, allocations: 23.88 MB / 336.3 MB, free: 10.95 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.002027/0.002027, allocations: 67.91 kB / 471.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3109, allocations: 59.85 MB / 0.5185 GB, free: 9.559 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.07363/0.3845, allocations: 28.14 MB / 0.546 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02447/0.409, allocations: 17.14 MB / 0.5627 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001498/0.4105, allocations: 27.75 kB / 0.5628 GB, free: 11.99 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.412, allocations: 458.9 kB / 0.5632 GB, free: 11.65 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003954/0.416, allocations: 1.205 MB / 0.5644 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009483/0.4255, allocations: 2.892 MB / 0.5672 GB, free: 8.051 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003948/0.4294, allocations: 2.09 MB / 0.5692 GB, free: 5.949 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.4311, allocations: 1.088 MB / 0.5703 GB, free: 4.812 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001399/0.4325, allocations: 0.931 MB / 0.5712 GB, free: 3.879 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001918/0.4344, allocations: 1.07 MB / 0.5723 GB, free: 2.805 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003872/0.4348, allocations: 200 kB / 0.5725 GB, free: 2.609 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005542/0.4403, allocations: 1.997 MB / 0.5744 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006173/0.4409, allocations: 482.5 kB / 0.5749 GB, free: 140 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001098/0.442, allocations: 0.8248 MB / 0.5757 GB, free: 15.31 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008983/0.451, allocations: 4.35 MB / 0.5799 GB, free: 10.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.451, allocations: 7.938 kB / 0.5799 GB, free: 10.93 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.451, allocations: 0 / 0.5799 GB, free: 10.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.545e-05/0.4511, allocations: 0 / 0.5799 GB, free: 10.93 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.004558/0.4556, allocations: 2.324 MB / 0.5822 GB, free: 8.566 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.4557, allocations: 8.031 kB / 0.5822 GB, free: 8.559 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002962/0.456, allocations: 240.8 kB / 0.5824 GB, free: 8.312 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001732/0.4577, allocations: 447 kB / 0.5829 GB, free: 7.875 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.4597, allocations: 1.018 MB / 0.5839 GB, free: 6.824 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002151/0.4599, allocations: 242.2 kB / 0.5841 GB, free: 6.562 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002894/0.4602, allocations: 168 kB / 0.5842 GB, free: 6.398 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00361/0.4638, allocations: 2.233 MB / 0.5864 GB, free: 4.098 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/0.4639, allocations: 7.875 kB / 0.5864 GB, free: 4.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001772/0.464, allocations: 68 kB / 0.5865 GB, free: 4.023 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.519e-05/0.4641, allocations: 40 kB / 0.5865 GB, free: 3.984 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004223/0.4683, allocations: 2.692 MB / 0.5892 GB, free: 1.285 MB / 430.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.01158/0.4799, allocations: 6.333 MB / 0.5953 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.4817, allocations: 0.9757 MB / 0.5963 GB, free: 9.797 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008984/0.4826, allocations: 0.5174 MB / 0.5968 GB, free: 9.266 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007497/0.4901, allocations: 2.986 MB / 0.5997 GB, free: 6.258 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.4902, allocations: 43.16 kB / 0.5998 GB, free: 6.207 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005147/0.4907, allocations: 115 kB / 0.5999 GB, free: 6.094 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.725e-06/0.4907, allocations: 0 / 0.5999 GB, free: 6.094 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.02077/0.5115, allocations: 4.566 MB / 0.6043 GB, free: 1.469 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.602e-05/0.5115, allocations: 115.8 kB / 0.6044 GB, free: 1.328 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002019/0.5136, allocations: 1.544 MB / 0.6059 GB, free: 15.77 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001483/0.5137, allocations: 37.7 kB / 0.606 GB, free: 15.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007651/0.5145, allocations: 0.9278 MB / 0.6069 GB, free: 14.79 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003754/0.5149, allocations: 365 kB / 0.6072 GB, free: 14.42 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005913/0.5154, allocations: 359.3 kB / 0.6076 GB, free: 14.06 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.5156, allocations: 301.1 kB / 0.6079 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.5167, allocations: 0.6325 MB / 0.6085 GB, free: 13.13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.5184, allocations: 1.349 MB / 0.6098 GB, free: 11.45 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00278/0.5212, allocations: 1.925 MB / 0.6117 GB, free: 9.199 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.584e-05/0.5212, allocations: 8 kB / 0.6117 GB, free: 9.191 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006251/0.5274, allocations: 2.387 MB / 0.614 GB, free: 6.781 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.5275, allocations: 19.94 kB / 0.614 GB, free: 6.762 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.63e-05/0.5275, allocations: 24 kB / 0.6141 GB, free: 6.738 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0028/0.5303, allocations: 390.9 kB / 0.6144 GB, free: 6.344 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002908/0.5332, allocations: 0.5539 MB / 0.615 GB, free: 5.789 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009571/0.5428, allocations: 7.458 MB / 0.6223 GB, free: 13.82 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.5443, allocations: 92.05 kB / 0.6223 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000223/0.5445, allocations: 108 kB / 0.6225 GB, free: 13.62 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.000765/0.5453, allocations: 375 kB / 0.6228 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003769/0.5456, allocations: 131.2 kB / 0.6229 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005151/0.5508, allocations: 1.527 MB / 0.6244 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.5508, allocations: 8 kB / 0.6244 GB, free: 11.56 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.5508, allocations: 7.938 kB / 0.6244 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.5508, allocations: 11.97 kB / 0.6245 GB, free: 11.54 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007532/0.5583, allocations: 2.815 MB / 0.6272 GB, free: 8.578 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.387e-05/0.5584, allocations: 15.98 kB / 0.6272 GB, free: 8.562 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009479/0.5593, allocations: 211.7 kB / 0.6274 GB, free: 8.355 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003003/0.5623, allocations: 401.1 kB / 0.6278 GB, free: 7.945 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/0.5625, allocations: 39.98 kB / 0.6278 GB, free: 7.906 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009187/0.5716, allocations: 7.264 MB / 0.6349 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/0.5717, allocations: 11.94 kB / 0.6349 GB, free: 116 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005738/0.5774, allocations: 2.168 MB / 0.6371 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004296/0.5778, allocations: 131.2 kB / 0.6372 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/0.578, allocations: 24 kB / 0.6372 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000757/0.5788, allocations: 31.98 kB / 0.6372 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.579, allocations: 112.2 kB / 0.6373 GB, free: 13.53 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.5791, allocations: 55.98 kB / 0.6374 GB, free: 13.48 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001324/0.5804, allocations: 1.036 MB / 0.6384 GB, free: 12.43 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5804, allocations: 0 / 0.6384 GB, free: 12.43 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002968/0.5834, allocations: 0.8221 MB / 0.6392 GB, free: 11.61 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.00802/0.5914, allocations: 3.507 MB / 0.6426 GB, free: 7.961 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003799/0.5952, allocations: 1.706 MB / 0.6443 GB, free: 6.234 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.5952, allocations: 0 / 0.6443 GB, free: 6.234 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.5968, allocations: 0.9536 MB / 0.6452 GB, free: 5.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.5984, allocations: 234.5 kB / 0.6455 GB, free: 5.004 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02416/0.6226, allocations: 13.47 MB / 0.6586 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007652/0.6233, allocations: 0.641 MB / 0.6592 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001055/0.6244, allocations: 318.5 kB / 0.6595 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000943/0.6253, allocations: 0.6671 MB / 0.6602 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of SimCode: time 1.192e-06/0.6253, allocations: 0 / 0.6602 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09731/0.7226, allocations: 42.89 MB / 0.7021 GB, free: 10.24 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.71/15.43, allocations: 7.984 kB / 0.7021 GB, free: 10.23 MB / 0.545 GB " [Timeout remaining time 644] (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 os._exit(0), Time elapsed: 18.10737679799786] Failed to read output from testmodel.py, exit status != 0: 15.580417474004207 15.608625355000001 15.152103026 Calling exit ...