Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.001388/0.001388, allocations: 117.7 kB / 17.13 MB, free: 6.047 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.001486/0.001486, allocations: 209.8 kB / 20.09 MB, free: 3.098 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.488/1.488, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.135/0.135, allocations: 23.86 MB / 333.4 MB, free: 1.23 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: translateModel(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction") [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.00195/0.00195, allocations: 67.86 kB / 467.2 MB, free: 30.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1114, allocations: 59.83 MB / 0.5146 GB, free: 12.6 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.04653/0.1579, allocations: 30.73 MB / 0.5446 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03354/0.1914, allocations: 25.01 MB / 0.5691 GB, free: 4.793 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001818/0.1933, allocations: 31.75 kB / 0.5691 GB, free: 4.762 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.1953, allocations: 0.6126 MB / 0.5697 GB, free: 4.145 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006204/0.2015, allocations: 1.87 MB / 0.5715 GB, free: 2.262 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01029/0.2118, allocations: 3.445 MB / 0.5749 GB, free: 14.8 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004689/0.2165, allocations: 2.699 MB / 0.5775 GB, free: 12.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002272/0.2187, allocations: 1.469 MB / 0.579 GB, free: 10.56 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.2207, allocations: 1.274 MB / 0.5802 GB, free: 9.285 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002342/0.223, allocations: 1.444 MB / 0.5816 GB, free: 7.836 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005796/0.2236, allocations: 264 kB / 0.5819 GB, free: 7.578 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008425/0.232, allocations: 2.73 MB / 0.5845 GB, free: 4.844 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001004/0.233, allocations: 0.6037 MB / 0.5851 GB, free: 4.238 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001872/0.2349, allocations: 1.28 MB / 0.5864 GB, free: 2.953 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2534/0.4883, allocations: 5.703 MB / 0.5919 GB, free: 33.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.4883, allocations: 1.031 kB / 0.5919 GB, free: 33.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4883, allocations: 2.188 kB / 0.5919 GB, free: 33.91 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001108/0.4884, allocations: 0 / 0.5919 GB, free: 33.91 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.006809/0.4952, allocations: 3.033 MB / 0.5949 GB, free: 32.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.4953, allocations: 11.52 kB / 0.5949 GB, free: 32.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002318/0.4976, allocations: 0.5111 MB / 0.5954 GB, free: 32.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002508/0.5001, allocations: 1.296 MB / 0.5967 GB, free: 31.99 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/0.5003, allocations: 218.2 kB / 0.5969 GB, free: 31.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000422/0.5007, allocations: 220.9 kB / 0.5971 GB, free: 31.92 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005084/0.5058, allocations: 2.704 MB / 0.5997 GB, free: 31.63 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.552e-05/0.5058, allocations: 4.5 kB / 0.5997 GB, free: 31.63 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002375/0.5061, allocations: 87.69 kB / 0.5998 GB, free: 31.63 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.259e-05/0.5061, allocations: 55.66 kB / 0.5999 GB, free: 31.63 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005218/0.5113, allocations: 3.172 MB / 0.603 GB, free: 31.61 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.01485/0.5262, allocations: 9.323 MB / 0.6121 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002344/0.5285, allocations: 1.765 MB / 0.6138 GB, free: 26.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.5296, allocations: 0.8249 MB / 0.6146 GB, free: 26.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009231/0.5389, allocations: 7.504 MB / 0.6219 GB, free: 20.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.5389, allocations: 46.28 kB / 0.622 GB, free: 20.8 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001187/0.5401, allocations: 238.2 kB / 0.6222 GB, free: 20.65 MB / 446.1 MB Notification: Performance of pre-optimization done (n=113): time 6.302e-06/0.5401, allocations: 0 / 0.6222 GB, free: 20.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=161): time 0.03392/0.574, allocations: 9.541 MB / 0.6315 GB, free: 15.64 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.5741, allocations: 122.6 kB / 0.6316 GB, free: 15.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.5756, allocations: 1.345 MB / 0.633 GB, free: 14.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002498/0.5759, allocations: 53.67 kB / 0.633 GB, free: 14.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004123/0.5763, allocations: 1.083 MB / 0.6341 GB, free: 13.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004281/0.5767, allocations: 0.5963 MB / 0.6346 GB, free: 13.22 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006032/0.5773, allocations: 471.3 kB / 0.6351 GB, free: 12.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.66e-05/0.5774, allocations: 305.1 kB / 0.6354 GB, free: 12.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.5786, allocations: 0.8476 MB / 0.6362 GB, free: 12.13 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.5801, allocations: 1.718 MB / 0.6379 GB, free: 10.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002905/0.5831, allocations: 2.692 MB / 0.6405 GB, free: 7.145 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/0.5831, allocations: 8 kB / 0.6405 GB, free: 7.137 MB / 446.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.007838/0.5909, allocations: 3.462 MB / 0.6439 GB, free: 3.863 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.5909, allocations: 22.17 kB / 0.6439 GB, free: 3.844 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.733e-05/0.591, allocations: 28 kB / 0.644 GB, free: 3.816 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005055/0.596, allocations: 1.165 MB / 0.6451 GB, free: 2.668 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.5979, allocations: 0.5067 MB / 0.6456 GB, free: 2.195 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01073/0.6086, allocations: 7.627 MB / 0.653 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002517/0.6112, allocations: 109.1 kB / 0.6531 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004152/0.6116, allocations: 140 kB / 0.6533 GB, free: 9.988 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001159/0.6127, allocations: 454.1 kB / 0.6537 GB, free: 9.574 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005772/0.6133, allocations: 162.9 kB / 0.6539 GB, free: 9.414 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008686/0.622, allocations: 2.844 MB / 0.6566 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/0.622, allocations: 16 kB / 0.6567 GB, free: 6.637 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.622, allocations: 6.594 kB / 0.6567 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-05/0.6221, allocations: 7.969 kB / 0.6567 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/0.6352, allocations: 4.861 MB / 0.6614 GB, free: 1.758 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.6352, allocations: 0 / 0.6614 GB, free: 1.758 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.6365, allocations: 264.8 kB / 0.6617 GB, free: 1.516 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005174/0.6417, allocations: 1.042 MB / 0.6627 GB, free: 500 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003684/0.642, allocations: 59.97 kB / 0.6627 GB, free: 440 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009545/0.6516, allocations: 6.915 MB / 0.6695 GB, free: 9.133 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.6516, allocations: 4.031 kB / 0.6695 GB, free: 9.129 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009685/0.6613, allocations: 3.665 MB / 0.6731 GB, free: 5.449 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007832/0.6621, allocations: 228 kB / 0.6733 GB, free: 5.207 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003056/0.6624, allocations: 31.47 kB / 0.6733 GB, free: 5.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.6635, allocations: 43.98 kB / 0.6734 GB, free: 5.137 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000452/0.6639, allocations: 151.7 kB / 0.6735 GB, free: 4.988 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/0.6641, allocations: 70.66 kB / 0.6736 GB, free: 4.922 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001365/0.6655, allocations: 0.8842 MB / 0.6744 GB, free: 4.035 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6655, allocations: 0 / 0.6744 GB, free: 4.035 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004601/0.6701, allocations: 1.113 MB / 0.6755 GB, free: 2.922 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002871/0.6729, allocations: 1.151 MB / 0.6767 GB, free: 1.984 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006138/0.6791, allocations: 2.648 MB / 0.6792 GB, free: 15.38 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.6791, allocations: 4 kB / 0.6792 GB, free: 15.38 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003033/0.6821, allocations: 1.391 MB / 0.6806 GB, free: 13.96 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.6841, allocations: 287.5 kB / 0.6809 GB, free: 13.72 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007573/0.6917, allocations: 3.742 MB / 0.6845 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/0.6929, allocations: 1.391 MB / 0.6859 GB, free: 8.656 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009064/0.6939, allocations: 301.4 kB / 0.6862 GB, free: 8.371 MB / 494.1 MB Notification: Performance of SimCode: time 1.582e-06/0.6939, allocations: 0 / 0.6862 GB, free: 8.371 MB / 494.1 MB Notification: Performance of Templates: time 0.09652/0.7904, allocations: 72.72 MB / 0.7572 GB, free: 196 kB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & ./Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 12.605502911988879] Failed to read output from testmodel.py, exit status != 0: 0.7990823949803598 0.817497107 0.324264849 Calling exit ...