Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001271/0.001271, allocations: 101.5 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.001392/0.001392, allocations: 219.8 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.431/1.431, 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.14/0.14, allocations: 23.84 MB / 337.1 MB, free: 11.2 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.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_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.001915/0.001915, allocations: 64.19 kB / 471.9 MB, free: 7.691 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3073, allocations: 59.87 MB / 0.5193 GB, free: 9.812 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.ElectrochemicalCell): time 0.04758/0.3549, allocations: 30.89 MB / 0.5495 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0408/0.3957, allocations: 28.92 MB / 0.5778 GB, free: 14.43 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002137/0.3978, allocations: 31.75 kB / 0.5778 GB, free: 14.39 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002432/0.4003, allocations: 0.6553 MB / 0.5784 GB, free: 13.73 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008221/0.4085, allocations: 2.216 MB / 0.5806 GB, free: 11.5 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01361/0.4221, allocations: 3.93 MB / 0.5844 GB, free: 7.551 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005904/0.428, allocations: 2.848 MB / 0.5872 GB, free: 4.691 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002442/0.4304, allocations: 1.369 MB / 0.5885 GB, free: 3.273 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002284/0.4327, allocations: 1.344 MB / 0.5899 GB, free: 1.926 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002864/0.4356, allocations: 1.506 MB / 0.5913 GB, free: 424 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007224/0.4363, allocations: 264 kB / 0.5916 GB, free: 160 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01046/0.4468, allocations: 3.151 MB / 0.5947 GB, free: 13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009876/0.4478, allocations: 0.5959 MB / 0.5952 GB, free: 12.4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001902/0.4497, allocations: 1.311 MB / 0.5965 GB, free: 11.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01465/0.4643, allocations: 6.198 MB / 0.6026 GB, free: 4.863 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4643, allocations: 0 / 0.6026 GB, free: 4.863 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4643, allocations: 0 / 0.6026 GB, free: 4.863 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.438e-05/0.4644, allocations: 0 / 0.6026 GB, free: 4.863 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.006851/0.4712, allocations: 3.088 MB / 0.6056 GB, free: 1.723 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.4713, allocations: 12.03 kB / 0.6056 GB, free: 1.711 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.29e-05/0.4714, allocations: 56.55 kB / 0.6056 GB, free: 1.652 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003798/0.4717, allocations: 304.2 kB / 0.6059 GB, free: 1.344 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002394/0.4741, allocations: 0.5648 MB / 0.6065 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002748/0.4769, allocations: 1.231 MB / 0.6077 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003107/0.4772, allocations: 283.1 kB / 0.608 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005073/0.4777, allocations: 224 kB / 0.6082 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005187/0.4829, allocations: 2.679 MB / 0.6108 GB, free: 12.21 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.335e-05/0.4829, allocations: 4 kB / 0.6108 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002255/0.4831, allocations: 92 kB / 0.6109 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.226e-05/0.4832, allocations: 55.98 kB / 0.6109 GB, free: 12.06 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00601/0.4892, allocations: 3.322 MB / 0.6142 GB, free: 8.734 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.01692/0.5061, allocations: 8.599 MB / 0.6226 GB, free: 15.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002951/0.5091, allocations: 1.535 MB / 0.6241 GB, free: 14.26 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001525/0.5106, allocations: 0.8547 MB / 0.6249 GB, free: 13.39 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01178/0.5224, allocations: 4.534 MB / 0.6293 GB, free: 8.832 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/0.5224, allocations: 59.81 kB / 0.6294 GB, free: 8.766 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.627e-06/0.5224, allocations: 0 / 0.6294 GB, free: 8.766 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03273/0.5552, allocations: 8.111 MB / 0.6373 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.636e-05/0.5553, allocations: 95.11 kB / 0.6374 GB, free: 496 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/0.5573, allocations: 1.37 MB / 0.6387 GB, free: 15.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002693/0.5576, allocations: 61.64 kB / 0.6388 GB, free: 15.03 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.5586, allocations: 1.081 MB / 0.6399 GB, free: 13.94 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007468/0.5593, allocations: 0.6546 MB / 0.6405 GB, free: 13.28 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007687/0.5601, allocations: 485.1 kB / 0.641 GB, free: 12.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002415/0.5603, allocations: 301.1 kB / 0.6412 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001556/0.5619, allocations: 0.8132 MB / 0.642 GB, free: 11.68 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002319/0.5642, allocations: 1.661 MB / 0.6437 GB, free: 9.637 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004186/0.5684, allocations: 2.61 MB / 0.6462 GB, free: 6.648 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-05/0.5684, allocations: 8 kB / 0.6462 GB, free: 6.641 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007436/0.5759, allocations: 3.058 MB / 0.6492 GB, free: 3.562 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.5759, allocations: 16 kB / 0.6492 GB, free: 3.547 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.633e-05/0.576, allocations: 28 kB / 0.6493 GB, free: 3.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003224/0.5792, allocations: 0.5225 MB / 0.6498 GB, free: 2.984 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003991/0.5832, allocations: 0.7997 MB / 0.6505 GB, free: 2.184 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009391/0.5926, allocations: 7.635 MB / 0.658 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001928/0.5945, allocations: 100.1 kB / 0.6581 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002855/0.5948, allocations: 144 kB / 0.6582 GB, free: 9.801 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.0009319/0.5957, allocations: 449.5 kB / 0.6587 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004094/0.5961, allocations: 174.9 kB / 0.6588 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007126/0.6033, allocations: 2.582 MB / 0.6613 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.576e-05/0.6033, allocations: 20 kB / 0.6614 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6033, allocations: 4 kB / 0.6614 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.719e-05/0.6033, allocations: 11.97 kB / 0.6614 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.6141, allocations: 4.731 MB / 0.666 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.14e-05/0.6141, allocations: 12 kB / 0.666 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001737/0.6158, allocations: 415.4 kB / 0.6664 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003283/0.6191, allocations: 0.5472 MB / 0.6669 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000231/0.6193, allocations: 75.97 kB / 0.667 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008744/0.6281, allocations: 7.427 MB / 0.6743 GB, free: 8.566 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.782e-05/0.6281, allocations: 24.06 kB / 0.6743 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007386/0.6355, allocations: 3.451 MB / 0.6777 GB, free: 4.914 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004631/0.6359, allocations: 190.6 kB / 0.6778 GB, free: 4.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/0.6362, allocations: 51.98 kB / 0.6779 GB, free: 4.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.6372, allocations: 55.94 kB / 0.6779 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.6375, allocations: 196.7 kB / 0.6781 GB, free: 4.426 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/0.6377, allocations: 95.95 kB / 0.6782 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001194/0.6389, allocations: 0.8967 MB / 0.6791 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6389, allocations: 0 / 0.6791 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003782/0.6427, allocations: 1.216 MB / 0.6803 GB, free: 2.215 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.01053/0.6532, allocations: 5.239 MB / 0.6854 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005882/0.6591, allocations: 2.365 MB / 0.6877 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.88e-05/0.6591, allocations: 0 / 0.6877 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002676/0.6618, allocations: 1.368 MB / 0.6891 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002399/0.6642, allocations: 355.1 kB / 0.6894 GB, free: 8.633 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03195/0.6961, allocations: 17 MB / 0.706 GB, free: 6.266 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.6974, allocations: 1.44 MB / 0.7074 GB, free: 4.789 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001717/0.6991, allocations: 466.4 kB / 0.7078 GB, free: 4.328 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/0.7006, allocations: 0.96 MB / 0.7088 GB, free: 3.367 MB / 0.545 GB Notification: Performance of SimCode: time 1.322e-06/0.7006, allocations: 0 / 0.7088 GB, free: 3.367 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3301/1.031, allocations: 60.73 MB / 0.7681 GB, free: 157 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.83/20.86, allocations: 11.31 kB / 0.7681 GB, free: 157 MB / 0.5606 GB " [Timeout remaining time 639] (rm -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 23.85082526190672] Failed to read output from testmodel.py, exit status != 0: 21.093540193978697 21.110403152 20.642072053 Calling exit ...