Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.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.001936/0.001936, allocations: 108.9 kB / 16.45 MB, free: 6.453 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.00223/0.00223, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.461/1.461, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.1379/0.1379, allocations: 23.84 MB / 332.7 MB, free: 12.38 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.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",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.002229/0.002229, allocations: 67.89 kB / 466 MB, free: 10.1 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2995, allocations: 59.81 MB / 0.5135 GB, free: 8.805 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.MethanElectrosynthesis): time 0.04096/0.3405, allocations: 30.22 MB / 0.543 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0293/0.3698, allocations: 22.15 MB / 0.5646 GB, free: 6.301 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.3715, allocations: 31.75 kB / 0.5647 GB, free: 6.27 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.3734, allocations: 0.5798 MB / 0.5652 GB, free: 5.816 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004344/0.3778, allocations: 1.35 MB / 0.5665 GB, free: 4.672 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009718/0.3875, allocations: 3.312 MB / 0.5698 GB, free: 1.633 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004135/0.3916, allocations: 2.399 MB / 0.5721 GB, free: 15.22 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001858/0.3935, allocations: 1.301 MB / 0.5734 GB, free: 13.87 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001398/0.3949, allocations: 1.056 MB / 0.5744 GB, free: 12.81 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001738/0.3966, allocations: 1.234 MB / 0.5756 GB, free: 11.57 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003675/0.397, allocations: 232 kB / 0.5758 GB, free: 11.35 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007195/0.4042, allocations: 2.371 MB / 0.5782 GB, free: 8.973 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006755/0.4048, allocations: 0.5413 MB / 0.5787 GB, free: 8.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.4062, allocations: 1.139 MB / 0.5798 GB, free: 7.285 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.4163, allocations: 5.015 MB / 0.5847 GB, free: 2.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4163, allocations: 4 kB / 0.5847 GB, free: 2.246 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4163, allocations: 0 / 0.5847 GB, free: 2.246 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.69e-05/0.4164, allocations: 0 / 0.5847 GB, free: 2.246 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.00541/0.4218, allocations: 2.736 MB / 0.5874 GB, free: 15.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.4218, allocations: 12.03 kB / 0.5874 GB, free: 15.44 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003605/0.4222, allocations: 274.4 kB / 0.5876 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002104/0.4243, allocations: 0.5067 MB / 0.5881 GB, free: 14.65 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002115/0.4264, allocations: 1.194 MB / 0.5893 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.4266, allocations: 205.6 kB / 0.5895 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003439/0.4269, allocations: 192 kB / 0.5897 GB, free: 13.01 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004404/0.4313, allocations: 2.659 MB / 0.5923 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.092e-05/0.4314, allocations: 11.92 kB / 0.5923 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002052/0.4316, allocations: 76 kB / 0.5924 GB, free: 10.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.177e-05/0.4316, allocations: 48 kB / 0.5924 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005315/0.437, allocations: 3.287 MB / 0.5956 GB, free: 6.863 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.01373/0.4507, allocations: 8.524 MB / 0.6039 GB, free: 14.05 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002195/0.4529, allocations: 1.272 MB / 0.6052 GB, free: 12.72 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.4539, allocations: 0.595 MB / 0.6058 GB, free: 12.12 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009122/0.4631, allocations: 5.587 MB / 0.6112 GB, free: 6.008 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.4631, allocations: 39.22 kB / 0.6113 GB, free: 5.961 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009529/0.464, allocations: 210.8 kB / 0.6115 GB, free: 5.754 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.036e-06/0.464, allocations: 0 / 0.6115 GB, free: 5.754 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02965/0.4937, allocations: 7.218 MB / 0.6185 GB, free: 14.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.5e-05/0.4938, allocations: 119.8 kB / 0.6186 GB, free: 14.27 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00242/0.4962, allocations: 1.857 MB / 0.6204 GB, free: 12.39 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001393/0.4963, allocations: 45.7 kB / 0.6205 GB, free: 12.34 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008338/0.4972, allocations: 1.041 MB / 0.6215 GB, free: 11.29 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004383/0.4976, allocations: 444.3 kB / 0.6219 GB, free: 10.85 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006793/0.4983, allocations: 423.3 kB / 0.6223 GB, free: 10.43 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4984, allocations: 301.1 kB / 0.6226 GB, free: 10.13 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.4999, allocations: 0.8551 MB / 0.6235 GB, free: 9.27 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002172/0.5021, allocations: 1.589 MB / 0.625 GB, free: 7.332 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/0.5056, allocations: 2.333 MB / 0.6273 GB, free: 4.664 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-05/0.5056, allocations: 8 kB / 0.6273 GB, free: 4.656 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00883/0.5145, allocations: 3.292 MB / 0.6305 GB, free: 1.34 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.614e-05/0.5145, allocations: 15.94 kB / 0.6305 GB, free: 1.324 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.591e-05/0.5145, allocations: 24 kB / 0.6305 GB, free: 1.301 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005156/0.5197, allocations: 1.034 MB / 0.6316 GB, free: 256 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.5213, allocations: 439.3 kB / 0.632 GB, free: 15.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/0.5325, allocations: 7.479 MB / 0.6393 GB, free: 7.902 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.5342, allocations: 95.91 kB / 0.6394 GB, free: 7.809 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002561/0.5344, allocations: 116 kB / 0.6395 GB, free: 7.695 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * 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 {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007792/0.5352, allocations: 404.2 kB / 0.6399 GB, free: 7.293 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003793/0.5356, allocations: 159 kB / 0.64 GB, free: 7.137 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00723/0.5428, allocations: 2.179 MB / 0.6421 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.5428, allocations: 20 kB / 0.6422 GB, free: 4.91 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.5428, allocations: 4 kB / 0.6422 GB, free: 4.906 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.5429, allocations: 7.984 kB / 0.6422 GB, free: 4.898 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.5532, allocations: 3.924 MB / 0.646 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.5532, allocations: 4 kB / 0.646 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008036/0.554, allocations: 175.8 kB / 0.6462 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004664/0.5587, allocations: 0.9287 MB / 0.6471 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.5588, allocations: 43.97 kB / 0.6471 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009149/0.568, allocations: 6.769 MB / 0.6537 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.305e-05/0.568, allocations: 7.969 kB / 0.6537 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007735/0.5757, allocations: 2.9 MB / 0.6566 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003892/0.5761, allocations: 228 kB / 0.6568 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002134/0.5763, allocations: 28 kB / 0.6568 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008898/0.5772, allocations: 31.98 kB / 0.6568 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002878/0.5775, allocations: 104.8 kB / 0.6569 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/0.5776, allocations: 59.91 kB / 0.657 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001645/0.5793, allocations: 1.294 MB / 0.6583 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5793, allocations: 4 kB / 0.6583 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002909/0.5822, allocations: 0.9742 MB / 0.6592 GB, free: 2.809 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * 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,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009834/0.592, allocations: 4.347 MB / 0.6635 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004957/0.597, allocations: 2.426 MB / 0.6658 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.597, allocations: 0 / 0.6658 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00231/0.5993, allocations: 1.17 MB / 0.667 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.6008, allocations: 253 kB / 0.6672 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03158/0.6323, allocations: 16.46 MB / 0.6833 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.6334, allocations: 1.303 MB / 0.6846 GB, free: 7.723 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001106/0.6345, allocations: 335.3 kB / 0.6849 GB, free: 7.395 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.6356, allocations: 0.7608 MB / 0.6856 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of SimCode: time 6.01e-07/0.6356, allocations: 0 / 0.6856 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2942/0.9298, allocations: 51.09 MB / 0.7355 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.64/27.57, allocations: 6.438 kB / 0.7355 GB, free: 176.5 MB / 0.5606 GB " [Timeout remaining time 632] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 30.34667132003233] Failed to read output from testmodel.py, exit status != 0: 27.704946730053052 27.726132684 27.305580659 Calling exit ...