Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.00133/0.00133, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001577/0.001577, allocations: 215.9 kB / 23.03 MB, free: 4.949 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.422/1.422, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.1391/0.1391, allocations: 23.91 MB / 337.1 MB, free: 10.94 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_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.001985/0.001985, allocations: 67.91 kB / 471.9 MB, free: 7.48 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3059, allocations: 59.87 MB / 0.5193 GB, free: 9.527 MB / 382.1 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.H2O_ElectrochemicalCell): time 0.07367/0.3795, allocations: 27.88 MB / 0.5466 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02513/0.4047, allocations: 17.11 MB / 0.5633 GB, free: 12.26 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002033/0.4067, allocations: 27.75 kB / 0.5633 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001648/0.4084, allocations: 463.1 kB / 0.5637 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004034/0.4124, allocations: 1.205 MB / 0.5649 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00815/0.4205, allocations: 2.888 MB / 0.5677 GB, free: 8.285 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003521/0.4241, allocations: 2.102 MB / 0.5698 GB, free: 6.172 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.4256, allocations: 1.069 MB / 0.5708 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001286/0.4269, allocations: 0.931 MB / 0.5717 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001597/0.4285, allocations: 1.078 MB / 0.5728 GB, free: 3.039 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003102/0.4288, allocations: 196 kB / 0.573 GB, free: 2.848 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005628/0.4344, allocations: 2.013 MB / 0.5749 GB, free: 0.832 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006047/0.435, allocations: 466.6 kB / 0.5754 GB, free: 384 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.4361, allocations: 0.8286 MB / 0.5762 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009275/0.4454, allocations: 4.342 MB / 0.5804 GB, free: 11.18 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.4454, allocations: 4 kB / 0.5804 GB, free: 11.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4454, allocations: 0 / 0.5804 GB, free: 11.18 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.899e-05/0.4455, allocations: 3.938 kB / 0.5804 GB, free: 11.18 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.004497/0.45, allocations: 2.326 MB / 0.5827 GB, free: 8.809 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.45, allocations: 19.91 kB / 0.5827 GB, free: 8.789 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.471e-05/0.4501, allocations: 51.5 kB / 0.5828 GB, free: 8.738 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000287/0.4503, allocations: 232.8 kB / 0.583 GB, free: 8.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001744/0.4521, allocations: 451 kB / 0.5834 GB, free: 8.059 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001917/0.454, allocations: 1.019 MB / 0.5844 GB, free: 7.008 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/0.4542, allocations: 238.1 kB / 0.5847 GB, free: 6.75 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002809/0.4545, allocations: 160 kB / 0.5848 GB, free: 6.594 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003614/0.4581, allocations: 2.245 MB / 0.587 GB, free: 4.285 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.014e-05/0.4582, allocations: 7.922 kB / 0.587 GB, free: 4.277 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001726/0.4583, allocations: 68 kB / 0.5871 GB, free: 4.211 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-05/0.4584, allocations: 40 kB / 0.5871 GB, free: 4.172 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004114/0.4625, allocations: 2.715 MB / 0.5898 GB, free: 1.449 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.01055/0.473, allocations: 6.332 MB / 0.5959 GB, free: 10.96 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.4748, allocations: 0.9716 MB / 0.5969 GB, free: 9.965 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008857/0.4757, allocations: 0.5174 MB / 0.5974 GB, free: 9.434 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006922/0.4826, allocations: 2.986 MB / 0.6003 GB, free: 6.426 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.4826, allocations: 47.16 kB / 0.6004 GB, free: 6.371 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005231/0.4832, allocations: 122.9 kB / 0.6005 GB, free: 6.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.936e-06/0.4832, allocations: 0 / 0.6005 GB, free: 6.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01925/0.5024, allocations: 4.562 MB / 0.6049 GB, free: 1.629 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/0.5025, allocations: 111.8 kB / 0.605 GB, free: 1.492 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/0.5043, allocations: 1.502 MB / 0.6065 GB, free: 15.97 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.502e-05/0.5044, allocations: 41.7 kB / 0.6065 GB, free: 15.93 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006549/0.505, allocations: 0.9239 MB / 0.6075 GB, free: 14.99 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003048/0.5053, allocations: 361 kB / 0.6078 GB, free: 14.63 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005405/0.5059, allocations: 363.3 kB / 0.6081 GB, free: 14.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.506, allocations: 301.1 kB / 0.6084 GB, free: 13.97 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.507, allocations: 0.6364 MB / 0.6091 GB, free: 13.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.5086, allocations: 1.341 MB / 0.6104 GB, free: 11.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002598/0.5112, allocations: 1.925 MB / 0.6122 GB, free: 9.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/0.5113, allocations: 8 kB / 0.6122 GB, free: 9.402 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005784/0.517, allocations: 2.387 MB / 0.6146 GB, free: 6.992 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.5171, allocations: 19.94 kB / 0.6146 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.105e-05/0.5171, allocations: 32 kB / 0.6146 GB, free: 6.941 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002697/0.5198, allocations: 378.8 kB / 0.615 GB, free: 6.559 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002802/0.5226, allocations: 0.5617 MB / 0.6155 GB, free: 5.996 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009132/0.5317, allocations: 7.454 MB / 0.6228 GB, free: 14.03 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.5333, allocations: 92.09 kB / 0.6229 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002286/0.5335, allocations: 99.98 kB / 0.623 GB, free: 13.84 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.0007263/0.5342, allocations: 373.5 kB / 0.6234 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003445/0.5346, allocations: 131.2 kB / 0.6235 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004886/0.5395, allocations: 1.531 MB / 0.625 GB, free: 11.78 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.5395, allocations: 15.98 kB / 0.625 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.5395, allocations: 0 / 0.625 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.5395, allocations: 7.984 kB / 0.625 GB, free: 11.76 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007283/0.5468, allocations: 2.815 MB / 0.6277 GB, free: 8.793 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.5468, allocations: 8 kB / 0.6278 GB, free: 8.785 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008953/0.5477, allocations: 215.7 kB / 0.628 GB, free: 8.574 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002887/0.5506, allocations: 401 kB / 0.6283 GB, free: 8.164 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.5507, allocations: 39.98 kB / 0.6284 GB, free: 8.125 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008496/0.5592, allocations: 7.264 MB / 0.6355 GB, free: 352 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.309e-05/0.5592, allocations: 11.94 kB / 0.6355 GB, free: 340 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005326/0.5645, allocations: 2.172 MB / 0.6376 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004326/0.5649, allocations: 131.1 kB / 0.6377 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.5651, allocations: 31.98 kB / 0.6378 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007361/0.5659, allocations: 28 kB / 0.6378 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.5661, allocations: 116.2 kB / 0.6379 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.737e-05/0.5662, allocations: 51.98 kB / 0.638 GB, free: 13.69 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001284/0.5675, allocations: 1.033 MB / 0.639 GB, free: 12.65 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5675, allocations: 4 kB / 0.639 GB, free: 12.64 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002816/0.5703, allocations: 0.826 MB / 0.6398 GB, free: 11.82 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.007051/0.5773, allocations: 3.494 MB / 0.6432 GB, free: 8.18 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003506/0.5809, allocations: 1.703 MB / 0.6448 GB, free: 6.457 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.5809, allocations: 0 / 0.6448 GB, free: 6.457 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.5823, allocations: 0.9647 MB / 0.6458 GB, free: 5.441 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00153/0.5839, allocations: 228.9 kB / 0.646 GB, free: 5.215 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02346/0.6073, allocations: 13.47 MB / 0.6592 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007245/0.608, allocations: 0.6332 MB / 0.6598 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001064/0.6091, allocations: 326.5 kB / 0.6601 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009222/0.61, allocations: 0.6633 MB / 0.6607 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of SimCode: time 9.22e-07/0.61, allocations: 0 / 0.6607 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08918/0.6992, allocations: 42.51 MB / 0.7023 GB, free: 10.87 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.97/28.67, allocations: 10.11 kB / 0.7023 GB, free: 10.86 MB / 0.545 GB " [Timeout remaining time 631] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 31.45304583001416] Failed to read output from testmodel.py, exit status != 0: 28.869626782950945 28.894169413 28.444255808 Calling exit ...