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.001335/0.001335, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001426/0.001426, allocations: 219.8 kB / 23.03 MB, free: 4.941 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.793 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.1372/0.1372, allocations: 23.87 MB / 337.1 MB, free: 10.98 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="cs",version="2.0",platforms={"static"}) [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.002001/0.002001, allocations: 68.19 kB / 471.9 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2996, allocations: 59.87 MB / 0.5193 GB, free: 9.477 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.07358/0.3732, allocations: 29.47 MB / 0.5481 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03045/0.4036, allocations: 21.95 MB / 0.5695 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001735/0.4054, allocations: 31.75 kB / 0.5695 GB, free: 6.453 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001821/0.4072, allocations: 0.5577 MB / 0.5701 GB, free: 5.918 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005402/0.4126, allocations: 1.839 MB / 0.5719 GB, free: 4.066 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009026/0.4216, allocations: 3.488 MB / 0.5753 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003819/0.4254, allocations: 2.703 MB / 0.5779 GB, free: 13.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002/0.4274, allocations: 1.43 MB / 0.5793 GB, free: 12.36 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001635/0.4291, allocations: 1.274 MB / 0.5806 GB, free: 11.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002187/0.4313, allocations: 1.448 MB / 0.582 GB, free: 9.633 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004829/0.4317, allocations: 267.9 kB / 0.5822 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006668/0.4384, allocations: 2.625 MB / 0.5848 GB, free: 6.742 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008267/0.4392, allocations: 0.6075 MB / 0.5854 GB, free: 6.133 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001487/0.4407, allocations: 1.07 MB / 0.5864 GB, free: 5.059 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.4519, allocations: 5.704 MB / 0.592 GB, free: 15.33 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.4519, allocations: 0 / 0.592 GB, free: 15.33 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4519, allocations: 0 / 0.592 GB, free: 15.33 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.729e-05/0.4519, allocations: 0 / 0.592 GB, free: 15.33 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.005873/0.4578, allocations: 2.952 MB / 0.5949 GB, free: 12.33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.4578, allocations: 8.031 kB / 0.5949 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.127e-05/0.4579, allocations: 56.48 kB / 0.595 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003805/0.4583, allocations: 304.1 kB / 0.5952 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002173/0.4605, allocations: 0.5103 MB / 0.5957 GB, free: 11.44 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.463, allocations: 1.235 MB / 0.597 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002586/0.4632, allocations: 283 kB / 0.5972 GB, free: 9.863 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004397/0.4637, allocations: 216 kB / 0.5974 GB, free: 9.652 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004861/0.4685, allocations: 2.737 MB / 0.6001 GB, free: 6.797 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.392e-05/0.4686, allocations: 4 kB / 0.6001 GB, free: 6.793 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002401/0.4688, allocations: 84 kB / 0.6002 GB, free: 6.711 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.808e-05/0.4689, allocations: 56 kB / 0.6002 GB, free: 6.656 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005442/0.4743, allocations: 3.191 MB / 0.6034 GB, free: 3.461 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.01547/0.4898, allocations: 7.99 MB / 0.6112 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002661/0.4924, allocations: 1.459 MB / 0.6126 GB, free: 9.805 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.4939, allocations: 0.8302 MB / 0.6134 GB, free: 8.965 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01024/0.5041, allocations: 4.358 MB / 0.6176 GB, free: 4.574 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.5042, allocations: 55.44 kB / 0.6177 GB, free: 4.512 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00114/0.5053, allocations: 238.6 kB / 0.6179 GB, free: 4.277 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 4.779e-06/0.5053, allocations: 0 / 0.6179 GB, free: 4.277 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.039/0.5443, allocations: 9.31 MB / 0.627 GB, free: 10.91 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.839e-05/0.5444, allocations: 124.1 kB / 0.6271 GB, free: 10.77 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001748/0.5461, allocations: 1.353 MB / 0.6285 GB, free: 9.395 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001749/0.5463, allocations: 53.7 kB / 0.6285 GB, free: 9.336 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008018/0.5471, allocations: 1.088 MB / 0.6296 GB, free: 8.234 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005656/0.5477, allocations: 0.585 MB / 0.6301 GB, free: 7.645 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007356/0.5484, allocations: 472.6 kB / 0.6306 GB, free: 7.176 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5485, allocations: 309.1 kB / 0.6309 GB, free: 6.871 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/0.5501, allocations: 0.8519 MB / 0.6317 GB, free: 6.016 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002293/0.5524, allocations: 1.72 MB / 0.6334 GB, free: 3.891 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004078/0.5564, allocations: 2.701 MB / 0.636 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.091e-05/0.5565, allocations: 8 kB / 0.636 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00973/0.5662, allocations: 3.484 MB / 0.6395 GB, free: 13.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/0.5662, allocations: 22.81 kB / 0.6395 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.917e-05/0.5663, allocations: 31.98 kB / 0.6395 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005959/0.5722, allocations: 1.158 MB / 0.6406 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002139/0.5744, allocations: 0.5186 MB / 0.6411 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.5854, allocations: 7.264 MB / 0.6482 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/0.5874, allocations: 103.9 kB / 0.6483 GB, free: 3.801 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003556/0.5877, allocations: 147.9 kB / 0.6485 GB, free: 3.656 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.0009317/0.5887, allocations: 444.9 kB / 0.6489 GB, free: 3.211 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004619/0.5891, allocations: 166.9 kB / 0.6491 GB, free: 3.047 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00863/0.5978, allocations: 2.842 MB / 0.6518 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/0.5978, allocations: 16 kB / 0.6518 GB, free: 184 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.5978, allocations: 4 kB / 0.6519 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.666e-05/0.5978, allocations: 7.969 kB / 0.6519 GB, free: 172 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/0.6101, allocations: 4.571 MB / 0.6563 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.6101, allocations: 4 kB / 0.6563 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/0.6114, allocations: 263.9 kB / 0.6566 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00528/0.6167, allocations: 1.034 MB / 0.6576 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/0.6169, allocations: 59.97 kB / 0.6576 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009242/0.6261, allocations: 6.56 MB / 0.6641 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6261, allocations: 0 / 0.6641 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009318/0.6355, allocations: 3.662 MB / 0.6676 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/0.6358, allocations: 146.9 kB / 0.6678 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/0.6361, allocations: 36 kB / 0.6678 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.6372, allocations: 47.92 kB / 0.6678 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00037/0.6376, allocations: 157 kB / 0.668 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/0.6377, allocations: 71.95 kB / 0.6681 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001191/0.6389, allocations: 0.8882 MB / 0.6689 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.6389, allocations: 0 / 0.6689 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003316/0.6422, allocations: 1.114 MB / 0.67 GB, free: 13.02 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.01189/0.6541, allocations: 5.275 MB / 0.6752 GB, free: 7.668 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005818/0.6599, allocations: 2.57 MB / 0.6777 GB, free: 5.062 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/0.66, allocations: 4 kB / 0.6777 GB, free: 5.059 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002872/0.6628, allocations: 1.328 MB / 0.679 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.6646, allocations: 283.5 kB / 0.6793 GB, free: 3.414 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03451/0.6991, allocations: 17.23 MB / 0.6961 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009459/0.7001, allocations: 0.823 MB / 0.6969 GB, free: 152 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001394/0.7014, allocations: 382 kB / 0.6972 GB, free: 15.79 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001288/0.7027, allocations: 0.8819 MB / 0.6981 GB, free: 14.9 MB / 0.545 GB Notification: Performance of SimCode: time 7.62e-07/0.7027, allocations: 4 kB / 0.6981 GB, free: 14.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3161/1.019, allocations: 59.13 MB / 0.7559 GB, free: 170.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.86/33.88, allocations: 4.375 kB / 0.7559 GB, free: 170.6 MB / 0.5606 GB " [Timeout remaining time 626] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 36.595675404998474] Failed to read output from testmodel.py, exit status != 0: 34.10003513493575 34.117828328 33.662520749 Calling exit ...