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.001646/0.001646, allocations: 98.33 kB / 19.73 MB, free: 2.23 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.002533/0.002533, allocations: 215.9 kB / 23.04 MB, free: 5.074 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.514/1.514, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.1366/0.1366, allocations: 23.85 MB / 337.1 MB, free: 11.28 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.001979/0.001979, allocations: 63.89 kB / 471.9 MB, free: 7.715 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.298, allocations: 59.86 MB / 0.5193 GB, free: 9.605 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.03886/0.3369, allocations: 28.92 MB / 0.5476 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02547/0.3623, allocations: 19.54 MB / 0.5667 GB, free: 9.062 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001947/0.3643, allocations: 23.81 kB / 0.5667 GB, free: 9.039 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002417/0.3667, allocations: 0.5031 MB / 0.5672 GB, free: 8.645 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005242/0.3719, allocations: 1.244 MB / 0.5684 GB, free: 7.586 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008978/0.3809, allocations: 2.885 MB / 0.5712 GB, free: 5.027 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003709/0.3846, allocations: 2.09 MB / 0.5732 GB, free: 2.926 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.3864, allocations: 1.077 MB / 0.5743 GB, free: 1.801 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.3879, allocations: 0.9387 MB / 0.5752 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001874/0.3898, allocations: 1.062 MB / 0.5763 GB, free: 15.79 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005121/0.3903, allocations: 200 kB / 0.5764 GB, free: 15.6 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006741/0.397, allocations: 2.09 MB / 0.5785 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006655/0.3977, allocations: 470.6 kB / 0.5789 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001294/0.399, allocations: 0.9878 MB / 0.5799 GB, free: 12.05 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009302/0.4083, allocations: 4.354 MB / 0.5841 GB, free: 7.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4083, allocations: 0 / 0.5841 GB, free: 7.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4083, allocations: 0 / 0.5841 GB, free: 7.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.646e-05/0.4084, allocations: 0 / 0.5841 GB, free: 7.68 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.004615/0.413, allocations: 2.331 MB / 0.5864 GB, free: 5.305 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.413, allocations: 12.03 kB / 0.5864 GB, free: 5.293 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.623e-05/0.4131, allocations: 43.5 kB / 0.5865 GB, free: 5.25 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000287/0.4134, allocations: 240.8 kB / 0.5867 GB, free: 5.004 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001711/0.4151, allocations: 443 kB / 0.5871 GB, free: 4.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.417, allocations: 1.026 MB / 0.5881 GB, free: 3.512 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002101/0.4172, allocations: 234.1 kB / 0.5884 GB, free: 3.258 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002778/0.4175, allocations: 168 kB / 0.5885 GB, free: 3.094 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003623/0.4211, allocations: 2.245 MB / 0.5907 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.4212, allocations: 0 / 0.5907 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001664/0.4213, allocations: 68 kB / 0.5908 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.689e-05/0.4214, allocations: 40 kB / 0.5908 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004238/0.4256, allocations: 2.719 MB / 0.5935 GB, free: 13.95 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.01174/0.4374, allocations: 7.222 MB / 0.6005 GB, free: 6.453 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/0.4392, allocations: 0.983 MB / 0.6015 GB, free: 5.445 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008801/0.4401, allocations: 0.5174 MB / 0.602 GB, free: 4.914 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007373/0.4475, allocations: 3.157 MB / 0.6051 GB, free: 1.734 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.4475, allocations: 39.22 kB / 0.6051 GB, free: 1.688 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005315/0.448, allocations: 119 kB / 0.6052 GB, free: 1.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.006e-06/0.448, allocations: 4 kB / 0.6052 GB, free: 1.566 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01865/0.4667, allocations: 4.566 MB / 0.6097 GB, free: 12.94 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.535e-05/0.4668, allocations: 115.8 kB / 0.6098 GB, free: 12.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001975/0.4688, allocations: 1.494 MB / 0.6113 GB, free: 11.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.4689, allocations: 45.7 kB / 0.6113 GB, free: 11.24 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006925/0.4696, allocations: 0.92 MB / 0.6122 GB, free: 10.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003658/0.4699, allocations: 365.1 kB / 0.6125 GB, free: 9.945 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005323/0.4705, allocations: 359.3 kB / 0.6129 GB, free: 9.586 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4706, allocations: 301.1 kB / 0.6132 GB, free: 9.289 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.4716, allocations: 0.6325 MB / 0.6138 GB, free: 8.656 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/0.4734, allocations: 1.345 MB / 0.6151 GB, free: 6.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002991/0.4764, allocations: 1.929 MB / 0.617 GB, free: 4.723 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.4764, allocations: 8 kB / 0.617 GB, free: 4.715 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005808/0.4822, allocations: 2.382 MB / 0.6193 GB, free: 2.309 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/0.4822, allocations: 19.94 kB / 0.6193 GB, free: 2.289 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.764e-05/0.4823, allocations: 24.47 kB / 0.6194 GB, free: 2.266 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00246/0.4847, allocations: 382.8 kB / 0.6197 GB, free: 1.879 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002739/0.4875, allocations: 0.5617 MB / 0.6203 GB, free: 1.316 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009124/0.4966, allocations: 7.489 MB / 0.6276 GB, free: 9.312 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.4981, allocations: 88.03 kB / 0.6277 GB, free: 9.227 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002099/0.4983, allocations: 108 kB / 0.6278 GB, free: 9.121 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.00071/0.499, allocations: 369.6 kB / 0.6281 GB, free: 8.75 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003202/0.4993, allocations: 139.1 kB / 0.6283 GB, free: 8.613 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004736/0.5041, allocations: 1.527 MB / 0.6298 GB, free: 7.062 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.5041, allocations: 12 kB / 0.6298 GB, free: 7.051 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5041, allocations: 0 / 0.6298 GB, free: 7.051 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.5041, allocations: 3.984 kB / 0.6298 GB, free: 7.047 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007148/0.5112, allocations: 2.975 MB / 0.6327 GB, free: 3.922 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/0.5112, allocations: 11.98 kB / 0.6327 GB, free: 3.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008985/0.5121, allocations: 211.7 kB / 0.6329 GB, free: 3.703 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002656/0.5148, allocations: 413.3 kB / 0.6333 GB, free: 3.281 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/0.515, allocations: 43.92 kB / 0.6333 GB, free: 3.238 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008561/0.5235, allocations: 7.303 MB / 0.6405 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/0.5235, allocations: 8 kB / 0.6405 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005425/0.5289, allocations: 2.168 MB / 0.6426 GB, free: 9.121 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004267/0.5294, allocations: 127.2 kB / 0.6427 GB, free: 8.996 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001921/0.5296, allocations: 32 kB / 0.6427 GB, free: 8.965 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006927/0.5303, allocations: 28.11 kB / 0.6428 GB, free: 8.938 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.5305, allocations: 120.2 kB / 0.6429 GB, free: 8.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.945e-05/0.5306, allocations: 43.98 kB / 0.6429 GB, free: 8.777 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001361/0.5319, allocations: 1.036 MB / 0.6439 GB, free: 7.734 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5319, allocations: 0 / 0.6439 GB, free: 7.734 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002992/0.5349, allocations: 0.8299 MB / 0.6447 GB, free: 6.902 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.007201/0.5421, allocations: 3.509 MB / 0.6482 GB, free: 3.254 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003603/0.5457, allocations: 1.699 MB / 0.6498 GB, free: 1.535 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.5457, allocations: 0 / 0.6498 GB, free: 1.535 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.5472, allocations: 0.9606 MB / 0.6508 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.5488, allocations: 234.3 kB / 0.651 GB, free: 304 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02393/0.5727, allocations: 13.48 MB / 0.6641 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.5737, allocations: 1.223 MB / 0.6653 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001114/0.5749, allocations: 318.5 kB / 0.6656 GB, free: 220 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009386/0.5758, allocations: 0.6672 MB / 0.6663 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of SimCode: time 1.163e-06/0.5758, allocations: 3.938 kB / 0.6663 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08921/0.665, allocations: 42.37 MB / 0.7077 GB, free: 5.387 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.79/28.45, allocations: 4.062 kB / 0.7077 GB, free: 5.383 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 sys.exit(0), Time elapsed: 31.46400495094713] Failed to read output from testmodel.py, exit status != 0: 28.649828293011524 28.674025946 28.260951496 Calling exit ...