Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.001551/0.001551, allocations: 104.3 kB / 19.7 MB, free: 2.008 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.001753/0.001753, allocations: 210.5 kB / 22.98 MB, free: 4.41 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.457/1.457, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.1383/0.1383, allocations: 23.88 MB / 337.1 MB, free: 10.99 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.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") [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.002027/0.002027, allocations: 63.91 kB / 472.4 MB, free: 7.027 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3782, allocations: 59.86 MB / 0.5198 GB, free: 9.793 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.CheckSubstancesData.StandardElectrochemicalCell2): time 0.07391/0.4521, allocations: 27.11 MB / 0.5462 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02313/0.4753, allocations: 16.04 MB / 0.5619 GB, free: 14.01 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001563/0.4768, allocations: 27.75 kB / 0.5619 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001411/0.4782, allocations: 423.8 kB / 0.5623 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002922/0.4812, allocations: 0.8097 MB / 0.5631 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009626/0.4908, allocations: 2.855 MB / 0.5659 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003119/0.4939, allocations: 1.629 MB / 0.5675 GB, free: 8.988 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001164/0.4951, allocations: 0.7428 MB / 0.5682 GB, free: 8.223 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008853/0.496, allocations: 0.7245 MB / 0.5689 GB, free: 7.496 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001068/0.497, allocations: 0.8133 MB / 0.5697 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002211/0.4972, allocations: 140 kB / 0.5699 GB, free: 6.543 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005363/0.5026, allocations: 1.724 MB / 0.5715 GB, free: 4.816 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004493/0.5031, allocations: 358.8 kB / 0.5719 GB, free: 4.465 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007752/0.5038, allocations: 0.6223 MB / 0.5725 GB, free: 3.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008598/0.5124, allocations: 3.572 MB / 0.576 GB, free: 260 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.5124, allocations: 0 / 0.576 GB, free: 260 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5124, allocations: 0 / 0.576 GB, free: 260 kB / 414.1 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.5125, allocations: 0 / 0.576 GB, free: 260 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003781/0.5162, allocations: 1.897 MB / 0.5778 GB, free: 14.31 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.5163, allocations: 12.03 kB / 0.5778 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001534/0.5178, allocations: 391.3 kB / 0.5782 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.5195, allocations: 0.912 MB / 0.5791 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.5197, allocations: 201.5 kB / 0.5793 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001997/0.5199, allocations: 120 kB / 0.5794 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002534/0.5225, allocations: 1.672 MB / 0.5811 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.246e-05/0.5225, allocations: 0 / 0.5811 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.5226, allocations: 52 kB / 0.5811 GB, free: 10.84 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.378e-05/0.5227, allocations: 28 kB / 0.5811 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003058/0.5257, allocations: 2.104 MB / 0.5832 GB, free: 8.707 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007609/0.5333, allocations: 4.702 MB / 0.5878 GB, free: 3.891 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.5346, allocations: 0.6898 MB / 0.5884 GB, free: 3.176 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005523/0.5352, allocations: 328.4 kB / 0.5888 GB, free: 2.848 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006265/0.5415, allocations: 2.651 MB / 0.5914 GB, free: 172 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.5415, allocations: 38.56 kB / 0.5914 GB, free: 124 kB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002951/0.5418, allocations: 63.36 kB / 0.5914 GB, free: 60 kB / 430.1 MB Notification: Performance of pre-optimization done (n=34): time 2.124e-06/0.5418, allocations: 0 / 0.5914 GB, free: 60 kB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.00138/0.5432, allocations: 0.6121 MB / 0.592 GB, free: 15.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.5432, allocations: 106.8 kB / 0.5921 GB, free: 15.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/0.5446, allocations: 1.158 MB / 0.5933 GB, free: 14.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/0.5446, allocations: 29.7 kB / 0.5933 GB, free: 14.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005921/0.5452, allocations: 0.8139 MB / 0.5941 GB, free: 13.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.5453, allocations: 142.9 kB / 0.5942 GB, free: 13.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003412/0.5457, allocations: 270.7 kB / 0.5945 GB, free: 12.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002225/0.5459, allocations: 406.7 kB / 0.5949 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005294/0.5464, allocations: 326.4 kB / 0.5952 GB, free: 12.13 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.5475, allocations: 1.054 MB / 0.5962 GB, free: 10.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001698/0.5492, allocations: 1.41 MB / 0.5976 GB, free: 8.938 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.294e-05/0.5493, allocations: 8 kB / 0.5976 GB, free: 8.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002334/0.5516, allocations: 1.44 MB / 0.599 GB, free: 7.477 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.5516, allocations: 20.19 kB / 0.599 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.649e-05/0.5517, allocations: 28 kB / 0.5991 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006449/0.5523, allocations: 153.5 kB / 0.5992 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.5534, allocations: 371.4 kB / 0.5996 GB, free: 6.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/0.5566, allocations: 3.816 MB / 0.6033 GB, free: 2.832 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008545/0.5574, allocations: 80.17 kB / 0.6034 GB, free: 2.754 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/0.5576, allocations: 91.98 kB / 0.6035 GB, free: 2.664 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005179/0.5581, allocations: 313.1 kB / 0.6038 GB, free: 2.348 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002047/0.5583, allocations: 99.34 kB / 0.6038 GB, free: 2.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/0.56, allocations: 0.8481 MB / 0.6047 GB, free: 1.363 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.56, allocations: 0 / 0.6047 GB, free: 1.363 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.56, allocations: 4 kB / 0.6047 GB, free: 1.359 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.56, allocations: 4 kB / 0.6047 GB, free: 1.355 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.5619, allocations: 1.057 MB / 0.6057 GB, free: 240 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.5619, allocations: 0 / 0.6057 GB, free: 240 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002728/0.5621, allocations: 63.91 kB / 0.6058 GB, free: 176 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000729/0.5629, allocations: 175.2 kB / 0.6059 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.5629, allocations: 16 kB / 0.606 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002995/0.5659, allocations: 3.702 MB / 0.6096 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5659, allocations: 448 / 0.6096 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.5673, allocations: 0.8582 MB / 0.6104 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.5675, allocations: 83.38 kB / 0.6105 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.5676, allocations: 11.94 kB / 0.6105 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003371/0.5679, allocations: 15.88 kB / 0.6105 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.742e-05/0.568, allocations: 31.95 kB / 0.6105 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.013e-05/0.568, allocations: 16.05 kB / 0.6106 GB, free: 10.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001076/0.5691, allocations: 0.823 MB / 0.6114 GB, free: 10.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5691, allocations: 0 / 0.6114 GB, free: 10.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002127/0.5712, allocations: 0.6382 MB / 0.612 GB, free: 9.457 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001353/0.5726, allocations: 0.7457 MB / 0.6127 GB, free: 8.707 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.5743, allocations: 0.7782 MB / 0.6135 GB, free: 7.934 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.5743, allocations: 0.875 kB / 0.6135 GB, free: 7.934 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005456/0.5749, allocations: 379.8 kB / 0.6138 GB, free: 7.539 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009715/0.5758, allocations: 140.2 kB / 0.614 GB, free: 7.402 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.579, allocations: 1.889 MB / 0.6158 GB, free: 5.449 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005103/0.5795, allocations: 468.5 kB / 0.6163 GB, free: 4.957 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003796/0.5799, allocations: 195.3 kB / 0.6165 GB, free: 4.766 MB / 462.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5799, allocations: 0 / 0.6165 GB, free: 4.766 MB / 462.1 MB Notification: Performance of Templates: time 0.04726/0.6271, allocations: 37.39 MB / 0.653 GB, free: 15.43 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.000932259019464] Failed to read output from testmodel.py, exit status != 0: 0.6363430430064909 0.650765711 0.135154577 Calling exit ...