Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.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.00194/0.00194, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.00245/0.00245, allocations: 216.3 kB / 22.25 MB, free: 5.129 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.369/1.369, allocations: 230.6 MB / 256 MB, free: 8.004 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.1281/0.1281, allocations: 23.89 MB / 336.3 MB, free: 11.17 MB / 270.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: "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis",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.001974/0.001974, allocations: 71.89 kB / 471.2 MB, free: 7.656 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2957, allocations: 59.86 MB / 0.5186 GB, free: 9.613 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:12638:6-12638:65: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:12638:6-12638:65: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.WaterElectrolysis): time 0.03869/0.3344, allocations: 29.77 MB / 0.5477 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0225/0.3569, allocations: 17.94 MB / 0.5652 GB, free: 9.672 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001563/0.3585, allocations: 27.81 kB / 0.5653 GB, free: 9.645 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.3599, allocations: 489.2 kB / 0.5657 GB, free: 9.273 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004137/0.364, allocations: 1.329 MB / 0.567 GB, free: 8.137 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007076/0.3711, allocations: 2.575 MB / 0.5695 GB, free: 5.957 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003497/0.3746, allocations: 2.299 MB / 0.5718 GB, free: 3.645 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001484/0.3761, allocations: 1.207 MB / 0.573 GB, free: 2.383 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001163/0.3772, allocations: 1.048 MB / 0.574 GB, free: 1.332 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.3787, allocations: 1.175 MB / 0.5751 GB, free: 156 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003026/0.379, allocations: 224 kB / 0.5754 GB, free: 15.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005319/0.3844, allocations: 1.829 MB / 0.5771 GB, free: 14.1 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004842/0.3849, allocations: 0.4985 MB / 0.5776 GB, free: 13.6 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.386, allocations: 1.104 MB / 0.5787 GB, free: 12.49 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007997/0.394, allocations: 4.334 MB / 0.5829 GB, free: 8.141 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.394, allocations: 11.94 kB / 0.583 GB, free: 8.129 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.394, allocations: 0 / 0.583 GB, free: 8.129 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.175e-05/0.394, allocations: 3.938 kB / 0.583 GB, free: 8.125 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: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.004381/0.3984, allocations: 2.47 MB / 0.5854 GB, free: 5.613 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3984, allocations: 8.031 kB / 0.5854 GB, free: 5.605 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003041/0.3987, allocations: 278.9 kB / 0.5856 GB, free: 5.324 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001559/0.4003, allocations: 446.9 kB / 0.5861 GB, free: 4.887 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0019/0.4022, allocations: 1.059 MB / 0.5871 GB, free: 3.801 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.4024, allocations: 207.5 kB / 0.5873 GB, free: 3.586 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000271/0.4026, allocations: 199.9 kB / 0.5875 GB, free: 3.391 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003212/0.4058, allocations: 2.132 MB / 0.5896 GB, free: 1.195 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.774e-05/0.4059, allocations: 3.938 kB / 0.5896 GB, free: 1.191 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001683/0.406, allocations: 80 kB / 0.5897 GB, free: 1.113 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.452e-05/0.4061, allocations: 51.98 kB / 0.5897 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0035/0.4096, allocations: 2.245 MB / 0.5919 GB, free: 14.81 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.0103/0.4199, allocations: 7.252 MB / 0.599 GB, free: 7.203 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00258/0.4225, allocations: 1.536 MB / 0.6005 GB, free: 5.648 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008473/0.4233, allocations: 0.5332 MB / 0.601 GB, free: 5.102 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007738/0.4311, allocations: 3.475 MB / 0.6044 GB, free: 1.602 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/0.4311, allocations: 43.56 kB / 0.6044 GB, free: 1.551 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.444e-06/0.4311, allocations: 0 / 0.6044 GB, free: 1.551 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01878/0.4499, allocations: 4.677 MB / 0.609 GB, free: 12.84 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.239e-05/0.45, allocations: 115.8 kB / 0.6091 GB, free: 12.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.4512, allocations: 0.9196 MB / 0.61 GB, free: 11.77 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.536e-05/0.4513, allocations: 45.7 kB / 0.6101 GB, free: 11.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006924/0.452, allocations: 0.9594 MB / 0.611 GB, free: 10.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003597/0.4523, allocations: 408.6 kB / 0.6114 GB, free: 10.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004795/0.4528, allocations: 347.4 kB / 0.6117 GB, free: 9.992 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.4529, allocations: 301.1 kB / 0.612 GB, free: 9.695 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008456/0.4538, allocations: 463.8 kB / 0.6124 GB, free: 9.242 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.4552, allocations: 1.195 MB / 0.6136 GB, free: 7.695 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/0.4577, allocations: 1.794 MB / 0.6154 GB, free: 5.547 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/0.4577, allocations: 8 kB / 0.6154 GB, free: 5.539 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005417/0.4631, allocations: 2.065 MB / 0.6174 GB, free: 3.457 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.4632, allocations: 22.75 kB / 0.6174 GB, free: 3.438 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.768e-05/0.4632, allocations: 24 kB / 0.6174 GB, free: 3.414 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002554/0.4658, allocations: 374.8 kB / 0.6178 GB, free: 3.039 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001715/0.4675, allocations: 451.3 kB / 0.6182 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005568/0.473, allocations: 3.885 MB / 0.622 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.4742, allocations: 83.8 kB / 0.6221 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002279/0.4745, allocations: 108 kB / 0.6222 GB, free: 14.27 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * 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 (219): * Single equations (assignments): 216 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0007457/0.4752, allocations: 381.7 kB / 0.6226 GB, free: 13.88 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003371/0.4755, allocations: 131.2 kB / 0.6227 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004947/0.4805, allocations: 1.602 MB / 0.6242 GB, free: 12.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.4805, allocations: 12 kB / 0.6243 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.4805, allocations: 0 / 0.6243 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/0.4805, allocations: 11.97 kB / 0.6243 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.4829, allocations: 1.456 MB / 0.6257 GB, free: 10.58 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.4829, allocations: 7.938 kB / 0.6257 GB, free: 10.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/0.4842, allocations: 240.1 kB / 0.6259 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002461/0.4866, allocations: 361.9 kB / 0.6263 GB, free: 9.977 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.4867, allocations: 43.98 kB / 0.6263 GB, free: 9.934 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005191/0.4919, allocations: 3.794 MB / 0.63 GB, free: 5.883 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.4919, allocations: 4 kB / 0.63 GB, free: 5.879 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005226/0.4971, allocations: 2.212 MB / 0.6322 GB, free: 3.605 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003143/0.4975, allocations: 119 kB / 0.6323 GB, free: 3.488 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002142/0.4977, allocations: 27.98 kB / 0.6323 GB, free: 3.461 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007206/0.4984, allocations: 35.94 kB / 0.6324 GB, free: 3.426 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002115/0.4986, allocations: 104.8 kB / 0.6325 GB, free: 3.324 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.4987, allocations: 55.91 kB / 0.6325 GB, free: 3.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008413/0.4996, allocations: 0.5698 MB / 0.6331 GB, free: 2.691 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4996, allocations: 4 kB / 0.6331 GB, free: 2.688 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002173/0.5017, allocations: 0.7289 MB / 0.6338 GB, free: 1.957 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (O2_gas.logn,H2_gas.logn,anode.temperature,cathode.temperature,water.temperature,air.temperature,liquidWater.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 (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006772/0.5085, allocations: 3.385 MB / 0.6371 GB, free: 14.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.5112, allocations: 1.475 MB / 0.6385 GB, free: 13.01 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.5112, allocations: 0 / 0.6385 GB, free: 13.01 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.5126, allocations: 0.7697 MB / 0.6393 GB, free: 12.22 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.514, allocations: 243 kB / 0.6395 GB, free: 11.98 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02228/0.5363, allocations: 12.17 MB / 0.6514 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.5374, allocations: 1.259 MB / 0.6526 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001095/0.5385, allocations: 342.5 kB / 0.653 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/0.5395, allocations: 0.7491 MB / 0.6537 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of SimCode: time 6.81e-07/0.5395, allocations: 0 / 0.6537 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08989/0.6294, allocations: 39.79 MB / 0.6925 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.24/22.87, allocations: 11.75 kB / 0.6926 GB, free: 4.883 MB / 0.5294 GB " [Timeout remaining time 637] (rm -f Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_WaterElectrolysis.fmu > Chemical_master_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 25.550357908010483] Failed to read output from testmodel.py, exit status != 0: 23.01371660013683 23.041583242 22.643416033 Calling exit ...