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.001305/0.001305, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001506/0.001506, allocations: 215.1 kB / 23.03 MB, free: 4.922 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.458/1.458, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1375/0.1375, allocations: 23.89 MB / 337.1 MB, free: 11.07 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="cs",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.002792/0.002792, allocations: 59.91 kB / 471.9 MB, free: 7.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3811, allocations: 59.86 MB / 0.5193 GB, free: 9.477 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.07362/0.4548, allocations: 27.87 MB / 0.5465 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02311/0.4779, allocations: 17.12 MB / 0.5632 GB, free: 12.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.4793, allocations: 23.81 kB / 0.5632 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001401/0.4807, allocations: 466.6 kB / 0.5637 GB, free: 11.97 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003712/0.4844, allocations: 1.205 MB / 0.5649 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007813/0.4922, allocations: 2.891 MB / 0.5677 GB, free: 8.367 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003486/0.4957, allocations: 2.098 MB / 0.5697 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.4973, allocations: 1.073 MB / 0.5708 GB, free: 5.137 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001339/0.4986, allocations: 0.931 MB / 0.5717 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001634/0.5003, allocations: 1.07 MB / 0.5727 GB, free: 3.129 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003365/0.5006, allocations: 200 kB / 0.5729 GB, free: 2.934 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005459/0.5061, allocations: 2.009 MB / 0.5749 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006683/0.5067, allocations: 470.6 kB / 0.5753 GB, free: 472 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001217/0.508, allocations: 0.8247 MB / 0.5761 GB, free: 15.63 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009214/0.5172, allocations: 4.35 MB / 0.5804 GB, free: 11.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.5172, allocations: 0 / 0.5804 GB, free: 11.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.5172, allocations: 0 / 0.5804 GB, free: 11.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.806e-05/0.5172, allocations: 0 / 0.5804 GB, free: 11.27 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.004579/0.5218, allocations: 2.335 MB / 0.5827 GB, free: 8.887 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.5219, allocations: 8.031 kB / 0.5827 GB, free: 8.879 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.073e-05/0.5219, allocations: 43.5 kB / 0.5827 GB, free: 8.836 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002977/0.5222, allocations: 240.8 kB / 0.583 GB, free: 8.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/0.524, allocations: 447 kB / 0.5834 GB, free: 8.152 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.526, allocations: 1.019 MB / 0.5844 GB, free: 7.102 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002127/0.5262, allocations: 234.1 kB / 0.5846 GB, free: 6.848 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003211/0.5265, allocations: 168 kB / 0.5848 GB, free: 6.684 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003857/0.5304, allocations: 2.237 MB / 0.5869 GB, free: 4.379 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.878e-05/0.5304, allocations: 3.938 kB / 0.587 GB, free: 4.375 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001781/0.5306, allocations: 75.94 kB / 0.587 GB, free: 4.301 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.649e-05/0.5306, allocations: 40 kB / 0.5871 GB, free: 4.262 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00431/0.5349, allocations: 2.711 MB / 0.5897 GB, free: 1.543 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.01135/0.5463, allocations: 6.336 MB / 0.5959 GB, free: 11.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.5481, allocations: 0.9794 MB / 0.5969 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008804/0.549, allocations: 0.5096 MB / 0.5974 GB, free: 9.523 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007201/0.5562, allocations: 2.994 MB / 0.6003 GB, free: 6.508 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.5562, allocations: 43.2 kB / 0.6003 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005295/0.5568, allocations: 119 kB / 0.6004 GB, free: 6.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.105e-06/0.5568, allocations: 0 / 0.6004 GB, free: 6.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01997/0.5767, allocations: 4.562 MB / 0.6049 GB, free: 1.719 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.156e-05/0.5768, allocations: 119.8 kB / 0.605 GB, free: 1.574 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001886/0.5787, allocations: 1.498 MB / 0.6065 GB, free: 64 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.5788, allocations: 45.7 kB / 0.6065 GB, free: 12 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006995/0.5795, allocations: 0.9239 MB / 0.6074 GB, free: 15.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003479/0.5799, allocations: 361.1 kB / 0.6078 GB, free: 14.72 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005521/0.5804, allocations: 359.3 kB / 0.6081 GB, free: 14.36 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.5805, allocations: 301.1 kB / 0.6084 GB, free: 14.06 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.5816, allocations: 0.6325 MB / 0.609 GB, free: 13.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001681/0.5833, allocations: 1.341 MB / 0.6103 GB, free: 11.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002712/0.586, allocations: 1.937 MB / 0.6122 GB, free: 9.488 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.771e-05/0.586, allocations: 8 kB / 0.6122 GB, free: 9.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00612/0.5921, allocations: 2.386 MB / 0.6145 GB, free: 7.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.5922, allocations: 16.41 kB / 0.6146 GB, free: 7.055 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/0.5922, allocations: 28 kB / 0.6146 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002813/0.595, allocations: 374.8 kB / 0.6149 GB, free: 6.648 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002931/0.5979, allocations: 0.5617 MB / 0.6155 GB, free: 6.086 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00915/0.6071, allocations: 7.462 MB / 0.6228 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.6085, allocations: 84.09 kB / 0.6229 GB, free: 14.03 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002429/0.6088, allocations: 111.9 kB / 0.623 GB, free: 13.92 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.000697/0.6095, allocations: 376.4 kB / 0.6233 GB, free: 13.54 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003275/0.6098, allocations: 131.2 kB / 0.6234 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005015/0.6148, allocations: 1.527 MB / 0.6249 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/0.6148, allocations: 15.98 kB / 0.6249 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.6149, allocations: 0 / 0.6249 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.6149, allocations: 3.984 kB / 0.625 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00737/0.6222, allocations: 2.816 MB / 0.6277 GB, free: 8.879 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.6222, allocations: 8 kB / 0.6277 GB, free: 8.871 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000958/0.6232, allocations: 211.7 kB / 0.6279 GB, free: 8.664 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002907/0.6261, allocations: 408.9 kB / 0.6283 GB, free: 8.246 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.6262, allocations: 43.98 kB / 0.6283 GB, free: 8.203 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008604/0.6348, allocations: 7.264 MB / 0.6354 GB, free: 432 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.276e-05/0.6349, allocations: 11.94 kB / 0.6354 GB, free: 420 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005576/0.6404, allocations: 2.176 MB / 0.6376 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003921/0.6408, allocations: 127.2 kB / 0.6377 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002092/0.641, allocations: 36 kB / 0.6377 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007417/0.6418, allocations: 24 kB / 0.6378 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/0.642, allocations: 116.3 kB / 0.6379 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/0.6421, allocations: 47.98 kB / 0.6379 GB, free: 13.77 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001326/0.6434, allocations: 1.029 MB / 0.6389 GB, free: 12.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6434, allocations: 4 kB / 0.6389 GB, free: 12.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002872/0.6463, allocations: 0.8299 MB / 0.6397 GB, free: 11.9 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.007417/0.6537, allocations: 3.498 MB / 0.6431 GB, free: 8.258 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003632/0.6573, allocations: 1.703 MB / 0.6448 GB, free: 6.535 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.6573, allocations: 0 / 0.6448 GB, free: 6.535 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001539/0.6589, allocations: 0.9647 MB / 0.6457 GB, free: 5.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.6604, allocations: 238.3 kB / 0.646 GB, free: 5.293 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02402/0.6844, allocations: 13.47 MB / 0.6591 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007632/0.6852, allocations: 0.6332 MB / 0.6597 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001089/0.6863, allocations: 326.5 kB / 0.6601 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009522/0.6872, allocations: 0.6632 MB / 0.6607 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of SimCode: time 1.012e-06/0.6873, allocations: 0 / 0.6607 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0913/0.7786, allocations: 42.5 MB / 0.7022 GB, free: 10.96 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.11/28.89, allocations: 6.875 kB / 0.7022 GB, free: 10.95 MB / 0.545 GB " [Timeout remaining time 631] (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: 31.65895978990011] Failed to read output from testmodel.py, exit status != 0: 29.090893101063557 29.116574331 28.594367834 Calling exit ...