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.001358/0.001358, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001633/0.001633, allocations: 212.8 kB / 22.25 MB, free: 4.855 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.436/1.436, allocations: 230.6 MB / 256 MB, free: 7.809 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.1323/0.1323, allocations: 24 MB / 336.4 MB, free: 10.87 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_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.002071/0.002071, allocations: 75.83 kB / 471.3 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3469, allocations: 59.89 MB / 0.5187 GB, free: 9.441 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.07463/0.4215, allocations: 29.94 MB / 0.548 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04888/0.4704, allocations: 25.3 MB / 0.5727 GB, free: 2.477 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003208/0.4736, allocations: 31.75 kB / 0.5727 GB, free: 2.445 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003714/0.4773, allocations: 0.593 MB / 0.5733 GB, free: 1.848 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01301/0.4903, allocations: 2.161 MB / 0.5754 GB, free: 15.67 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01995/0.5103, allocations: 3.922 MB / 0.5792 GB, free: 11.72 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.007381/0.5176, allocations: 2.863 MB / 0.582 GB, free: 8.852 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003142/0.5208, allocations: 1.338 MB / 0.5833 GB, free: 7.465 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003348/0.5241, allocations: 1.344 MB / 0.5846 GB, free: 6.117 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004195/0.5283, allocations: 1.331 MB / 0.5859 GB, free: 4.781 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009826/0.5293, allocations: 260 kB / 0.5862 GB, free: 4.527 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01365/0.543, allocations: 2.968 MB / 0.5891 GB, free: 1.555 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001525/0.5445, allocations: 0.5959 MB / 0.5897 GB, free: 0.957 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002451/0.5469, allocations: 1.097 MB / 0.5907 GB, free: 15.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02005/0.567, allocations: 6.19 MB / 0.5968 GB, free: 9.641 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.139e-05/0.567, allocations: 0 / 0.5968 GB, free: 9.641 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.659e-06/0.567, allocations: 4 kB / 0.5968 GB, free: 9.637 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001372/0.5671, allocations: 0 / 0.5968 GB, free: 9.637 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.008052/0.5752, allocations: 3.084 MB / 0.5998 GB, free: 6.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.5752, allocations: 8.031 kB / 0.5998 GB, free: 6.492 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004438/0.5757, allocations: 308.2 kB / 0.6001 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002385/0.5781, allocations: 0.557 MB / 0.6007 GB, free: 5.621 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.5808, allocations: 1.243 MB / 0.6019 GB, free: 4.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.5811, allocations: 287.2 kB / 0.6021 GB, free: 4.031 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004316/0.5815, allocations: 220 kB / 0.6024 GB, free: 3.816 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004812/0.5863, allocations: 2.683 MB / 0.605 GB, free: 1.043 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.369e-05/0.5863, allocations: 0 / 0.605 GB, free: 1.043 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/0.5866, allocations: 88 kB / 0.6051 GB, free: 0.957 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-05/0.5866, allocations: 52 kB / 0.6051 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005724/0.5923, allocations: 3.306 MB / 0.6083 GB, free: 13.59 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.01464/0.607, allocations: 7.244 MB / 0.6154 GB, free: 6.199 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002775/0.6098, allocations: 1.527 MB / 0.6169 GB, free: 4.668 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.6113, allocations: 0.8548 MB / 0.6177 GB, free: 3.801 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01128/0.6225, allocations: 4.293 MB / 0.6219 GB, free: 15.48 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.35e-05/0.6226, allocations: 47.81 kB / 0.622 GB, free: 15.43 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 4.558e-06/0.6226, allocations: 0 / 0.622 GB, free: 15.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03183/0.6544, allocations: 8.103 MB / 0.6299 GB, free: 7.27 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.581e-05/0.6545, allocations: 95.11 kB / 0.63 GB, free: 7.156 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002064/0.6566, allocations: 1.42 MB / 0.6314 GB, free: 5.719 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002184/0.6568, allocations: 57.64 kB / 0.6314 GB, free: 5.656 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008376/0.6576, allocations: 1.073 MB / 0.6325 GB, free: 4.57 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008073/0.6584, allocations: 0.6624 MB / 0.6331 GB, free: 3.902 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007474/0.6592, allocations: 481 kB / 0.6336 GB, free: 3.426 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.6593, allocations: 301.1 kB / 0.6339 GB, free: 3.129 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001573/0.6609, allocations: 0.8249 MB / 0.6347 GB, free: 2.301 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002394/0.6633, allocations: 1.658 MB / 0.6363 GB, free: 264 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004209/0.6675, allocations: 2.61 MB / 0.6388 GB, free: 13.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.643e-05/0.6676, allocations: 8 kB / 0.6388 GB, free: 13.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007519/0.6751, allocations: 3.054 MB / 0.6418 GB, free: 10.19 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.121e-05/0.6751, allocations: 20.34 kB / 0.6418 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.955e-05/0.6752, allocations: 32 kB / 0.6419 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003273/0.6785, allocations: 0.5104 MB / 0.6424 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004086/0.6825, allocations: 0.8075 MB / 0.6432 GB, free: 8.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009913/0.6925, allocations: 7.607 MB / 0.6506 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/0.6945, allocations: 100.1 kB / 0.6507 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003508/0.6949, allocations: 147.9 kB / 0.6508 GB, free: 456 kB / 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.001159/0.696, allocations: 457 kB / 0.6513 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005014/0.6965, allocations: 170.9 kB / 0.6514 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006904/0.7034, allocations: 2.574 MB / 0.6539 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/0.7034, allocations: 20 kB / 0.654 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.7035, allocations: 0 / 0.654 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.5e-05/0.7035, allocations: 11.95 kB / 0.654 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.7141, allocations: 4.47 MB / 0.6583 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-05/0.7142, allocations: 12 kB / 0.6583 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/0.7159, allocations: 419.5 kB / 0.6587 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003319/0.7192, allocations: 0.5469 MB / 0.6593 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002435/0.7194, allocations: 87.97 kB / 0.6594 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009272/0.7287, allocations: 7.384 MB / 0.6666 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.485e-05/0.7287, allocations: 19.94 kB / 0.6666 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007447/0.7362, allocations: 3.459 MB / 0.67 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000511/0.7367, allocations: 174.8 kB / 0.6701 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002571/0.7369, allocations: 63.98 kB / 0.6702 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009689/0.7379, allocations: 51.94 kB / 0.6702 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003341/0.7382, allocations: 196.7 kB / 0.6704 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001666/0.7384, allocations: 95.95 kB / 0.6705 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001277/0.7397, allocations: 0.8967 MB / 0.6714 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7397, allocations: 0 / 0.6714 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003906/0.7436, allocations: 1.212 MB / 0.6726 GB, free: 9.164 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.01031/0.7539, allocations: 5.242 MB / 0.6777 GB, free: 3.723 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005338/0.7592, allocations: 2.37 MB / 0.68 GB, free: 1.332 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/0.7593, allocations: 4 kB / 0.68 GB, free: 1.328 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002515/0.7618, allocations: 1.364 MB / 0.6814 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/0.7639, allocations: 344.7 kB / 0.6817 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03136/0.7952, allocations: 17 MB / 0.6983 GB, free: 13.22 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/0.7963, allocations: 0.8617 MB / 0.6991 GB, free: 12.32 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001747/0.7981, allocations: 470.3 kB / 0.6996 GB, free: 11.86 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001459/0.7995, allocations: 0.96 MB / 0.7005 GB, free: 10.89 MB / 0.545 GB Notification: Performance of SimCode: time 1.312e-06/0.7995, allocations: 4 kB / 0.7005 GB, free: 10.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4207/1.22, allocations: 60.21 MB / 0.7593 GB, free: 166.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.04/17.26, allocations: 0 / 0.7593 GB, free: 166.8 MB / 0.5606 GB " [Timeout remaining time 643] (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: 19.932285580784082] Failed to read output from testmodel.py, exit status != 0: 17.418475395068526 17.430115124 16.860169139 Calling exit ...