Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.00132/0.00132, allocations: 111.7 kB / 17.13 MB, free: 5.926 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.001406/0.001406, allocations: 204 kB / 20.09 MB, free: 2.977 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 / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1402/0.1402, allocations: 23.9 MB / 333.4 MB, free: 1.188 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_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.002192/0.002192, allocations: 67.67 kB / 467.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09662, allocations: 59.84 MB / 0.5147 GB, free: 12.39 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.04484/0.1415, allocations: 30.99 MB / 0.545 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03244/0.1739, allocations: 25.01 MB / 0.5694 GB, free: 4.324 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.1752, allocations: 31.75 kB / 0.5694 GB, free: 4.293 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001637/0.1768, allocations: 0.6009 MB / 0.57 GB, free: 3.688 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004909/0.1817, allocations: 1.885 MB / 0.5719 GB, free: 1.789 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008874/0.1906, allocations: 3.448 MB / 0.5752 GB, free: 14.32 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003666/0.1943, allocations: 2.695 MB / 0.5779 GB, free: 11.61 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001895/0.1962, allocations: 1.457 MB / 0.5793 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001544/0.1977, allocations: 1.274 MB / 0.5805 GB, free: 8.824 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001976/0.1997, allocations: 1.448 MB / 0.5819 GB, free: 7.371 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004484/0.2001, allocations: 264 kB / 0.5822 GB, free: 7.113 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007815/0.2079, allocations: 2.73 MB / 0.5849 GB, free: 4.379 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006681/0.2086, allocations: 0.6037 MB / 0.5855 GB, free: 3.773 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001494/0.2101, allocations: 1.28 MB / 0.5867 GB, free: 2.488 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2207/0.4308, allocations: 5.706 MB / 0.5923 GB, free: 32.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4308, allocations: 0 / 0.5923 GB, free: 32.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4308, allocations: 0.625 kB / 0.5923 GB, free: 32.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.954e-05/0.4309, allocations: 2.781 kB / 0.5923 GB, free: 32.73 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.006067/0.4369, allocations: 3.034 MB / 0.5952 GB, free: 31.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.437, allocations: 9.625 kB / 0.5952 GB, free: 31.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002266/0.4392, allocations: 0.5158 MB / 0.5958 GB, free: 31.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00224/0.4415, allocations: 1.292 MB / 0.597 GB, free: 30.81 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002146/0.4417, allocations: 221.6 kB / 0.5972 GB, free: 30.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003807/0.4421, allocations: 221 kB / 0.5974 GB, free: 30.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004753/0.4468, allocations: 2.702 MB / 0.6001 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/0.4469, allocations: 2.344 kB / 0.6001 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000246/0.4471, allocations: 86.78 kB / 0.6002 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.245e-05/0.4472, allocations: 53.16 kB / 0.6002 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005064/0.4522, allocations: 3.173 MB / 0.6033 GB, free: 30.43 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.01328/0.4655, allocations: 9.32 MB / 0.6124 GB, free: 26.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.4678, allocations: 1.757 MB / 0.6141 GB, free: 25.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.469, allocations: 0.8255 MB / 0.6149 GB, free: 25.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009134/0.4781, allocations: 7.512 MB / 0.6223 GB, free: 19.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.4781, allocations: 45.22 kB / 0.6223 GB, free: 19.62 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001061/0.4792, allocations: 236.2 kB / 0.6225 GB, free: 19.48 MB / 446.1 MB Notification: Performance of pre-optimization done (n=113): time 2.855e-06/0.4792, allocations: 2.656 kB / 0.6225 GB, free: 19.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=161): time 0.03425/0.5134, allocations: 9.533 MB / 0.6319 GB, free: 14.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.5135, allocations: 126 kB / 0.632 GB, free: 14.35 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.5148, allocations: 1.345 MB / 0.6333 GB, free: 13.58 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.5149, allocations: 57.64 kB / 0.6333 GB, free: 13.53 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004313/0.5153, allocations: 1.081 MB / 0.6344 GB, free: 12.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003266/0.5157, allocations: 0.5933 MB / 0.635 GB, free: 12.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006461/0.5163, allocations: 469.3 kB / 0.6354 GB, free: 11.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.3e-05/0.5164, allocations: 307.7 kB / 0.6357 GB, free: 11.48 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.5176, allocations: 0.849 MB / 0.6365 GB, free: 10.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/0.5191, allocations: 1.713 MB / 0.6382 GB, free: 8.785 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/0.5221, allocations: 2.696 MB / 0.6409 GB, free: 5.875 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-05/0.5221, allocations: 8 kB / 0.6409 GB, free: 5.867 MB / 446.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.007925/0.53, allocations: 3.472 MB / 0.6442 GB, free: 2.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.53, allocations: 16 kB / 0.6443 GB, free: 2.574 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.53, allocations: 29.31 kB / 0.6443 GB, free: 2.547 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005131/0.5352, allocations: 1.16 MB / 0.6454 GB, free: 1.398 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/0.5368, allocations: 0.5125 MB / 0.6459 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/0.5479, allocations: 7.623 MB / 0.6534 GB, free: 8.957 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001946/0.5498, allocations: 106.5 kB / 0.6535 GB, free: 8.855 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002572/0.5501, allocations: 140.8 kB / 0.6536 GB, free: 8.719 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.000961/0.551, allocations: 455.7 kB / 0.654 GB, free: 8.305 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003945/0.5514, allocations: 170.9 kB / 0.6542 GB, free: 8.137 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008883/0.5603, allocations: 2.838 MB / 0.657 GB, free: 5.383 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.727e-05/0.5603, allocations: 16 kB / 0.657 GB, free: 5.367 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.5603, allocations: 4 kB / 0.657 GB, free: 5.363 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.907e-05/0.5603, allocations: 10.69 kB / 0.657 GB, free: 5.355 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01235/0.5727, allocations: 4.851 MB / 0.6617 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.5727, allocations: 4 kB / 0.6617 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.5739, allocations: 260.2 kB / 0.662 GB, free: 260 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005191/0.579, allocations: 1.039 MB / 0.663 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001529/0.5792, allocations: 62.62 kB / 0.6631 GB, free: 15.17 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00949/0.5887, allocations: 6.922 MB / 0.6698 GB, free: 7.867 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5887, allocations: 0 / 0.6698 GB, free: 7.867 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009282/0.598, allocations: 3.665 MB / 0.6734 GB, free: 4.188 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004547/0.5984, allocations: 227.9 kB / 0.6736 GB, free: 3.945 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/0.5987, allocations: 34.62 kB / 0.6737 GB, free: 3.914 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.5998, allocations: 43.98 kB / 0.6737 GB, free: 3.871 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00035/0.6001, allocations: 155.4 kB / 0.6738 GB, free: 3.723 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001918/0.6003, allocations: 67.97 kB / 0.6739 GB, free: 3.656 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001227/0.6015, allocations: 0.8842 MB / 0.6748 GB, free: 2.77 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6016, allocations: 0 / 0.6748 GB, free: 2.77 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003767/0.6053, allocations: 1.109 MB / 0.6759 GB, free: 1.66 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.002291/0.6076, allocations: 1.156 MB / 0.677 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005469/0.6131, allocations: 2.65 MB / 0.6796 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.6131, allocations: 0 / 0.6796 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002719/0.6158, allocations: 1.394 MB / 0.6809 GB, free: 12.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.6175, allocations: 281.6 kB / 0.6812 GB, free: 12.45 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006791/0.6242, allocations: 3.756 MB / 0.6849 GB, free: 8.785 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.6254, allocations: 1.394 MB / 0.6862 GB, free: 7.387 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000772/0.6261, allocations: 293.6 kB / 0.6865 GB, free: 7.105 MB / 494.1 MB Notification: Performance of SimCode: time 5.21e-07/0.6262, allocations: 0 / 0.6865 GB, free: 7.105 MB / 494.1 MB Notification: Performance of Templates: time 0.08409/0.7102, allocations: 72.71 MB / 0.7575 GB, free: 14.93 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & ./Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 10.922921149991453] Failed to read output from testmodel.py, exit status != 0: 0.7188501450000331 0.732200551 0.298492184 Calling exit ...