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.00157/0.00157, allocations: 120.9 kB / 17.16 MB, free: 5.914 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.002125/0.002125, allocations: 208 kB / 20.13 MB, free: 2.969 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.5/1.5, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.1603/0.1603, allocations: 23.85 MB / 333.4 MB, free: 1.238 MB / 254.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_WaterElectrolysis",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.002153/0.002153, allocations: 59.97 kB / 466.7 MB, free: 30.82 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1079, allocations: 59.83 MB / 0.5142 GB, free: 13 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.04461/0.1525, allocations: 29.55 MB / 0.543 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02511/0.1776, allocations: 17.91 MB / 0.5605 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.1794, allocations: 27.81 kB / 0.5605 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001921/0.1814, allocations: 488.2 kB / 0.561 GB, free: 13 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004645/0.186, allocations: 1.319 MB / 0.5623 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007523/0.1935, allocations: 2.556 MB / 0.5648 GB, free: 9.098 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003954/0.1975, allocations: 2.276 MB / 0.567 GB, free: 6.809 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002168/0.1997, allocations: 1.234 MB / 0.5682 GB, free: 5.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001963/0.2016, allocations: 1.056 MB / 0.5692 GB, free: 4.461 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002091/0.2037, allocations: 1.164 MB / 0.5704 GB, free: 3.293 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005608/0.2043, allocations: 228 kB / 0.5706 GB, free: 3.07 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006439/0.2107, allocations: 1.841 MB / 0.5724 GB, free: 1.227 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008675/0.2116, allocations: 0.4907 MB / 0.5729 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001691/0.2133, allocations: 1.105 MB / 0.574 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01136/0.2246, allocations: 4.334 MB / 0.5782 GB, free: 11.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.2246, allocations: 0 / 0.5782 GB, free: 11.27 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2246, allocations: 0 / 0.5782 GB, free: 11.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.737e-05/0.2247, allocations: 0 / 0.5782 GB, free: 11.27 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: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.005482/0.2302, allocations: 2.561 MB / 0.5807 GB, free: 8.652 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.2302, allocations: 12.03 kB / 0.5807 GB, free: 8.641 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.023e-05/0.2303, allocations: 52.12 kB / 0.5807 GB, free: 8.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003514/0.2307, allocations: 278.9 kB / 0.581 GB, free: 8.309 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001805/0.2325, allocations: 443 kB / 0.5814 GB, free: 7.875 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/0.2345, allocations: 1.127 MB / 0.5825 GB, free: 6.703 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/0.2347, allocations: 177.6 kB / 0.5827 GB, free: 6.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003596/0.2351, allocations: 204 kB / 0.5829 GB, free: 6.324 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003865/0.239, allocations: 2.135 MB / 0.585 GB, free: 4.125 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.811e-05/0.239, allocations: 3.938 kB / 0.585 GB, free: 4.121 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001953/0.2392, allocations: 84 kB / 0.5851 GB, free: 4.039 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.351e-05/0.2392, allocations: 48 kB / 0.5851 GB, free: 3.992 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004081/0.2433, allocations: 2.233 MB / 0.5873 GB, free: 1.754 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.2493/0.4926, allocations: 7.358 MB / 0.5945 GB, free: 60.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002581/0.4952, allocations: 1.668 MB / 0.5961 GB, free: 59.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008021/0.496, allocations: 0.5232 MB / 0.5966 GB, free: 59.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007664/0.5036, allocations: 6.401 MB / 0.6029 GB, free: 54.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.5037, allocations: 44.88 kB / 0.6029 GB, free: 54.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.605e-06/0.5037, allocations: 0 / 0.6029 GB, free: 54.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01817/0.5218, allocations: 4.909 MB / 0.6077 GB, free: 52.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.5219, allocations: 114.8 kB / 0.6078 GB, free: 52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/0.5232, allocations: 0.9191 MB / 0.6087 GB, free: 51.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.003e-05/0.5233, allocations: 50.02 kB / 0.6088 GB, free: 51.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005051/0.5238, allocations: 0.9615 MB / 0.6097 GB, free: 50.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000276/0.5241, allocations: 404.3 kB / 0.6101 GB, free: 50.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005263/0.5246, allocations: 350.2 kB / 0.6104 GB, free: 50.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.394e-05/0.5246, allocations: 301.1 kB / 0.6107 GB, free: 50.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007921/0.5254, allocations: 456.2 kB / 0.6111 GB, free: 50.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/0.5266, allocations: 1.196 MB / 0.6123 GB, free: 48.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002023/0.5286, allocations: 1.794 MB / 0.6141 GB, free: 47.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.275e-05/0.5286, allocations: 8.25 kB / 0.6141 GB, free: 47.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004908/0.5336, allocations: 2.064 MB / 0.6161 GB, free: 46.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.5336, allocations: 19.69 kB / 0.6161 GB, free: 46.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/0.5336, allocations: 27.66 kB / 0.6161 GB, free: 46.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002307/0.5359, allocations: 379.1 kB / 0.6165 GB, free: 46.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/0.5375, allocations: 448.3 kB / 0.6169 GB, free: 46.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004119/0.5416, allocations: 4.072 MB / 0.6209 GB, free: 42.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.5428, allocations: 87.55 kB / 0.621 GB, free: 42.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.543, allocations: 107.4 kB / 0.6211 GB, free: 42.54 MB / 446.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.0005986/0.5436, allocations: 382 kB / 0.6214 GB, free: 42.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.5438, allocations: 128.2 kB / 0.6216 GB, free: 42.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004329/0.5481, allocations: 1.615 MB / 0.6231 GB, free: 41.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.5481, allocations: 7.844 kB / 0.6232 GB, free: 41.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.5482, allocations: 3.969 kB / 0.6232 GB, free: 41.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.5482, allocations: 3.984 kB / 0.6232 GB, free: 41.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001978/0.5501, allocations: 1.49 MB / 0.6246 GB, free: 40.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/0.5502, allocations: 3.938 kB / 0.6246 GB, free: 40.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.5513, allocations: 239.9 kB / 0.6249 GB, free: 40.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002216/0.5535, allocations: 347.1 kB / 0.6252 GB, free: 40.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.803e-05/0.5536, allocations: 51.72 kB / 0.6252 GB, free: 40.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003915/0.5576, allocations: 3.997 MB / 0.6291 GB, free: 36.26 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.5576, allocations: 10.44 kB / 0.6291 GB, free: 36.26 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004425/0.562, allocations: 2.204 MB / 0.6313 GB, free: 34.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003091/0.5623, allocations: 197 kB / 0.6315 GB, free: 34.76 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.5625, allocations: 26.22 kB / 0.6315 GB, free: 34.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006853/0.5631, allocations: 35.39 kB / 0.6315 GB, free: 34.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.5633, allocations: 99.25 kB / 0.6316 GB, free: 34.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.541e-05/0.5634, allocations: 49.48 kB / 0.6317 GB, free: 34.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006154/0.564, allocations: 0.5765 MB / 0.6322 GB, free: 34.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.564, allocations: 0 / 0.6322 GB, free: 34.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002047/0.5661, allocations: 0.7319 MB / 0.633 GB, free: 34.15 MB / 446.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.005403/0.5715, allocations: 3.385 MB / 0.6363 GB, free: 30.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002227/0.5737, allocations: 1.469 MB / 0.6377 GB, free: 29.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5737, allocations: 0 / 0.6377 GB, free: 29.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.5748, allocations: 0.7747 MB / 0.6385 GB, free: 28.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.5761, allocations: 242.7 kB / 0.6387 GB, free: 28.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01714/0.5933, allocations: 12.18 MB / 0.6506 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005921/0.5938, allocations: 1.252 MB / 0.6518 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001053/0.5949, allocations: 342.7 kB / 0.6521 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007603/0.5957, allocations: 0.7545 MB / 0.6529 GB, free: 13.37 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5957, allocations: 0 / 0.6529 GB, free: 13.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07704/0.6727, allocations: 38.45 MB / 0.6904 GB, free: 7.566 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.6/22.27, allocations: 7.922 kB / 0.6904 GB, free: 7.559 MB / 478.1 MB " [Timeout remaining time 638] (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.330769500986207] Failed to read output from testmodel.py, exit status != 0: 22.45045162201859 22.474722651 22.245289866 Calling exit ...