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.001677/0.001677, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001575/0.001575, allocations: 222.8 kB / 23 MB, free: 4.914 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.439/1.439, 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.1375/0.1375, allocations: 23.89 MB / 337.1 MB, free: 10.96 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: 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.00209/0.00209, allocations: 71.89 kB / 472.4 MB, free: 6.996 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3279, allocations: 59.86 MB / 0.5198 GB, free: 9.832 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.07997/0.4079, allocations: 29.85 MB / 0.5489 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04354/0.4514, allocations: 21.97 MB / 0.5704 GB, free: 6.023 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001859/0.4533, allocations: 35.75 kB / 0.5704 GB, free: 5.988 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001692/0.455, allocations: 0.5503 MB / 0.5709 GB, free: 5.434 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00584/0.4608, allocations: 1.847 MB / 0.5728 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009982/0.4708, allocations: 3.488 MB / 0.5762 GB, free: 68 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004306/0.4751, allocations: 2.695 MB / 0.5788 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002032/0.4771, allocations: 1.399 MB / 0.5802 GB, free: 11.91 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001725/0.4789, allocations: 1.278 MB / 0.5814 GB, free: 10.63 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00202/0.4809, allocations: 1.284 MB / 0.5827 GB, free: 9.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004284/0.4813, allocations: 260 kB / 0.5829 GB, free: 9.086 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006886/0.4882, allocations: 2.566 MB / 0.5854 GB, free: 6.516 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007373/0.4889, allocations: 0.6075 MB / 0.586 GB, free: 5.906 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001403/0.4903, allocations: 1.07 MB / 0.587 GB, free: 4.832 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0119/0.5022, allocations: 5.704 MB / 0.5926 GB, free: 15.11 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.864e-06/0.5022, allocations: 0 / 0.5926 GB, free: 15.11 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5022, allocations: 4 kB / 0.5926 GB, free: 15.1 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.594e-05/0.5023, allocations: 0 / 0.5926 GB, free: 15.1 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.006079/0.5084, allocations: 2.948 MB / 0.5955 GB, free: 12.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.5085, allocations: 12.03 kB / 0.5955 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002079/0.5105, allocations: 0.5142 MB / 0.596 GB, free: 11.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002529/0.5131, allocations: 1.231 MB / 0.5972 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002676/0.5133, allocations: 275.4 kB / 0.5975 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003553/0.5137, allocations: 216 kB / 0.5977 GB, free: 9.797 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004536/0.5182, allocations: 2.737 MB / 0.6004 GB, free: 6.941 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.416e-05/0.5183, allocations: 3.938 kB / 0.6004 GB, free: 6.938 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002041/0.5185, allocations: 88 kB / 0.6004 GB, free: 6.852 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.774e-05/0.5185, allocations: 59.98 kB / 0.6005 GB, free: 6.793 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00513/0.5237, allocations: 3.156 MB / 0.6036 GB, free: 3.633 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.01432/0.538, allocations: 7.748 MB / 0.6112 GB, free: 11.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002642/0.5406, allocations: 1.443 MB / 0.6126 GB, free: 10.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.542, allocations: 0.834 MB / 0.6134 GB, free: 9.406 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01005/0.5521, allocations: 4.334 MB / 0.6176 GB, free: 5.039 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/0.5521, allocations: 47.56 kB / 0.6177 GB, free: 4.984 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001043/0.5532, allocations: 230.8 kB / 0.6179 GB, free: 4.758 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 4.278e-06/0.5532, allocations: 0 / 0.6179 GB, free: 4.758 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.0362/0.5894, allocations: 9.318 MB / 0.627 GB, free: 11.38 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.406e-05/0.5895, allocations: 120.1 kB / 0.6271 GB, free: 11.24 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00178/0.5912, allocations: 1.308 MB / 0.6284 GB, free: 9.918 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002738/0.5915, allocations: 49.7 kB / 0.6284 GB, free: 9.863 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008612/0.5924, allocations: 1.096 MB / 0.6295 GB, free: 8.754 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006958/0.5931, allocations: 0.585 MB / 0.6301 GB, free: 8.164 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000715/0.5938, allocations: 472.6 kB / 0.6305 GB, free: 7.695 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.5939, allocations: 309.1 kB / 0.6308 GB, free: 7.391 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.5955, allocations: 0.8519 MB / 0.6316 GB, free: 6.535 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002409/0.5979, allocations: 1.724 MB / 0.6333 GB, free: 4.406 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004204/0.6021, allocations: 2.697 MB / 0.6359 GB, free: 1.309 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/0.6021, allocations: 12 kB / 0.636 GB, free: 1.297 MB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009286/0.6114, allocations: 3.469 MB / 0.6393 GB, free: 13.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/0.6114, allocations: 24.05 kB / 0.6394 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.306e-05/0.6115, allocations: 28 kB / 0.6394 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005455/0.617, allocations: 1.154 MB / 0.6405 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002112/0.6191, allocations: 0.5187 MB / 0.641 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/0.6306, allocations: 7.2 MB / 0.6481 GB, free: 4.535 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002034/0.6326, allocations: 103.8 kB / 0.6482 GB, free: 4.434 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003558/0.633, allocations: 140 kB / 0.6483 GB, free: 4.297 MB / 494.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.001051/0.634, allocations: 453 kB / 0.6487 GB, free: 3.844 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004647/0.6345, allocations: 166.8 kB / 0.6489 GB, free: 3.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008168/0.6427, allocations: 2.818 MB / 0.6516 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.572e-05/0.6427, allocations: 19.94 kB / 0.6517 GB, free: 0.832 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/0.6427, allocations: 4 kB / 0.6517 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-05/0.6427, allocations: 8.078 kB / 0.6517 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.6546, allocations: 4.359 MB / 0.6559 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.6547, allocations: 4 kB / 0.6559 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.6558, allocations: 255.7 kB / 0.6562 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005058/0.6609, allocations: 1.044 MB / 0.6572 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002679/0.6612, allocations: 67.95 kB / 0.6573 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009346/0.6705, allocations: 6.477 MB / 0.6636 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.6705, allocations: 7.969 kB / 0.6636 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0091/0.6796, allocations: 3.658 MB / 0.6672 GB, free: 484 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004686/0.6801, allocations: 139 kB / 0.6673 GB, free: 344 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002334/0.6803, allocations: 36.22 kB / 0.6673 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009756/0.6813, allocations: 43.98 kB / 0.6674 GB, free: 264 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003526/0.6816, allocations: 149 kB / 0.6675 GB, free: 116 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/0.6818, allocations: 75.89 kB / 0.6676 GB, free: 40 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001149/0.683, allocations: 0.8228 MB / 0.6684 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.683, allocations: 3.938 kB / 0.6684 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003476/0.6864, allocations: 1.114 MB / 0.6695 GB, free: 14.09 MB / 0.5137 GB 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.002495/0.6889, allocations: 1.163 MB / 0.6706 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005565/0.6945, allocations: 2.574 MB / 0.6731 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.6945, allocations: 0 / 0.6731 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002723/0.6972, allocations: 1.317 MB / 0.6744 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/0.6989, allocations: 279.1 kB / 0.6747 GB, free: 8.676 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00739/0.7063, allocations: 3.726 MB / 0.6783 GB, free: 4.879 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009326/0.7072, allocations: 0.8189 MB / 0.6791 GB, free: 4.023 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008405/0.7081, allocations: 295.2 kB / 0.6794 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of SimCode: time 1.002e-06/0.7081, allocations: 0 / 0.6794 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of Templates: time 0.3301/1.038, allocations: 73.24 MB / 0.7509 GB, free: 170.6 MB / 0.5606 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: 11.969163575209677] Failed to read output from testmodel.py, exit status != 0: 1.0480942442081869 1.058205048 0.553541512 Calling exit ...