Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.H2O_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.001755/0.001755, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002194/0.002194, allocations: 220.3 kB / 23.05 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.407/1.407, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.1366/0.1366, allocations: 23.87 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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_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.002557/0.002557, allocations: 59.91 kB / 472 MB, free: 7.688 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3348, allocations: 59.87 MB / 0.5194 GB, free: 9.609 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.H2O_ElectrochemicalCell): time 0.04313/0.378, allocations: 28.92 MB / 0.5476 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02678/0.4047, allocations: 19.53 MB / 0.5667 GB, free: 9.043 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002371/0.4071, allocations: 27.75 kB / 0.5667 GB, free: 9.016 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.409, allocations: 0.4991 MB / 0.5672 GB, free: 8.625 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004865/0.4139, allocations: 1.243 MB / 0.5684 GB, free: 7.566 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009466/0.4234, allocations: 2.885 MB / 0.5712 GB, free: 5.004 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004162/0.4275, allocations: 2.094 MB / 0.5733 GB, free: 2.898 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001828/0.4294, allocations: 1.073 MB / 0.5743 GB, free: 1.777 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001564/0.4309, allocations: 0.9349 MB / 0.5752 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002063/0.433, allocations: 1.07 MB / 0.5763 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005769/0.4336, allocations: 200 kB / 0.5765 GB, free: 15.57 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007958/0.4415, allocations: 2.087 MB / 0.5785 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007509/0.4423, allocations: 474.5 kB / 0.579 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001306/0.4436, allocations: 0.98 MB / 0.5799 GB, free: 12.03 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009864/0.4534, allocations: 4.358 MB / 0.5842 GB, free: 7.656 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.4534, allocations: 0 / 0.5842 GB, free: 7.656 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4534, allocations: 3.938 kB / 0.5842 GB, free: 7.652 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.954e-05/0.4535, allocations: 0 / 0.5842 GB, free: 7.652 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004481/0.458, allocations: 2.335 MB / 0.5865 GB, free: 5.273 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.458, allocations: 8.031 kB / 0.5865 GB, free: 5.266 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.099e-05/0.4581, allocations: 51.48 kB / 0.5865 GB, free: 5.215 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002695/0.4583, allocations: 240.8 kB / 0.5868 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001664/0.46, allocations: 443 kB / 0.5872 GB, free: 4.535 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.4619, allocations: 1.022 MB / 0.5882 GB, free: 3.48 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002089/0.4621, allocations: 238.1 kB / 0.5884 GB, free: 3.223 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002672/0.4624, allocations: 164 kB / 0.5886 GB, free: 3.062 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003449/0.4658, allocations: 2.237 MB / 0.5907 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.4658, allocations: 3.938 kB / 0.5908 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/0.466, allocations: 68 kB / 0.5908 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.764e-05/0.466, allocations: 43.98 kB / 0.5909 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004194/0.4702, allocations: 2.711 MB / 0.5935 GB, free: 13.93 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.01169/0.4819, allocations: 7.23 MB / 0.6006 GB, free: 6.422 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.4837, allocations: 0.9751 MB / 0.6015 GB, free: 5.422 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008728/0.4846, allocations: 0.5174 MB / 0.602 GB, free: 4.891 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007262/0.4918, allocations: 3.153 MB / 0.6051 GB, free: 1.715 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/0.4919, allocations: 51.14 kB / 0.6052 GB, free: 1.656 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005103/0.4924, allocations: 122.9 kB / 0.6053 GB, free: 1.535 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.805e-06/0.4924, allocations: 3.938 kB / 0.6053 GB, free: 1.531 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01903/0.5114, allocations: 4.555 MB / 0.6097 GB, free: 12.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.567e-05/0.5115, allocations: 115.8 kB / 0.6098 GB, free: 12.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002349/0.5139, allocations: 1.498 MB / 0.6113 GB, free: 11.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/0.514, allocations: 45.7 kB / 0.6113 GB, free: 11.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007525/0.5148, allocations: 0.9278 MB / 0.6122 GB, free: 10.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003821/0.5151, allocations: 357.1 kB / 0.6126 GB, free: 9.918 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005701/0.5157, allocations: 359.3 kB / 0.6129 GB, free: 9.559 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5158, allocations: 305.2 kB / 0.6132 GB, free: 9.258 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/0.517, allocations: 0.6325 MB / 0.6138 GB, free: 8.625 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.5188, allocations: 1.345 MB / 0.6151 GB, free: 6.949 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003146/0.522, allocations: 1.929 MB / 0.617 GB, free: 4.691 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.871e-05/0.522, allocations: 8 kB / 0.617 GB, free: 4.684 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006435/0.5284, allocations: 2.379 MB / 0.6194 GB, free: 2.281 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.5285, allocations: 19.94 kB / 0.6194 GB, free: 2.262 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.83e-05/0.5285, allocations: 24 kB / 0.6194 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/0.531, allocations: 387.2 kB / 0.6198 GB, free: 1.848 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002785/0.5338, allocations: 0.5617 MB / 0.6203 GB, free: 1.285 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009237/0.543, allocations: 7.492 MB / 0.6276 GB, free: 9.281 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.5445, allocations: 88.03 kB / 0.6277 GB, free: 9.195 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003034/0.5448, allocations: 108 kB / 0.6278 GB, free: 9.09 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * 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,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008193/0.5456, allocations: 372.3 kB / 0.6282 GB, free: 8.719 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003998/0.546, allocations: 135.2 kB / 0.6283 GB, free: 8.586 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004808/0.5509, allocations: 1.534 MB / 0.6298 GB, free: 7.027 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.217e-05/0.5509, allocations: 12 kB / 0.6298 GB, free: 7.016 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.5509, allocations: 0 / 0.6298 GB, free: 7.016 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-05/0.5509, allocations: 3.984 kB / 0.6298 GB, free: 7.012 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0077/0.5586, allocations: 2.975 MB / 0.6327 GB, free: 3.887 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/0.5586, allocations: 4 kB / 0.6327 GB, free: 3.883 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008557/0.5595, allocations: 215.7 kB / 0.6329 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002578/0.5621, allocations: 417.1 kB / 0.6333 GB, free: 3.246 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.5622, allocations: 43.98 kB / 0.6334 GB, free: 3.203 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00846/0.5706, allocations: 7.291 MB / 0.6405 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/0.5706, allocations: 11.94 kB / 0.6405 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00529/0.5759, allocations: 2.18 MB / 0.6426 GB, free: 9.082 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004234/0.5763, allocations: 123.2 kB / 0.6428 GB, free: 8.961 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/0.5766, allocations: 28 kB / 0.6428 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008008/0.5774, allocations: 28 kB / 0.6428 GB, free: 8.906 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.5776, allocations: 116.2 kB / 0.6429 GB, free: 8.793 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.5778, allocations: 51.98 kB / 0.643 GB, free: 8.742 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00153/0.5793, allocations: 1.033 MB / 0.644 GB, free: 7.703 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5793, allocations: 0 / 0.644 GB, free: 7.703 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003051/0.5823, allocations: 0.8298 MB / 0.6448 GB, free: 6.871 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * 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,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007512/0.5899, allocations: 3.498 MB / 0.6482 GB, free: 3.23 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003765/0.5936, allocations: 1.706 MB / 0.6499 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.5936, allocations: 4 kB / 0.6499 GB, free: 1.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001478/0.5951, allocations: 0.954 MB / 0.6508 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.5968, allocations: 238.7 kB / 0.651 GB, free: 272 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02565/0.6225, allocations: 13.47 MB / 0.6642 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.6237, allocations: 1.223 MB / 0.6654 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001473/0.6252, allocations: 314.5 kB / 0.6657 GB, free: 196 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/0.6265, allocations: 0.6671 MB / 0.6663 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of SimCode: time 1.433e-06/0.6265, allocations: 0 / 0.6663 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09271/0.7192, allocations: 42.37 MB / 0.7077 GB, free: 5.371 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.55/28.27, allocations: 12 kB / 0.7077 GB, free: 5.359 MB / 0.545 GB " [Timeout remaining time 632] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 31.284763623960316] Failed to read output from testmodel.py, exit status != 0: 28.468072290997952 28.494140073 28.035631512 Calling exit ...