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.001346/0.001346, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.001459/0.001459, allocations: 157.6 kB / 22.45 MB, free: 5.375 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: 177.2 MB / 202.8 MB, free: 9.164 MB / 190.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.1413/0.1413, allocations: 17.36 MB / 276.5 MB, free: 15.3 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.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: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 412 MB, free: 4.441 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.079e-05/3.254e-05, allocations: 2.281 kB / 412 MB, free: 4.438 MB / 334.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.03918/0.03921, allocations: 30.14 MB / 442.1 MB, free: 6.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1982/0.2374, allocations: 21.95 MB / 464.1 MB, free: 27.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.2388, allocations: 33.62 kB / 464.1 MB, free: 27.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001801/0.2406, allocations: 0.5647 MB / 464.7 MB, free: 27.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005188/0.2458, allocations: 1.913 MB / 466.6 MB, free: 25.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009172/0.255, allocations: 3.577 MB / 470.1 MB, free: 23.78 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003336/0.2583, allocations: 2.798 MB / 472.9 MB, free: 22.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001921/0.2602, allocations: 1.414 MB / 474.4 MB, free: 21.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002936/0.2632, allocations: 1.818 MB / 476.2 MB, free: 20.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002116/0.2653, allocations: 1.13 MB / 477.3 MB, free: 20.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003928/0.2657, allocations: 263.3 kB / 477.6 MB, free: 20.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007181/0.2729, allocations: 2.594 MB / 480.2 MB, free: 19.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005701/0.2734, allocations: 0.617 MB / 480.8 MB, free: 18.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001741/0.2752, allocations: 0.9183 MB / 481.7 MB, free: 18.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01278/0.288, allocations: 6.007 MB / 487.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.288, allocations: 0 / 487.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.288, allocations: 0.6562 kB / 487.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001113/0.2881, allocations: 2.656 kB / 487.7 MB, free: 13.15 MB / 366.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.00536/0.2934, allocations: 2.933 MB / 490.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.2935, allocations: 8.031 kB / 490.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001958/0.2954, allocations: 0.5129 MB / 491.2 MB, free: 9.664 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/0.2974, allocations: 1.22 MB / 492.4 MB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.2975, allocations: 271.7 kB / 492.6 MB, free: 8.129 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002754/0.2978, allocations: 222.1 kB / 492.9 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003377/0.3012, allocations: 2.741 MB / 495.6 MB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.086e-05/0.3012, allocations: 3.938 kB / 495.6 MB, free: 5.055 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002064/0.3014, allocations: 88 kB / 495.7 MB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.3014, allocations: 52 kB / 495.7 MB, free: 4.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003769/0.3052, allocations: 3.16 MB / 498.9 MB, free: 1.754 MB / 366.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.01347/0.3187, allocations: 7.739 MB / 0.4948 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002698/0.3214, allocations: 1.465 MB / 0.4962 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.3228, allocations: 0.834 MB / 0.497 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01008/0.3329, allocations: 4.338 MB / 0.5012 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.333, allocations: 47.55 kB / 0.5013 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001047/0.334, allocations: 221.5 kB / 0.5015 GB, free: 2.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 4.508e-06/0.334, allocations: 0 / 0.5015 GB, free: 2.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.03874/0.3728, allocations: 9.317 MB / 0.5106 GB, free: 9.688 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.826e-05/0.3729, allocations: 122.8 kB / 0.5107 GB, free: 9.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/0.3749, allocations: 1.304 MB / 0.512 GB, free: 8.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003018/0.3752, allocations: 57.7 kB / 0.512 GB, free: 8.164 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009348/0.3761, allocations: 1.088 MB / 0.5131 GB, free: 7.062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007362/0.3768, allocations: 0.5733 MB / 0.5137 GB, free: 6.484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009243/0.3778, allocations: 468.6 kB / 0.5141 GB, free: 6.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3779, allocations: 301.1 kB / 0.5144 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.3796, allocations: 0.8584 MB / 0.5152 GB, free: 4.863 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002575/0.3822, allocations: 1.712 MB / 0.5169 GB, free: 2.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0045/0.3867, allocations: 2.702 MB / 0.5196 GB, free: 15.69 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.752e-05/0.3867, allocations: 11.94 kB / 0.5196 GB, free: 15.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00986/0.3966, allocations: 3.47 MB / 0.523 GB, free: 12.22 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/0.3966, allocations: 16 kB / 0.523 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.281e-05/0.3967, allocations: 29.64 kB / 0.523 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005894/0.4025, allocations: 1.173 MB / 0.5241 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002048/0.4046, allocations: 0.5135 MB / 0.5246 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.4165, allocations: 7.183 MB / 0.5317 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002102/0.4186, allocations: 106.5 kB / 0.5318 GB, free: 2.906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005104/0.4192, allocations: 140 kB / 0.5319 GB, free: 2.77 MB / 414.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.001344/0.4205, allocations: 448.9 kB / 0.5323 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006/0.4211, allocations: 161.6 kB / 0.5325 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008988/0.4301, allocations: 2.823 MB / 0.5352 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.907e-05/0.4301, allocations: 16 kB / 0.5352 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.4301, allocations: 6.656 kB / 0.5353 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.698e-05/0.4301, allocations: 7.969 kB / 0.5353 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/0.4429, allocations: 4.361 MB / 0.5395 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.401e-05/0.443, allocations: 4 kB / 0.5395 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/0.4443, allocations: 251.7 kB / 0.5398 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005456/0.4497, allocations: 1.04 MB / 0.5408 GB, free: 9.672 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000312/0.4501, allocations: 59.95 kB / 0.5408 GB, free: 9.613 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01002/0.4601, allocations: 6.491 MB / 0.5472 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.4601, allocations: 7.875 kB / 0.5472 GB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/0.4704, allocations: 3.645 MB / 0.5507 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004478/0.4709, allocations: 135 kB / 0.5509 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003557/0.4712, allocations: 34.66 kB / 0.5509 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.4724, allocations: 39.98 kB / 0.5509 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004511/0.4729, allocations: 153 kB / 0.5511 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/0.4731, allocations: 78.64 kB / 0.5512 GB, free: 14.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001381/0.4744, allocations: 0.8266 MB / 0.552 GB, free: 13.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4744, allocations: 0 / 0.552 GB, free: 13.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004366/0.4788, allocations: 1.109 MB / 0.5531 GB, free: 12.75 MB / 446.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.003154/0.482, allocations: 1.192 MB / 0.5542 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00642/0.4884, allocations: 2.569 MB / 0.5567 GB, free: 9.023 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.394e-05/0.4884, allocations: 4 kB / 0.5567 GB, free: 9.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003245/0.4916, allocations: 1.325 MB / 0.558 GB, free: 7.656 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/0.4936, allocations: 277.4 kB / 0.5583 GB, free: 7.422 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007705/0.5013, allocations: 3.542 MB / 0.5617 GB, free: 3.887 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/0.5024, allocations: 0.8214 MB / 0.5626 GB, free: 3.051 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001431/0.5039, allocations: 386.8 kB / 0.5629 GB, free: 2.789 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006471/0.5045, allocations: 224.1 kB / 0.5631 GB, free: 2.57 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5045, allocations: 0 / 0.5631 GB, free: 2.57 MB / 446.1 MB Notification: Performance of Templates: time 0.06941/0.5739, allocations: 40.83 MB / 0.603 GB, free: 10.17 MB / 494.1 MB " [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 sys.exit(0), Time elapsed: 6.465229224413633] Failed to read output from testmodel.py, exit status != 0: 0.584021233022213 0.599148959 0.30776735199999994 Calling exit ...