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.001553/0.001553, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.00152/0.00152, allocations: 217.7 kB / 22.25 MB, free: 5.105 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.451/1.451, allocations: 230.6 MB / 256 MB, free: 7.793 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.143/0.143, allocations: 23.87 MB / 336.3 MB, free: 10.98 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_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.002088/0.002088, allocations: 64.19 kB / 471.1 MB, free: 7.547 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3303, allocations: 59.87 MB / 0.5185 GB, free: 9.539 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.0784/0.4087, allocations: 29.82 MB / 0.5476 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03713/0.4458, allocations: 25.31 MB / 0.5724 GB, free: 2.789 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002056/0.4479, allocations: 31.75 kB / 0.5724 GB, free: 2.758 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002057/0.4499, allocations: 0.5853 MB / 0.573 GB, free: 2.168 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007337/0.4573, allocations: 2.173 MB / 0.5751 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01125/0.4685, allocations: 3.934 MB / 0.5789 GB, free: 12.02 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004546/0.4731, allocations: 2.844 MB / 0.5817 GB, free: 9.168 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002148/0.4752, allocations: 1.373 MB / 0.583 GB, free: 7.746 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002112/0.4773, allocations: 1.352 MB / 0.5844 GB, free: 6.391 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002673/0.48, allocations: 1.503 MB / 0.5858 GB, free: 4.883 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006804/0.4807, allocations: 260 kB / 0.5861 GB, free: 4.629 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008599/0.4893, allocations: 3.03 MB / 0.589 GB, free: 1.594 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00106/0.4903, allocations: 0.6114 MB / 0.5896 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001853/0.4922, allocations: 1.093 MB / 0.5907 GB, free: 15.88 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01656/0.5087, allocations: 6.175 MB / 0.5967 GB, free: 9.684 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.128e-05/0.5088, allocations: 4 kB / 0.5967 GB, free: 9.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5088, allocations: 0 / 0.5967 GB, free: 9.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001025/0.5089, allocations: 0 / 0.5967 GB, free: 9.68 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.007139/0.516, allocations: 3.092 MB / 0.5998 GB, free: 6.535 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.516, allocations: 8.031 kB / 0.5998 GB, free: 6.527 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004526/0.5165, allocations: 304.3 kB / 0.6001 GB, free: 6.219 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002667/0.5192, allocations: 0.5609 MB / 0.6006 GB, free: 5.656 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/0.5224, allocations: 1.243 MB / 0.6018 GB, free: 4.375 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003107/0.5227, allocations: 283.2 kB / 0.6021 GB, free: 4.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006358/0.5234, allocations: 220 kB / 0.6023 GB, free: 3.855 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005402/0.5288, allocations: 2.683 MB / 0.6049 GB, free: 1.082 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.013e-05/0.5288, allocations: 4 kB / 0.6049 GB, free: 1.078 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002362/0.5291, allocations: 88 kB / 0.605 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.692e-05/0.5291, allocations: 56 kB / 0.6051 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006173/0.5353, allocations: 3.291 MB / 0.6083 GB, free: 13.64 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.01682/0.5521, allocations: 7.263 MB / 0.6154 GB, free: 6.227 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002789/0.5549, allocations: 1.523 MB / 0.6169 GB, free: 4.699 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001486/0.5564, allocations: 0.8547 MB / 0.6177 GB, free: 3.832 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01125/0.5676, allocations: 4.293 MB / 0.6219 GB, free: 15.51 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.267e-05/0.5677, allocations: 43.88 kB / 0.6219 GB, free: 15.46 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.818e-06/0.5677, allocations: 0 / 0.6219 GB, free: 15.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03576/0.6034, allocations: 8.115 MB / 0.6298 GB, free: 7.293 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.035e-05/0.6035, allocations: 95.11 kB / 0.6299 GB, free: 7.18 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/0.6055, allocations: 1.424 MB / 0.6313 GB, free: 5.738 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002993/0.6058, allocations: 53.7 kB / 0.6314 GB, free: 5.68 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009018/0.6067, allocations: 1.085 MB / 0.6324 GB, free: 4.582 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007513/0.6075, allocations: 0.6507 MB / 0.6331 GB, free: 3.926 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007784/0.6083, allocations: 485 kB / 0.6335 GB, free: 3.445 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.6084, allocations: 309.1 kB / 0.6338 GB, free: 3.141 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001512/0.6099, allocations: 0.8132 MB / 0.6346 GB, free: 2.324 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002406/0.6123, allocations: 1.658 MB / 0.6362 GB, free: 288 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004192/0.6165, allocations: 2.622 MB / 0.6388 GB, free: 13.28 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.471e-05/0.6165, allocations: 8 kB / 0.6388 GB, free: 13.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007901/0.6244, allocations: 3.054 MB / 0.6418 GB, free: 10.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.6245, allocations: 16 kB / 0.6418 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.226e-05/0.6245, allocations: 28 kB / 0.6418 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003865/0.6284, allocations: 0.5185 MB / 0.6423 GB, free: 9.625 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004371/0.6328, allocations: 0.7997 MB / 0.6431 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/0.6437, allocations: 7.592 MB / 0.6505 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002265/0.646, allocations: 95.91 kB / 0.6506 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000463/0.6465, allocations: 152.1 kB / 0.6508 GB, free: 492 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.001171/0.6476, allocations: 452.9 kB / 0.6512 GB, free: 28 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005261/0.6482, allocations: 171.1 kB / 0.6514 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007686/0.6558, allocations: 2.574 MB / 0.6539 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.455e-05/0.6559, allocations: 20 kB / 0.6539 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.6559, allocations: 3.984 kB / 0.6539 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.984e-05/0.6559, allocations: 11.97 kB / 0.6539 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/0.6691, allocations: 4.465 MB / 0.6583 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.146e-05/0.6691, allocations: 12 kB / 0.6583 GB, free: 8.512 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001838/0.671, allocations: 424.2 kB / 0.6587 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003777/0.6747, allocations: 0.5356 MB / 0.6592 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002576/0.675, allocations: 83.97 kB / 0.6593 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009461/0.6845, allocations: 7.392 MB / 0.6665 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.578e-05/0.6845, allocations: 19.88 kB / 0.6665 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007991/0.6925, allocations: 3.466 MB / 0.6699 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005543/0.693, allocations: 170.8 kB / 0.6701 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002967/0.6933, allocations: 55.98 kB / 0.6701 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.6944, allocations: 52 kB / 0.6702 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003454/0.6948, allocations: 196.7 kB / 0.6704 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/0.695, allocations: 99.95 kB / 0.6705 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001297/0.6963, allocations: 0.8967 MB / 0.6713 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6963, allocations: 3.938 kB / 0.6713 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004093/0.7003, allocations: 1.216 MB / 0.6725 GB, free: 9.199 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.01133/0.7117, allocations: 5.239 MB / 0.6777 GB, free: 3.762 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005696/0.7174, allocations: 2.364 MB / 0.68 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.986e-05/0.7174, allocations: 4 kB / 0.68 GB, free: 1.371 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002861/0.7203, allocations: 1.377 MB / 0.6813 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002449/0.7227, allocations: 348.8 kB / 0.6816 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03502/0.7577, allocations: 16.99 MB / 0.6982 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.7589, allocations: 0.8578 MB / 0.6991 GB, free: 12.35 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001833/0.7607, allocations: 470.3 kB / 0.6995 GB, free: 11.89 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/0.7623, allocations: 0.9639 MB / 0.7005 GB, free: 10.92 MB / 0.545 GB Notification: Performance of SimCode: time 1.253e-06/0.7623, allocations: 0 / 0.7005 GB, free: 10.92 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4044/1.167, allocations: 61.01 MB / 0.76 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.87/17.04, allocations: 3.438 kB / 0.76 GB, free: 166.6 MB / 0.5606 GB " [Timeout remaining time 643] (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 os._exit(0), Time elapsed: 19.762710743001662] Failed to read output from testmodel.py, exit status != 0: 17.200938167981803 17.222216565 16.709104947 Calling exit ...