Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001362/0.001362, 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.001918/0.001918, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.46/1.46, allocations: 230.6 MB / 256 MB, free: 7.992 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.1752/0.1752, allocations: 23.85 MB / 336.3 MB, free: 11.21 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.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_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.002265/0.002265, allocations: 63.91 kB / 471.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3023, allocations: 59.86 MB / 0.5186 GB, free: 9.621 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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 2.0.0/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.04076/0.343, allocations: 29.78 MB / 0.5477 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02416/0.3672, allocations: 17.95 MB / 0.5652 GB, free: 9.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001527/0.3687, allocations: 31.75 kB / 0.5652 GB, free: 9.699 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001678/0.3704, allocations: 481.4 kB / 0.5657 GB, free: 9.336 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004377/0.3748, allocations: 1.337 MB / 0.567 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007521/0.3823, allocations: 2.575 MB / 0.5695 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00398/0.3863, allocations: 2.288 MB / 0.5717 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001966/0.3882, allocations: 1.215 MB / 0.5729 GB, free: 2.441 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001703/0.3899, allocations: 1.06 MB / 0.5739 GB, free: 1.379 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00195/0.3919, allocations: 1.16 MB / 0.5751 GB, free: 220 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005545/0.3924, allocations: 224 kB / 0.5753 GB, free: 15.99 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00595/0.3984, allocations: 1.837 MB / 0.5771 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007296/0.3991, allocations: 0.4985 MB / 0.5776 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001587/0.4007, allocations: 1.104 MB / 0.5786 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009186/0.4099, allocations: 4.334 MB / 0.5829 GB, free: 8.195 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4099, allocations: 0 / 0.5829 GB, free: 8.195 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.516e-06/0.4099, allocations: 4 kB / 0.5829 GB, free: 8.191 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.693e-05/0.41, allocations: 3.938 kB / 0.5829 GB, free: 8.188 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.005624/0.4156, allocations: 2.478 MB / 0.5853 GB, free: 5.668 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.4157, allocations: 8.031 kB / 0.5853 GB, free: 5.66 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004711/0.4161, allocations: 278.9 kB / 0.5856 GB, free: 5.379 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/0.4179, allocations: 446.9 kB / 0.586 GB, free: 4.941 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002376/0.4203, allocations: 1.051 MB / 0.587 GB, free: 3.863 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002537/0.4206, allocations: 207.5 kB / 0.5872 GB, free: 3.648 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004236/0.421, allocations: 200 kB / 0.5874 GB, free: 3.453 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004485/0.4255, allocations: 2.139 MB / 0.5895 GB, free: 1.25 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.201e-05/0.4255, allocations: 3.938 kB / 0.5895 GB, free: 1.246 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002252/0.4258, allocations: 84 kB / 0.5896 GB, free: 1.164 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.433e-05/0.4258, allocations: 48 kB / 0.5896 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004277/0.4301, allocations: 2.226 MB / 0.5918 GB, free: 14.89 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.01306/0.4431, allocations: 7.272 MB / 0.5989 GB, free: 7.258 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003002/0.4461, allocations: 1.527 MB / 0.6004 GB, free: 5.711 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009744/0.4471, allocations: 0.5293 MB / 0.6009 GB, free: 5.168 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008532/0.4557, allocations: 3.475 MB / 0.6043 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.4557, allocations: 39.56 kB / 0.6044 GB, free: 1.621 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 3.306e-06/0.4557, allocations: 0 / 0.6044 GB, free: 1.621 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.02015/0.4758, allocations: 4.681 MB / 0.6089 GB, free: 12.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/0.4759, allocations: 119.8 kB / 0.609 GB, free: 12.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001358/0.4773, allocations: 0.9197 MB / 0.6099 GB, free: 11.83 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000142/0.4774, allocations: 49.64 kB / 0.61 GB, free: 11.77 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007439/0.4782, allocations: 0.9594 MB / 0.6109 GB, free: 10.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004298/0.4786, allocations: 404.6 kB / 0.6113 GB, free: 10.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005448/0.4791, allocations: 343.4 kB / 0.6116 GB, free: 10.06 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.4793, allocations: 305.1 kB / 0.6119 GB, free: 9.758 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009229/0.4802, allocations: 459.8 kB / 0.6124 GB, free: 9.309 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.4817, allocations: 1.195 MB / 0.6135 GB, free: 7.762 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002625/0.4844, allocations: 1.786 MB / 0.6153 GB, free: 5.621 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.6e-05/0.4844, allocations: 8 kB / 0.6153 GB, free: 5.613 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005764/0.4901, allocations: 2.065 MB / 0.6173 GB, free: 3.531 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.4902, allocations: 16.59 kB / 0.6173 GB, free: 3.516 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.841e-05/0.4902, allocations: 28 kB / 0.6173 GB, free: 3.488 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00269/0.4929, allocations: 394 kB / 0.6177 GB, free: 3.094 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001848/0.4948, allocations: 443.4 kB / 0.6181 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006008/0.5008, allocations: 3.881 MB / 0.6219 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.5021, allocations: 87.86 kB / 0.622 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002681/0.5023, allocations: 108 kB / 0.6221 GB, free: 14.33 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.000798/0.5031, allocations: 381.6 kB / 0.6225 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003952/0.5035, allocations: 127.2 kB / 0.6226 GB, free: 13.82 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005393/0.5089, allocations: 1.61 MB / 0.6242 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/0.5089, allocations: 12 kB / 0.6242 GB, free: 12.18 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.5089, allocations: 4 kB / 0.6242 GB, free: 12.18 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/0.509, allocations: 7.969 kB / 0.6242 GB, free: 12.17 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002822/0.5118, allocations: 1.453 MB / 0.6256 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/0.5118, allocations: 7.922 kB / 0.6256 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00133/0.5131, allocations: 240 kB / 0.6259 GB, free: 10.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/0.5157, allocations: 350.1 kB / 0.6262 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001585/0.5159, allocations: 43.92 kB / 0.6262 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005589/0.5215, allocations: 3.802 MB / 0.6299 GB, free: 5.949 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.5215, allocations: 4 kB / 0.6299 GB, free: 5.945 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005756/0.5272, allocations: 2.208 MB / 0.6321 GB, free: 3.676 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003479/0.5276, allocations: 127 kB / 0.6322 GB, free: 3.551 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/0.5278, allocations: 28 kB / 0.6323 GB, free: 3.523 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007717/0.5286, allocations: 31.94 kB / 0.6323 GB, free: 3.492 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/0.5288, allocations: 104.8 kB / 0.6324 GB, free: 3.391 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.5289, allocations: 55.92 kB / 0.6324 GB, free: 3.336 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008862/0.5298, allocations: 0.5737 MB / 0.633 GB, free: 2.754 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5298, allocations: 0 / 0.633 GB, free: 2.754 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002313/0.5321, allocations: 0.7289 MB / 0.6337 GB, free: 2.023 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.007443/0.5396, allocations: 3.381 MB / 0.637 GB, free: 14.57 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002963/0.5425, allocations: 1.48 MB / 0.6385 GB, free: 13.08 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.5425, allocations: 0 / 0.6385 GB, free: 13.08 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.544, allocations: 0.7731 MB / 0.6392 GB, free: 12.28 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.5455, allocations: 242.2 kB / 0.6394 GB, free: 12.05 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02421/0.5697, allocations: 12.18 MB / 0.6513 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.5709, allocations: 1.259 MB / 0.6526 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001169/0.572, allocations: 338.5 kB / 0.6529 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/0.5732, allocations: 0.7491 MB / 0.6536 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of SimCode: time 1.052e-06/0.5732, allocations: 0 / 0.6536 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09449/0.6677, allocations: 39.8 MB / 0.6925 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.26/22.93, allocations: 4.062 kB / 0.6925 GB, free: 4.949 MB / 0.5294 GB " [Timeout remaining time 637] (rm -f Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_WaterElectrolysis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Obsolete.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 25.84047247702256] Failed to read output from testmodel.py, exit status != 0: 23.07642818405293 23.10023405 22.685612629 Calling exit ...