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.001594/0.001594, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001743/0.001743, allocations: 213.8 kB / 22.99 MB, free: 4.945 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1372/0.1372, allocations: 23.88 MB / 337.1 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: translateModel(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") [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.002255/0.002255, allocations: 59.91 kB / 472.4 MB, free: 7.027 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3191, allocations: 59.86 MB / 0.5197 GB, free: 9.848 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.07383/0.3929, allocations: 28.25 MB / 0.5473 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02599/0.4189, allocations: 17.14 MB / 0.5641 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.4206, allocations: 27.81 kB / 0.5641 GB, free: 11.9 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00184/0.4224, allocations: 455.2 kB / 0.5645 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004674/0.4271, allocations: 1.212 MB / 0.5657 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008725/0.4358, allocations: 2.888 MB / 0.5685 GB, free: 7.871 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003941/0.4398, allocations: 2.094 MB / 0.5706 GB, free: 5.766 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001722/0.4415, allocations: 1.057 MB / 0.5716 GB, free: 4.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001398/0.4429, allocations: 0.9349 MB / 0.5725 GB, free: 3.723 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001554/0.4444, allocations: 0.9452 MB / 0.5734 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003396/0.4448, allocations: 200 kB / 0.5736 GB, free: 2.578 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005871/0.4507, allocations: 1.958 MB / 0.5756 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006242/0.4513, allocations: 466.6 kB / 0.576 GB, free: 164 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.4524, allocations: 0.8326 MB / 0.5768 GB, free: 15.32 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009554/0.462, allocations: 4.346 MB / 0.5811 GB, free: 10.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.462, allocations: 0 / 0.5811 GB, free: 10.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.462, allocations: 0 / 0.5811 GB, free: 10.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.975e-05/0.462, allocations: 0 / 0.5811 GB, free: 10.96 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.004421/0.4665, allocations: 2.327 MB / 0.5833 GB, free: 8.59 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4665, allocations: 12.03 kB / 0.5833 GB, free: 8.578 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001642/0.4681, allocations: 443 kB / 0.5838 GB, free: 8.145 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002042/0.4702, allocations: 1.022 MB / 0.5848 GB, free: 7.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.4704, allocations: 234.4 kB / 0.585 GB, free: 6.836 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003204/0.4707, allocations: 164 kB / 0.5851 GB, free: 6.676 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004238/0.475, allocations: 2.245 MB / 0.5873 GB, free: 4.363 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.607e-05/0.475, allocations: 7.938 kB / 0.5873 GB, free: 4.355 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/0.4752, allocations: 67.98 kB / 0.5874 GB, free: 4.289 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.561e-05/0.4752, allocations: 44 kB / 0.5874 GB, free: 4.246 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004214/0.4794, allocations: 2.684 MB / 0.5901 GB, free: 1.555 MB / 430.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.01168/0.4911, allocations: 6.131 MB / 0.5961 GB, free: 11.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.493, allocations: 0.9795 MB / 0.597 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009235/0.494, allocations: 0.5173 MB / 0.5975 GB, free: 9.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007517/0.5015, allocations: 2.973 MB / 0.6004 GB, free: 6.754 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.5015, allocations: 47.16 kB / 0.6005 GB, free: 6.699 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000539/0.5021, allocations: 111.1 kB / 0.6006 GB, free: 6.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.847e-06/0.5021, allocations: 0 / 0.6006 GB, free: 6.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01817/0.5202, allocations: 4.559 MB / 0.605 GB, free: 1.973 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.978e-05/0.5203, allocations: 115.8 kB / 0.6051 GB, free: 1.832 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.5221, allocations: 1.453 MB / 0.6066 GB, free: 368 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.5223, allocations: 41.7 kB / 0.6066 GB, free: 320 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007022/0.523, allocations: 0.9278 MB / 0.6075 GB, free: 15.37 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003434/0.5233, allocations: 361.1 kB / 0.6078 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005057/0.5238, allocations: 359.3 kB / 0.6082 GB, free: 14.65 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.524, allocations: 357.9 kB / 0.6085 GB, free: 14.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.525, allocations: 0.6325 MB / 0.6091 GB, free: 13.66 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.5267, allocations: 1.345 MB / 0.6105 GB, free: 11.99 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002685/0.5294, allocations: 1.933 MB / 0.6123 GB, free: 9.723 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-05/0.5294, allocations: 8 kB / 0.6124 GB, free: 9.715 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005682/0.5351, allocations: 2.379 MB / 0.6147 GB, free: 7.316 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.5351, allocations: 16 kB / 0.6147 GB, free: 7.301 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.885e-05/0.5352, allocations: 20 kB / 0.6147 GB, free: 7.281 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00249/0.5376, allocations: 383.1 kB / 0.6151 GB, free: 6.895 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002723/0.5404, allocations: 0.5656 MB / 0.6156 GB, free: 6.328 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009448/0.5498, allocations: 7.37 MB / 0.6228 GB, free: 14.49 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.5513, allocations: 88.05 kB / 0.6229 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002205/0.5516, allocations: 108 kB / 0.623 GB, free: 14.3 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.0007917/0.5524, allocations: 365.1 kB / 0.6234 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003292/0.5527, allocations: 123.2 kB / 0.6235 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004711/0.5574, allocations: 1.526 MB / 0.625 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.5574, allocations: 8 kB / 0.625 GB, free: 12.26 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.5574, allocations: 4 kB / 0.625 GB, free: 12.25 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.5574, allocations: 4.125 kB / 0.625 GB, free: 12.25 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006915/0.5643, allocations: 2.657 MB / 0.6276 GB, free: 9.453 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/0.5644, allocations: 11.98 kB / 0.6276 GB, free: 9.441 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008867/0.5652, allocations: 212.4 kB / 0.6278 GB, free: 9.234 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002613/0.5679, allocations: 412.7 kB / 0.6282 GB, free: 8.812 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.568, allocations: 47.92 kB / 0.6282 GB, free: 8.766 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008833/0.5769, allocations: 7.161 MB / 0.6352 GB, free: 1.137 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.899e-06/0.5769, allocations: 8 kB / 0.6352 GB, free: 1.129 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005471/0.5823, allocations: 2.164 MB / 0.6373 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004644/0.5828, allocations: 123.2 kB / 0.6375 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/0.583, allocations: 35.98 kB / 0.6375 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006691/0.5836, allocations: 28 kB / 0.6375 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002103/0.5839, allocations: 116.2 kB / 0.6376 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.359e-05/0.5839, allocations: 51.97 kB / 0.6377 GB, free: 14.49 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001456/0.5854, allocations: 0.9635 MB / 0.6386 GB, free: 13.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5854, allocations: 0 / 0.6386 GB, free: 13.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003068/0.5885, allocations: 0.8221 MB / 0.6394 GB, free: 12.7 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.001936/0.5904, allocations: 0.9098 MB / 0.6403 GB, free: 11.77 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003854/0.5943, allocations: 1.698 MB / 0.642 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/0.5943, allocations: 0 / 0.642 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.5959, allocations: 0.9698 MB / 0.6429 GB, free: 9.031 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.5974, allocations: 217.8 kB / 0.6431 GB, free: 8.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005287/0.6027, allocations: 2.92 MB / 0.646 GB, free: 5.777 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008003/0.6035, allocations: 0.6369 MB / 0.6466 GB, free: 5.105 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006053/0.6041, allocations: 215.3 kB / 0.6468 GB, free: 4.895 MB / 494.1 MB Notification: Performance of SimCode: time 7.52e-07/0.6041, allocations: 0 / 0.6468 GB, free: 4.895 MB / 494.1 MB Notification: Performance of Templates: time 0.07752/0.6816, allocations: 61.77 MB / 0.7071 GB, free: 7.113 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.makefile [Timeout 660] (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 & ./Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.821082288399339] Failed to read output from testmodel.py, exit status != 0: 0.6923482450656593 0.70763259 0.24223896600000003 Calling exit ...