Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001446/0.001446, allocations: 123.8 kB / 17.17 MB, free: 5.918 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.001532/0.001532, allocations: 210.3 kB / 20.13 MB, free: 2.98 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.526/1.526, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1369/0.1369, allocations: 23.86 MB / 333.4 MB, free: 1.203 MB / 254.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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_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.002066/0.002066, allocations: 69.66 kB / 466.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09913/0.1012, allocations: 59.83 MB / 0.5142 GB, free: 12.96 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.H2O_ElectrochemicalCell): time 0.0425/0.1437, allocations: 28.87 MB / 0.5424 GB, free: 136 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02525/0.1689, allocations: 19.48 MB / 0.5614 GB, free: 12.58 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.1702, allocations: 31.75 kB / 0.5614 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001487/0.1717, allocations: 0.4924 MB / 0.5619 GB, free: 12.05 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00354/0.1753, allocations: 1.241 MB / 0.5631 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007588/0.1828, allocations: 2.854 MB / 0.5659 GB, free: 7.93 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003306/0.1862, allocations: 2.09 MB / 0.5679 GB, free: 5.828 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001622/0.1878, allocations: 1.1 MB / 0.569 GB, free: 4.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.1891, allocations: 0.931 MB / 0.5699 GB, free: 3.746 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.1908, allocations: 1.07 MB / 0.571 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003924/0.1912, allocations: 200 kB / 0.5712 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006799/0.198, allocations: 2.087 MB / 0.5732 GB, free: 396 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.199, allocations: 482.5 kB / 0.5737 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001511/0.2006, allocations: 0.9723 MB / 0.5746 GB, free: 14.94 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.2121, allocations: 4.358 MB / 0.5789 GB, free: 10.56 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.2121, allocations: 3.984 kB / 0.5789 GB, free: 10.56 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.2121, allocations: 4 kB / 0.5789 GB, free: 10.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.795e-05/0.2122, allocations: 0 / 0.5789 GB, free: 10.55 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004962/0.2171, allocations: 2.403 MB / 0.5812 GB, free: 8.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.2172, allocations: 8.031 kB / 0.5812 GB, free: 8.082 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.876e-05/0.2173, allocations: 43.5 kB / 0.5813 GB, free: 8.039 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003009/0.2176, allocations: 240.8 kB / 0.5815 GB, free: 7.793 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001752/0.2193, allocations: 443 kB / 0.5819 GB, free: 7.359 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001964/0.2213, allocations: 1.092 MB / 0.583 GB, free: 6.223 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002023/0.2215, allocations: 182.7 kB / 0.5832 GB, free: 6.031 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000318/0.2218, allocations: 168 kB / 0.5833 GB, free: 5.867 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003834/0.2256, allocations: 2.221 MB / 0.5855 GB, free: 3.578 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.252e-05/0.2257, allocations: 3.938 kB / 0.5855 GB, free: 3.574 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000181/0.2258, allocations: 72 kB / 0.5856 GB, free: 3.504 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.68e-05/0.2259, allocations: 44 kB / 0.5856 GB, free: 3.461 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004357/0.2302, allocations: 2.668 MB / 0.5882 GB, free: 0.7852 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.2185/0.4487, allocations: 7.263 MB / 0.5953 GB, free: 60.67 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001746/0.4505, allocations: 1.129 MB / 0.5964 GB, free: 60.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008491/0.4513, allocations: 0.5169 MB / 0.5969 GB, free: 59.83 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007468/0.4588, allocations: 5.152 MB / 0.6019 GB, free: 56.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.4588, allocations: 50.52 kB / 0.602 GB, free: 55.96 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004976/0.4593, allocations: 112.9 kB / 0.6021 GB, free: 55.92 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.985e-06/0.4593, allocations: 0 / 0.6021 GB, free: 55.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01853/0.4778, allocations: 4.866 MB / 0.6068 GB, free: 53.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.4779, allocations: 113.7 kB / 0.607 GB, free: 53.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001736/0.4796, allocations: 1.48 MB / 0.6084 GB, free: 52.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000118/0.4797, allocations: 41.45 kB / 0.6084 GB, free: 52.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004324/0.4802, allocations: 0.9243 MB / 0.6093 GB, free: 52.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002353/0.4804, allocations: 360.3 kB / 0.6097 GB, free: 52.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004543/0.4809, allocations: 360.6 kB / 0.61 GB, free: 51.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.788e-05/0.4809, allocations: 310.3 kB / 0.6103 GB, free: 51.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009472/0.4819, allocations: 0.6212 MB / 0.6109 GB, free: 51.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.483, allocations: 1.327 MB / 0.6122 GB, free: 50.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001999/0.485, allocations: 1.921 MB / 0.6141 GB, free: 48.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/0.485, allocations: 7.156 kB / 0.6141 GB, free: 48.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005076/0.4901, allocations: 2.372 MB / 0.6164 GB, free: 47.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.4901, allocations: 15.75 kB / 0.6164 GB, free: 47.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.263e-05/0.4901, allocations: 23.72 kB / 0.6165 GB, free: 47.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002385/0.4925, allocations: 377.9 kB / 0.6168 GB, free: 47.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002636/0.4952, allocations: 0.5626 MB / 0.6174 GB, free: 47.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006885/0.502, allocations: 7.914 MB / 0.6251 GB, free: 39.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.5036, allocations: 81.42 kB / 0.6252 GB, free: 39.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/0.5038, allocations: 107.7 kB / 0.6253 GB, free: 39.49 MB / 446.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.0006191/0.5044, allocations: 370.8 kB / 0.6256 GB, free: 39.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003009/0.5047, allocations: 130.1 kB / 0.6258 GB, free: 39.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004169/0.5089, allocations: 1.535 MB / 0.6273 GB, free: 38.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.5089, allocations: 7.875 kB / 0.6273 GB, free: 38.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.5089, allocations: 6.625 kB / 0.6273 GB, free: 38.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.5089, allocations: 3.984 kB / 0.6273 GB, free: 38.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006013/0.515, allocations: 3.014 MB / 0.6302 GB, free: 36.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.515, allocations: 10.19 kB / 0.6302 GB, free: 36.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008047/0.5158, allocations: 220.3 kB / 0.6304 GB, free: 36.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002484/0.5183, allocations: 414.1 kB / 0.6308 GB, free: 36.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.5184, allocations: 40.73 kB / 0.6309 GB, free: 36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006069/0.5244, allocations: 7.718 MB / 0.6384 GB, free: 28.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/0.5245, allocations: 11.34 kB / 0.6384 GB, free: 28.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004418/0.5289, allocations: 2.164 MB / 0.6405 GB, free: 26.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004051/0.5293, allocations: 205.1 kB / 0.6407 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.5295, allocations: 35.94 kB / 0.6408 GB, free: 26.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007103/0.5302, allocations: 26.62 kB / 0.6408 GB, free: 26.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.5304, allocations: 111.1 kB / 0.6409 GB, free: 25.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.349e-05/0.5304, allocations: 47.98 kB / 0.6409 GB, free: 25.87 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000915/0.5313, allocations: 1.017 MB / 0.6419 GB, free: 24.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5313, allocations: 0 / 0.6419 GB, free: 24.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002553/0.5339, allocations: 0.8249 MB / 0.6427 GB, free: 24.03 MB / 446.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.005761/0.5397, allocations: 3.507 MB / 0.6462 GB, free: 20.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003022/0.5427, allocations: 1.695 MB / 0.6478 GB, free: 18.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.5427, allocations: 0 / 0.6478 GB, free: 18.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.5438, allocations: 0.9627 MB / 0.6488 GB, free: 17.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.5453, allocations: 221.7 kB / 0.649 GB, free: 17.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01808/0.5634, allocations: 13.42 MB / 0.6621 GB, free: 3.469 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005537/0.5639, allocations: 1.222 MB / 0.6633 GB, free: 2.234 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009463/0.5649, allocations: 316.4 kB / 0.6636 GB, free: 2.012 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006896/0.5656, allocations: 0.662 MB / 0.6642 GB, free: 1.352 MB / 446.1 MB Notification: Performance of SimCode: time 1.443e-06/0.5656, allocations: 2.656 kB / 0.6642 GB, free: 1.352 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08909/0.6547, allocations: 40.94 MB / 0.7042 GB, free: 9.062 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.45/28.1, allocations: 10.8 kB / 0.7042 GB, free: 9.055 MB / 494.1 MB " [Timeout remaining time 632] (rm -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 31.1205257709953] Failed to read output from testmodel.py, exit status != 0: 28.279594897991046 28.294354597999998 28.07910673 Calling exit ...