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.001367/0.001367, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001482/0.001482, allocations: 216.6 kB / 22.25 MB, free: 5.238 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.436/1.436, allocations: 230.6 MB / 256 MB, free: 7.801 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.1391/0.1391, allocations: 23.88 MB / 336.3 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.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.002135/0.002135, allocations: 79.88 kB / 471.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3372, allocations: 59.85 MB / 0.5185 GB, free: 9.5 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.07462/0.4119, allocations: 28.82 MB / 0.5467 GB, free: 11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02396/0.4358, allocations: 15.78 MB / 0.5621 GB, free: 12.66 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001596/0.4374, allocations: 31.75 kB / 0.5621 GB, free: 12.62 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002281/0.4397, allocations: 449.5 kB / 0.5625 GB, free: 12.29 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006562/0.4463, allocations: 1.297 MB / 0.5638 GB, free: 11.19 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008484/0.4547, allocations: 2.583 MB / 0.5663 GB, free: 8.984 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004025/0.4588, allocations: 2.284 MB / 0.5686 GB, free: 6.688 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002014/0.4608, allocations: 1.183 MB / 0.5697 GB, free: 5.449 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001919/0.4627, allocations: 1.056 MB / 0.5707 GB, free: 4.391 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002191/0.4649, allocations: 1.023 MB / 0.5717 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007266/0.4656, allocations: 224 kB / 0.572 GB, free: 3.145 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006307/0.4719, allocations: 1.724 MB / 0.5736 GB, free: 1.418 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007289/0.4727, allocations: 0.5023 MB / 0.5741 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001533/0.4742, allocations: 0.9182 MB / 0.575 GB, free: 15.99 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008834/0.483, allocations: 4.346 MB / 0.5793 GB, free: 11.63 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.483, allocations: 0 / 0.5793 GB, free: 11.63 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.483, allocations: 0 / 0.5793 GB, free: 11.63 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.813e-05/0.4831, allocations: 0 / 0.5793 GB, free: 11.63 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.005233/0.4883, allocations: 2.474 MB / 0.5817 GB, free: 9.113 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.4884, allocations: 12.03 kB / 0.5817 GB, free: 9.102 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003874/0.4888, allocations: 278.9 kB / 0.582 GB, free: 8.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/0.4906, allocations: 443 kB / 0.5824 GB, free: 8.387 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002518/0.4931, allocations: 1.058 MB / 0.5834 GB, free: 7.301 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002301/0.4934, allocations: 207.5 kB / 0.5836 GB, free: 7.086 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003899/0.4937, allocations: 196 kB / 0.5838 GB, free: 6.895 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003978/0.4977, allocations: 2.157 MB / 0.5859 GB, free: 4.668 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.178e-05/0.4978, allocations: 4 kB / 0.5859 GB, free: 4.664 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/0.4979, allocations: 84 kB / 0.586 GB, free: 4.582 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.699e-05/0.498, allocations: 48 kB / 0.586 GB, free: 4.535 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004021/0.502, allocations: 2.214 MB / 0.5882 GB, free: 2.316 MB / 430.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.0118/0.5138, allocations: 6.093 MB / 0.5941 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002843/0.5167, allocations: 1.516 MB / 0.5956 GB, free: 10.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009632/0.5176, allocations: 0.5215 MB / 0.5961 GB, free: 9.973 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008355/0.526, allocations: 3.315 MB / 0.5994 GB, free: 6.633 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/0.526, allocations: 43.56 kB / 0.5994 GB, free: 6.582 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 3.296e-06/0.526, allocations: 0 / 0.5994 GB, free: 6.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01844/0.5445, allocations: 4.677 MB / 0.604 GB, free: 1.875 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.053e-05/0.5446, allocations: 115.8 kB / 0.6041 GB, free: 1.738 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/0.5459, allocations: 0.9623 MB / 0.605 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.546, allocations: 45.7 kB / 0.6051 GB, free: 0.707 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007887/0.5468, allocations: 0.9632 MB / 0.606 GB, free: 15.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000388/0.5472, allocations: 400.7 kB / 0.6064 GB, free: 15.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005047/0.5477, allocations: 343.4 kB / 0.6067 GB, free: 14.99 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.5478, allocations: 305.1 kB / 0.607 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009068/0.5487, allocations: 455.8 kB / 0.6075 GB, free: 14.24 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001598/0.5503, allocations: 1.195 MB / 0.6086 GB, free: 12.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002737/0.553, allocations: 1.798 MB / 0.6104 GB, free: 10.54 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.5531, allocations: 4 kB / 0.6104 GB, free: 10.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005536/0.5586, allocations: 2.077 MB / 0.6124 GB, free: 8.449 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.5586, allocations: 18.97 kB / 0.6124 GB, free: 8.434 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.414e-05/0.5587, allocations: 24.59 kB / 0.6125 GB, free: 8.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002517/0.5612, allocations: 385.9 kB / 0.6128 GB, free: 8.023 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.563, allocations: 451.3 kB / 0.6132 GB, free: 7.582 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005986/0.569, allocations: 3.842 MB / 0.617 GB, free: 3.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.5702, allocations: 91.84 kB / 0.6171 GB, free: 3.391 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001931/0.5704, allocations: 108 kB / 0.6172 GB, free: 3.285 MB / 462.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.0007341/0.5712, allocations: 381 kB / 0.6176 GB, free: 2.902 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.5714, allocations: 131.2 kB / 0.6177 GB, free: 2.773 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005071/0.5765, allocations: 1.61 MB / 0.6193 GB, free: 1.145 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.641e-05/0.5765, allocations: 12 kB / 0.6193 GB, free: 1.133 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.5765, allocations: 0 / 0.6193 GB, free: 1.133 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.5765, allocations: 7.984 kB / 0.6193 GB, free: 1.125 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002488/0.579, allocations: 1.316 MB / 0.6206 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/0.579, allocations: 12.02 kB / 0.6206 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.5803, allocations: 239.7 kB / 0.6208 GB, free: 15.49 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002467/0.5828, allocations: 346.5 kB / 0.6211 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.5829, allocations: 43.98 kB / 0.6212 GB, free: 15.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005554/0.5885, allocations: 3.766 MB / 0.6248 GB, free: 11.07 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.5885, allocations: 7.938 kB / 0.6249 GB, free: 11.07 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005462/0.5939, allocations: 2.204 MB / 0.627 GB, free: 8.805 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003407/0.5943, allocations: 127 kB / 0.6271 GB, free: 8.68 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.5944, allocations: 24 kB / 0.6272 GB, free: 8.656 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006992/0.5951, allocations: 31.98 kB / 0.6272 GB, free: 8.625 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.5953, allocations: 104.8 kB / 0.6273 GB, free: 8.523 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.5955, allocations: 59.92 kB / 0.6273 GB, free: 8.465 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008612/0.5963, allocations: 0.5697 MB / 0.6279 GB, free: 7.887 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5963, allocations: 4 kB / 0.6279 GB, free: 7.883 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002184/0.5985, allocations: 0.7288 MB / 0.6286 GB, free: 7.152 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.007031/0.6055, allocations: 3.396 MB / 0.6319 GB, free: 3.688 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002898/0.6084, allocations: 1.464 MB / 0.6334 GB, free: 2.207 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.6084, allocations: 0 / 0.6334 GB, free: 2.207 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.6099, allocations: 0.7802 MB / 0.6341 GB, free: 1.398 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.6113, allocations: 233.9 kB / 0.6343 GB, free: 1.168 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02239/0.6337, allocations: 12.18 MB / 0.6462 GB, free: 4.035 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008144/0.6345, allocations: 0.6723 MB / 0.6469 GB, free: 3.328 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001182/0.6357, allocations: 334.5 kB / 0.6472 GB, free: 2.996 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/0.6368, allocations: 0.7491 MB / 0.6479 GB, free: 2.246 MB / 494.1 MB Notification: Performance of SimCode: time 1.292e-06/0.6368, allocations: 4 kB / 0.6479 GB, free: 2.242 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1257/0.7625, allocations: 39.52 MB / 0.6865 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.65, allocations: 7.969 kB / 0.6865 GB, free: 11.05 MB / 0.5294 GB " [Timeout remaining time 644] (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: 18.438678671140224] Failed to read output from testmodel.py, exit status != 0: 15.797304494306445 15.824280039 15.336104103 Calling exit ...