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.0007503/0.0007503, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007441/0.0007441, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8455/0.8455, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.07766/0.07766, allocations: 17.45 MB / 276.6 MB, free: 11.76 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 411.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.188e-05, allocations: 3.125 kB / 411.6 MB, free: 12.47 MB / 330.7 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.02683/0.02685, allocations: 29.06 MB / 440.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01439/0.04125, allocations: 15.79 MB / 456.4 MB, free: 13 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.04269, allocations: 31.75 kB / 456.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.04369, allocations: 449.6 kB / 456.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003101/0.04679, allocations: 1.357 MB / 458.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00554/0.05233, allocations: 2.648 MB / 460.9 MB, free: 8.605 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002715/0.05505, allocations: 2.377 MB / 463.3 MB, free: 6.219 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00128/0.05633, allocations: 1.192 MB / 464.5 MB, free: 4.98 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001459/0.05779, allocations: 1.525 MB / 466 MB, free: 3.453 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.05883, allocations: 0.8805 MB / 466.9 MB, free: 2.57 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002479/0.05907, allocations: 224 kB / 467.1 MB, free: 2.352 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003292/0.06237, allocations: 1.747 MB / 468.8 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002874/0.06265, allocations: 0.5022 MB / 469.3 MB, free: 100 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006499/0.0633, allocations: 0.7875 MB / 470.1 MB, free: 15.3 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006184/0.06949, allocations: 4.531 MB / 474.7 MB, free: 10.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.06949, allocations: 7.938 kB / 474.7 MB, free: 10.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.0695, allocations: 4 kB / 474.7 MB, free: 10.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.999e-05/0.06954, allocations: 0 / 474.7 MB, free: 10.75 MB / 378.7 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.003111/0.07265, allocations: 2.45 MB / 477.1 MB, free: 8.254 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.07269, allocations: 12.03 kB / 477.1 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002448/0.07294, allocations: 274.9 kB / 477.4 MB, free: 7.965 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000931/0.07387, allocations: 439 kB / 477.8 MB, free: 7.535 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.07516, allocations: 1.054 MB / 478.9 MB, free: 6.449 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.07528, allocations: 207.9 kB / 479.1 MB, free: 6.234 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001826/0.07547, allocations: 204.3 kB / 479.3 MB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/0.07771, allocations: 2.16 MB / 481.4 MB, free: 3.805 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.07773, allocations: 3.938 kB / 481.4 MB, free: 3.801 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.07785, allocations: 80 kB / 481.5 MB, free: 3.723 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-05/0.07788, allocations: 48 kB / 481.6 MB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002491/0.08037, allocations: 2.218 MB / 483.8 MB, free: 1.453 MB / 378.7 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.006248/0.08662, allocations: 6.088 MB / 489.9 MB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/0.08858, allocations: 1.494 MB / 491.4 MB, free: 9.668 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005551/0.08913, allocations: 0.5257 MB / 491.9 MB, free: 9.129 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004359/0.09349, allocations: 3.331 MB / 495.2 MB, free: 5.773 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.09352, allocations: 43.56 kB / 495.3 MB, free: 5.723 MB / 394.7 MB Notification: Performance of pre-optimization done (n=88): time 2.695e-06/0.09352, allocations: 0 / 495.3 MB, free: 5.723 MB / 394.7 MB Notification: Performance of matching and sorting (n=106): time 0.009265/0.1028, allocations: 4.68 MB / 500 MB, free: 1.016 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.1028, allocations: 119.8 kB / 0.4883 GB, free: 0.875 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008944/0.1037, allocations: 0.9661 MB / 0.4893 GB, free: 15.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.674e-05/0.1038, allocations: 45.7 kB / 0.4893 GB, free: 15.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004509/0.1043, allocations: 0.9515 MB / 0.4903 GB, free: 14.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.1045, allocations: 400.6 kB / 0.4906 GB, free: 14.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/0.1048, allocations: 347.4 kB / 0.491 GB, free: 14.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.088e-05/0.1049, allocations: 301.1 kB / 0.4913 GB, free: 13.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005371/0.1054, allocations: 463.8 kB / 0.4917 GB, free: 13.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008585/0.1063, allocations: 1.191 MB / 0.4929 GB, free: 11.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001781/0.1081, allocations: 1.794 MB / 0.4946 GB, free: 9.699 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/0.1081, allocations: 12 kB / 0.4946 GB, free: 9.688 MB / 410.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.002927/0.111, allocations: 2.062 MB / 0.4966 GB, free: 7.605 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.111, allocations: 19.94 kB / 0.4967 GB, free: 7.586 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.111, allocations: 24 kB / 0.4967 GB, free: 7.562 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.1122, allocations: 382.3 kB / 0.4971 GB, free: 7.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008484/0.113, allocations: 443.4 kB / 0.4975 GB, free: 6.746 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003391/0.1164, allocations: 3.839 MB / 0.5012 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007035/0.1171, allocations: 91.97 kB / 0.5013 GB, free: 2.562 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.1172, allocations: 104 kB / 0.5014 GB, free: 2.461 MB / 410.7 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.0005125/0.1178, allocations: 388.2 kB / 0.5018 GB, free: 2.074 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.1179, allocations: 135.1 kB / 0.5019 GB, free: 1.941 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002508/0.1204, allocations: 1.614 MB / 0.5035 GB, free: 316 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.1204, allocations: 12 kB / 0.5035 GB, free: 304 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.1204, allocations: 4 kB / 0.5035 GB, free: 300 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.1205, allocations: 3.984 kB / 0.5035 GB, free: 296 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.122, allocations: 1.305 MB / 0.5048 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.122, allocations: 0 / 0.5048 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006054/0.1226, allocations: 248 kB / 0.505 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.1237, allocations: 349.9 kB / 0.5054 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.312e-05/0.1238, allocations: 47.91 kB / 0.5054 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00302/0.1268, allocations: 3.766 MB / 0.5091 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1268, allocations: 4 kB / 0.5091 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002803/0.1296, allocations: 2.2 MB / 0.5112 GB, free: 7.984 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002213/0.1298, allocations: 119.1 kB / 0.5113 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.1299, allocations: 31.98 kB / 0.5114 GB, free: 7.836 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003472/0.1303, allocations: 31.94 kB / 0.5114 GB, free: 7.805 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.1304, allocations: 100.8 kB / 0.5115 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.366e-05/0.1305, allocations: 55.97 kB / 0.5116 GB, free: 7.648 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005294/0.131, allocations: 0.5698 MB / 0.5121 GB, free: 7.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.131, allocations: 3.938 kB / 0.5121 GB, free: 7.066 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001508/0.1325, allocations: 0.7289 MB / 0.5128 GB, free: 6.336 MB / 426.7 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.004031/0.1365, allocations: 3.398 MB / 0.5161 GB, free: 2.863 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001775/0.1383, allocations: 1.472 MB / 0.5176 GB, free: 1.371 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1383, allocations: 0 / 0.5176 GB, free: 1.371 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007412/0.1391, allocations: 0.7696 MB / 0.5183 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009335/0.14, allocations: 245.3 kB / 0.5186 GB, free: 348 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/0.1539, allocations: 12.03 MB / 0.5303 GB, free: 3.344 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/0.1544, allocations: 0.6724 MB / 0.531 GB, free: 2.633 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007209/0.1552, allocations: 338.5 kB / 0.5313 GB, free: 2.297 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006461/0.1558, allocations: 0.7541 MB / 0.532 GB, free: 1.539 MB / 442.7 MB Notification: Performance of SimCode: time 1.272e-06/0.1558, allocations: 0 / 0.532 GB, free: 1.539 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05416/0.21, allocations: 39.66 MB / 0.5708 GB, free: 10.17 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.524/8.734, allocations: 0 / 0.5708 GB, free: 10.17 MB / 490.7 MB " [Timeout remaining time 651] (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: 10.71882695890963] Failed to read output from testmodel.py, exit status != 0: 8.981646268628538 8.9975823 8.925499367 Calling exit ...