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.001454/0.001454, allocations: 98.08 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.001687/0.001687, allocations: 219.5 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.509/1.509, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.1425/0.1425, allocations: 23.88 MB / 337.1 MB, free: 11.18 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.002266/0.002266, allocations: 63.91 kB / 472 MB, free: 7.684 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3337, allocations: 59.86 MB / 0.5194 GB, free: 9.594 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.0444/0.3781, allocations: 30.9 MB / 0.5496 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03966/0.4177, allocations: 28.91 MB / 0.5778 GB, free: 14.3 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002037/0.4198, allocations: 31.75 kB / 0.5778 GB, free: 14.27 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002248/0.422, allocations: 0.6592 MB / 0.5785 GB, free: 13.6 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007225/0.4293, allocations: 2.216 MB / 0.5806 GB, free: 11.37 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.012/0.4413, allocations: 3.922 MB / 0.5845 GB, free: 7.426 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004879/0.4461, allocations: 2.863 MB / 0.5873 GB, free: 4.551 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002408/0.4485, allocations: 1.361 MB / 0.5886 GB, free: 3.141 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002421/0.451, allocations: 1.344 MB / 0.5899 GB, free: 1.793 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.4536, allocations: 1.51 MB / 0.5914 GB, free: 284 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007563/0.4544, allocations: 260 kB / 0.5916 GB, free: 24 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009673/0.4641, allocations: 3.147 MB / 0.5947 GB, free: 12.87 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009749/0.4651, allocations: 0.5997 MB / 0.5953 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002105/0.4672, allocations: 1.303 MB / 0.5966 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01415/0.4813, allocations: 6.206 MB / 0.6026 GB, free: 4.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4813, allocations: 0 / 0.6026 GB, free: 4.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4813, allocations: 0 / 0.6026 GB, free: 4.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.927e-05/0.4814, allocations: 0 / 0.6026 GB, free: 4.73 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.007521/0.4889, allocations: 3.092 MB / 0.6056 GB, free: 1.586 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.489, allocations: 8.031 kB / 0.6056 GB, free: 1.578 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.859e-05/0.489, allocations: 60.55 kB / 0.6057 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004709/0.4895, allocations: 308.3 kB / 0.606 GB, free: 1.203 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002574/0.4921, allocations: 0.557 MB / 0.6065 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002865/0.495, allocations: 1.246 MB / 0.6078 GB, free: 15.36 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002981/0.4952, allocations: 279 kB / 0.608 GB, free: 15.06 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000575/0.4958, allocations: 227.9 kB / 0.6082 GB, free: 14.84 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005705/0.5015, allocations: 2.671 MB / 0.6108 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.351e-05/0.5016, allocations: 0 / 0.6108 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002919/0.5019, allocations: 92 kB / 0.6109 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.848e-05/0.5019, allocations: 52 kB / 0.611 GB, free: 11.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006447/0.5084, allocations: 3.334 MB / 0.6142 GB, free: 8.594 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.01789/0.5262, allocations: 8.583 MB / 0.6226 GB, free: 15.67 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003257/0.5295, allocations: 1.542 MB / 0.6241 GB, free: 14.12 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001917/0.5314, allocations: 0.8547 MB / 0.625 GB, free: 13.26 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0134/0.5448, allocations: 4.534 MB / 0.6294 GB, free: 8.695 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/0.5449, allocations: 47.86 kB / 0.6294 GB, free: 8.641 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.366e-06/0.5449, allocations: 0 / 0.6294 GB, free: 8.641 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03272/0.5776, allocations: 8.118 MB / 0.6374 GB, free: 476 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.616e-05/0.5777, allocations: 99.11 kB / 0.6375 GB, free: 356 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/0.5795, allocations: 1.362 MB / 0.6388 GB, free: 14.97 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000225/0.5798, allocations: 57.7 kB / 0.6388 GB, free: 14.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008346/0.5806, allocations: 1.077 MB / 0.6399 GB, free: 13.82 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006893/0.5813, allocations: 0.6624 MB / 0.6405 GB, free: 13.15 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007821/0.5821, allocations: 481.1 kB / 0.641 GB, free: 12.67 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5822, allocations: 305.1 kB / 0.6413 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.5838, allocations: 0.8132 MB / 0.6421 GB, free: 11.55 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002344/0.5861, allocations: 1.669 MB / 0.6437 GB, free: 9.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004219/0.5903, allocations: 2.606 MB / 0.6463 GB, free: 6.516 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.449e-05/0.5904, allocations: 11.98 kB / 0.6463 GB, free: 6.504 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007775/0.5981, allocations: 3.054 MB / 0.6493 GB, free: 3.43 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/0.5982, allocations: 16 kB / 0.6493 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.267e-05/0.5982, allocations: 31.94 kB / 0.6493 GB, free: 3.383 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00324/0.6015, allocations: 0.5264 MB / 0.6498 GB, free: 2.844 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004042/0.6055, allocations: 0.8036 MB / 0.6506 GB, free: 2.039 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009908/0.6154, allocations: 7.619 MB / 0.658 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002001/0.6174, allocations: 103.8 kB / 0.6581 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004118/0.6178, allocations: 140.1 kB / 0.6583 GB, free: 9.672 MB / 0.4981 GB 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.001111/0.6189, allocations: 461.6 kB / 0.6587 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005084/0.6194, allocations: 174.9 kB / 0.6589 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007333/0.6268, allocations: 2.57 MB / 0.6614 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.473e-05/0.6268, allocations: 16 kB / 0.6614 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.6268, allocations: 8 kB / 0.6614 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.936e-05/0.6269, allocations: 7.969 kB / 0.6614 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/0.6387, allocations: 4.734 MB / 0.666 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.802e-05/0.6388, allocations: 12 kB / 0.6661 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001833/0.6406, allocations: 420.2 kB / 0.6665 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003488/0.6441, allocations: 0.5511 MB / 0.667 GB, free: 460 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003435/0.6444, allocations: 79.95 kB / 0.6671 GB, free: 380 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009408/0.6539, allocations: 7.423 MB / 0.6743 GB, free: 8.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.911e-05/0.6539, allocations: 15.94 kB / 0.6743 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008778/0.6626, allocations: 3.466 MB / 0.6777 GB, free: 4.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005878/0.6632, allocations: 186.7 kB / 0.6779 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004885/0.6637, allocations: 52 kB / 0.6779 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.6651, allocations: 51.98 kB / 0.678 GB, free: 4.484 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004452/0.6655, allocations: 200.6 kB / 0.6782 GB, free: 4.285 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002666/0.6658, allocations: 91.97 kB / 0.6783 GB, free: 4.195 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001505/0.6673, allocations: 0.9006 MB / 0.6792 GB, free: 3.293 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.6673, allocations: 0 / 0.6792 GB, free: 3.293 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004602/0.6719, allocations: 1.212 MB / 0.6803 GB, free: 2.078 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.01193/0.6838, allocations: 5.234 MB / 0.6854 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005651/0.6895, allocations: 2.362 MB / 0.6878 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.6895, allocations: 4 kB / 0.6878 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002585/0.6921, allocations: 1.371 MB / 0.6891 GB, free: 8.84 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002652/0.6947, allocations: 352.2 kB / 0.6894 GB, free: 8.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03581/0.7305, allocations: 17 MB / 0.706 GB, free: 6.129 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001479/0.732, allocations: 1.44 MB / 0.7074 GB, free: 4.652 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001921/0.7339, allocations: 462.3 kB / 0.7079 GB, free: 4.195 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001733/0.7357, allocations: 0.9561 MB / 0.7088 GB, free: 3.238 MB / 0.545 GB Notification: Performance of SimCode: time 1.413e-06/0.7357, allocations: 4 kB / 0.7088 GB, free: 3.234 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3431/1.079, allocations: 60.74 MB / 0.7681 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.07/21.15, allocations: 7.062 kB / 0.7681 GB, free: 156.7 MB / 0.5606 GB " [Timeout remaining time 639] (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 sys.exit(0), Time elapsed: 24.22997435403522] Failed to read output from testmodel.py, exit status != 0: 21.36095576605294 21.376196084 20.891421704 Calling exit ...