Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.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.001288/0.001288, 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.001418/0.001418, allocations: 221.2 kB / 23.03 MB, free: 4.945 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.478/1.478, 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.1452/0.1452, allocations: 23.92 MB / 337.1 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 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.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_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.002072/0.002072, allocations: 63.91 kB / 471.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3401, allocations: 59.87 MB / 0.5193 GB, free: 9.543 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.ElectrochemicalCell): time 0.07831/0.4184, allocations: 29.55 MB / 0.5482 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0356/0.454, allocations: 25.28 MB / 0.5729 GB, free: 2.992 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001969/0.456, allocations: 35.75 kB / 0.5729 GB, free: 2.957 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002052/0.458, allocations: 0.5891 MB / 0.5735 GB, free: 2.363 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007062/0.4651, allocations: 2.169 MB / 0.5756 GB, free: 184 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0111/0.4762, allocations: 3.926 MB / 0.5794 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004467/0.4807, allocations: 2.848 MB / 0.5822 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002005/0.4827, allocations: 1.369 MB / 0.5836 GB, free: 7.953 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001913/0.4846, allocations: 1.348 MB / 0.5849 GB, free: 6.602 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002589/0.4872, allocations: 1.506 MB / 0.5864 GB, free: 5.09 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000648/0.4878, allocations: 264 kB / 0.5866 GB, free: 4.832 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0099/0.4977, allocations: 3.034 MB / 0.5896 GB, free: 1.793 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00105/0.4988, allocations: 0.6075 MB / 0.5902 GB, free: 1.184 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001751/0.5005, allocations: 1.097 MB / 0.5912 GB, free: 84 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01439/0.5149, allocations: 6.179 MB / 0.5973 GB, free: 9.879 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.5149, allocations: 0 / 0.5973 GB, free: 9.879 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5149, allocations: 0 / 0.5973 GB, free: 9.879 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.361e-05/0.515, allocations: 0 / 0.5973 GB, free: 9.879 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.0071/0.5221, allocations: 3.092 MB / 0.6003 GB, free: 6.734 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.5222, allocations: 8.031 kB / 0.6003 GB, free: 6.727 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.081e-05/0.5223, allocations: 56.55 kB / 0.6003 GB, free: 6.668 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000415/0.5227, allocations: 308.3 kB / 0.6006 GB, free: 6.355 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002564/0.5252, allocations: 0.557 MB / 0.6012 GB, free: 5.797 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002607/0.5278, allocations: 1.243 MB / 0.6024 GB, free: 4.516 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002886/0.5281, allocations: 279.1 kB / 0.6027 GB, free: 4.215 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004804/0.5286, allocations: 231.9 kB / 0.6029 GB, free: 3.988 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005126/0.5337, allocations: 2.686 MB / 0.6055 GB, free: 1.211 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.446e-05/0.5338, allocations: 0 / 0.6055 GB, free: 1.211 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002416/0.534, allocations: 92 kB / 0.6056 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-05/0.5341, allocations: 56 kB / 0.6056 GB, free: 1.066 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005871/0.5399, allocations: 3.322 MB / 0.6089 GB, free: 13.73 MB / 462.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.01507/0.555, allocations: 7.248 MB / 0.616 GB, free: 6.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002858/0.5579, allocations: 1.528 MB / 0.6175 GB, free: 4.809 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/0.5594, allocations: 0.8508 MB / 0.6183 GB, free: 3.945 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01114/0.5706, allocations: 4.289 MB / 0.6225 GB, free: 15.63 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/0.5706, allocations: 51.81 kB / 0.6225 GB, free: 15.57 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 4.178e-06/0.5706, allocations: 0 / 0.6225 GB, free: 15.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03372/0.6043, allocations: 8.115 MB / 0.6305 GB, free: 7.402 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.356e-05/0.6044, allocations: 103 kB / 0.6306 GB, free: 7.281 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001898/0.6063, allocations: 1.366 MB / 0.6319 GB, free: 5.898 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001728/0.6065, allocations: 53.7 kB / 0.6319 GB, free: 5.84 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000854/0.6073, allocations: 1.089 MB / 0.633 GB, free: 4.738 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000653/0.608, allocations: 0.6546 MB / 0.6336 GB, free: 4.078 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007483/0.6087, allocations: 481.1 kB / 0.6341 GB, free: 3.602 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.6089, allocations: 301.1 kB / 0.6344 GB, free: 3.305 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001487/0.6104, allocations: 0.821 MB / 0.6352 GB, free: 2.48 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002223/0.6126, allocations: 1.654 MB / 0.6368 GB, free: 452 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003867/0.6164, allocations: 2.61 MB / 0.6394 GB, free: 13.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/0.6165, allocations: 8 kB / 0.6394 GB, free: 13.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007323/0.6238, allocations: 3.058 MB / 0.6423 GB, free: 10.37 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.6238, allocations: 20 kB / 0.6424 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-05/0.6239, allocations: 24 kB / 0.6424 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003428/0.6273, allocations: 0.5341 MB / 0.6429 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003985/0.6313, allocations: 0.7958 MB / 0.6437 GB, free: 8.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009684/0.641, allocations: 7.603 MB / 0.6511 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/0.6429, allocations: 95.84 kB / 0.6512 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000291/0.6432, allocations: 144 kB / 0.6513 GB, free: 0.6328 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * 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,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009351/0.6442, allocations: 457.6 kB / 0.6518 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003952/0.6446, allocations: 170.9 kB / 0.6519 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00719/0.6518, allocations: 2.57 MB / 0.6545 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-05/0.6518, allocations: 27.98 kB / 0.6545 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.6518, allocations: 0 / 0.6545 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.572e-05/0.6518, allocations: 7.969 kB / 0.6545 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01055/0.6624, allocations: 4.461 MB / 0.6588 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.926e-05/0.6624, allocations: 12 kB / 0.6589 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001735/0.6641, allocations: 423.9 kB / 0.6593 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003558/0.6677, allocations: 0.5433 MB / 0.6598 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002393/0.6679, allocations: 79.97 kB / 0.6599 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008943/0.6769, allocations: 7.388 MB / 0.6671 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.345e-05/0.6769, allocations: 20.06 kB / 0.6671 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007461/0.6843, allocations: 3.47 MB / 0.6705 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004596/0.6848, allocations: 174.7 kB / 0.6707 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002867/0.6851, allocations: 59.98 kB / 0.6707 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.6861, allocations: 44 kB / 0.6708 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003485/0.6865, allocations: 200.7 kB / 0.6709 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001828/0.6867, allocations: 99.97 kB / 0.671 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00122/0.6879, allocations: 0.9006 MB / 0.6719 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6879, allocations: 0 / 0.6719 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00366/0.6915, allocations: 1.212 MB / 0.6731 GB, free: 9.352 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * 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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01035/0.7019, allocations: 5.242 MB / 0.6782 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005242/0.7071, allocations: 2.365 MB / 0.6805 GB, free: 1.523 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-05/0.7071, allocations: 4 kB / 0.6805 GB, free: 1.52 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002203/0.7093, allocations: 1.36 MB / 0.6819 GB, free: 112 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.7113, allocations: 350.3 kB / 0.6822 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03022/0.7416, allocations: 17 MB / 0.6988 GB, free: 13.41 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009895/0.7426, allocations: 0.8616 MB / 0.6996 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001619/0.7442, allocations: 466.3 kB / 0.7001 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/0.7456, allocations: 0.9678 MB / 0.701 GB, free: 11.07 MB / 0.545 GB Notification: Performance of SimCode: time 7.61e-07/0.7456, allocations: 4 kB / 0.701 GB, free: 11.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3601/1.106, allocations: 60.73 MB / 0.7603 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.52/21.62, allocations: 11.03 kB / 0.7603 GB, free: 166.9 MB / 0.5606 GB " [Timeout remaining time 638] (rm -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.42582521797158] Failed to read output from testmodel.py, exit status != 0: 21.83527854294516 21.846700316 21.32910197 Calling exit ...