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.001432/0.001432, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001466/0.001466, allocations: 215 kB / 20.13 MB, free: 2.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.492/1.492, allocations: 230.6 MB / 253.5 MB, free: 15.13 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.14/0.14, allocations: 23.89 MB / 333.4 MB, free: 1.199 MB / 254.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.002026/0.002026, allocations: 60.25 kB / 466.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09971/0.1017, allocations: 59.84 MB / 0.5142 GB, free: 12.95 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.04522/0.147, allocations: 30.84 MB / 0.5443 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03694/0.1839, allocations: 28.85 MB / 0.5725 GB, free: 1.18 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.1854, allocations: 31.75 kB / 0.5725 GB, free: 1.148 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.1875, allocations: 0.6514 MB / 0.5732 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006224/0.1937, allocations: 2.2 MB / 0.5753 GB, free: 14.28 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009825/0.2036, allocations: 3.875 MB / 0.5791 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004292/0.2079, allocations: 2.852 MB / 0.5819 GB, free: 7.512 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00212/0.21, allocations: 1.38 MB / 0.5832 GB, free: 6.082 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002063/0.212, allocations: 1.348 MB / 0.5846 GB, free: 4.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002526/0.2146, allocations: 1.506 MB / 0.586 GB, free: 3.219 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006342/0.2152, allocations: 260 kB / 0.5863 GB, free: 2.965 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2503/0.4655, allocations: 3.144 MB / 0.5893 GB, free: 25.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.4665, allocations: 0.6062 MB / 0.5899 GB, free: 25.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003047/0.4696, allocations: 1.299 MB / 0.5912 GB, free: 25.59 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01641/0.486, allocations: 6.211 MB / 0.5973 GB, free: 25.05 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.486, allocations: 0.8438 kB / 0.5973 GB, free: 25.05 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.486, allocations: 0 / 0.5973 GB, free: 25.05 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001737/0.4862, allocations: 0 / 0.5973 GB, free: 25.05 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.01054/0.4967, allocations: 3.161 MB / 0.6004 GB, free: 23.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.4967, allocations: 13.59 kB / 0.6004 GB, free: 23.57 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.248e-05/0.4968, allocations: 57.11 kB / 0.6004 GB, free: 23.57 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008992/0.4977, allocations: 303.2 kB / 0.6007 GB, free: 23.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003184/0.5009, allocations: 0.5569 MB / 0.6013 GB, free: 23.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003176/0.5041, allocations: 1.316 MB / 0.6025 GB, free: 22.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002942/0.5044, allocations: 224.9 kB / 0.6028 GB, free: 22.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009085/0.5053, allocations: 229.5 kB / 0.603 GB, free: 22.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006111/0.5114, allocations: 2.664 MB / 0.6056 GB, free: 22.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.432e-05/0.5115, allocations: 4.812 kB / 0.6056 GB, free: 22.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002814/0.5117, allocations: 87.25 kB / 0.6057 GB, free: 22.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.677e-05/0.5118, allocations: 52.56 kB / 0.6057 GB, free: 22.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006063/0.5179, allocations: 3.311 MB / 0.6089 GB, free: 22.65 MB / 446.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.01497/0.5328, allocations: 8.694 MB / 0.6174 GB, free: 18.31 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/0.5355, allocations: 1.908 MB / 0.6193 GB, free: 17.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.5369, allocations: 0.8458 MB / 0.6201 GB, free: 16.83 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01152/0.5484, allocations: 7.901 MB / 0.6278 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.5485, allocations: 56.34 kB / 0.6279 GB, free: 10.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=128): time 4.709e-06/0.5485, allocations: 2.719 kB / 0.6279 GB, free: 10.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=181): time 0.03302/0.5815, allocations: 8.25 MB / 0.636 GB, free: 6.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.5815, allocations: 94.27 kB / 0.636 GB, free: 6.223 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001919/0.5834, allocations: 1.362 MB / 0.6374 GB, free: 5.449 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003732/0.5838, allocations: 58.77 kB / 0.6374 GB, free: 5.395 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006212/0.5844, allocations: 1.081 MB / 0.6385 GB, free: 4.348 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000861/0.5853, allocations: 0.6559 MB / 0.6391 GB, free: 3.699 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009184/0.5862, allocations: 489 kB / 0.6396 GB, free: 3.215 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.533e-05/0.5863, allocations: 301.1 kB / 0.6399 GB, free: 2.918 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.5878, allocations: 0.8119 MB / 0.6407 GB, free: 2.105 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001796/0.5896, allocations: 1.652 MB / 0.6423 GB, free: 104 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004938/0.5945, allocations: 2.614 MB / 0.6448 GB, free: 13.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.185e-05/0.5945, allocations: 8 kB / 0.6448 GB, free: 13.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.008548/0.6031, allocations: 3.039 MB / 0.6478 GB, free: 10.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.395e-05/0.6031, allocations: 24.03 kB / 0.6478 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-05/0.6032, allocations: 30.73 kB / 0.6479 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003487/0.6067, allocations: 0.5166 MB / 0.6484 GB, free: 9.844 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004217/0.6109, allocations: 0.8011 MB / 0.6492 GB, free: 9.094 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.6215, allocations: 8.046 MB / 0.657 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00227/0.6238, allocations: 100.4 kB / 0.6571 GB, free: 440 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004934/0.6243, allocations: 140 kB / 0.6572 GB, free: 300 kB / 462.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.001239/0.6255, allocations: 458 kB / 0.6577 GB, free: 15.88 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000565/0.6261, allocations: 174.9 kB / 0.6578 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007502/0.6336, allocations: 2.567 MB / 0.6604 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.37e-05/0.6336, allocations: 19.75 kB / 0.6604 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.6336, allocations: 4 kB / 0.6604 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.11e-05/0.6337, allocations: 11.95 kB / 0.6604 GB, free: 13.18 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/0.6456, allocations: 4.758 MB / 0.665 GB, free: 8.336 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.992e-05/0.6457, allocations: 15.98 kB / 0.665 GB, free: 8.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/0.6476, allocations: 418.1 kB / 0.6654 GB, free: 7.938 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003531/0.6512, allocations: 0.5473 MB / 0.666 GB, free: 7.391 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004064/0.6516, allocations: 79.97 kB / 0.6661 GB, free: 7.312 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009807/0.6614, allocations: 7.847 MB / 0.6737 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.725e-05/0.6614, allocations: 15 kB / 0.6737 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00852/0.6699, allocations: 3.464 MB / 0.6771 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008567/0.6708, allocations: 251.9 kB / 0.6774 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005009/0.6713, allocations: 59.83 kB / 0.6774 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.6726, allocations: 48 kB / 0.6775 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004163/0.673, allocations: 193.2 kB / 0.6776 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000207/0.6732, allocations: 97.28 kB / 0.6777 GB, free: 10.69 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001382/0.6746, allocations: 0.8921 MB / 0.6786 GB, free: 9.801 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6746, allocations: 0 / 0.6786 GB, free: 9.801 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005532/0.6801, allocations: 1.212 MB / 0.6798 GB, free: 8.586 MB / 494.1 MB 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.01176/0.6919, allocations: 5.233 MB / 0.6849 GB, free: 3.453 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005689/0.6976, allocations: 2.371 MB / 0.6872 GB, free: 1.191 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.6976, allocations: 0 / 0.6872 GB, free: 1.191 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0025/0.7001, allocations: 1.371 MB / 0.6886 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.7026, allocations: 351.5 kB / 0.6889 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03505/0.7376, allocations: 16.95 MB / 0.7054 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/0.739, allocations: 1.426 MB / 0.7068 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00186/0.7408, allocations: 472 kB / 0.7073 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001599/0.7424, allocations: 0.9686 MB / 0.7082 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of SimCode: time 1.322e-06/0.7424, allocations: 0 / 0.7082 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1206/0.863, allocations: 58.72 MB / 0.7656 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.39/20.25, allocations: 11.12 kB / 0.7656 GB, free: 0.5664 MB / 0.5606 GB " [Timeout remaining time 640] (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: 23.312703701027203] Failed to read output from testmodel.py, exit status != 0: 20.445030507980846 20.465480848 19.975346809 Calling exit ...