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.001725/0.001725, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002069/0.002069, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.461/1.461, allocations: 230.6 MB / 256.8 MB, free: 8.02 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.1512/0.1512, allocations: 23.85 MB / 337.1 MB, free: 11.25 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="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.002022/0.002022, allocations: 67.89 kB / 471.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3319, allocations: 59.86 MB / 0.5193 GB, free: 9.609 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.03922/0.3711, allocations: 29.6 MB / 0.5482 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02372/0.3948, allocations: 17.96 MB / 0.5658 GB, free: 9.934 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/0.3965, allocations: 23.81 kB / 0.5658 GB, free: 9.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.398, allocations: 485.3 kB / 0.5663 GB, free: 9.543 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004484/0.4025, allocations: 1.333 MB / 0.5676 GB, free: 8.402 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008558/0.411, allocations: 2.576 MB / 0.5701 GB, free: 6.234 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004479/0.4155, allocations: 2.292 MB / 0.5723 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002228/0.4177, allocations: 1.215 MB / 0.5735 GB, free: 2.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00202/0.4198, allocations: 1.052 MB / 0.5745 GB, free: 1.605 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002245/0.422, allocations: 1.167 MB / 0.5757 GB, free: 444 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006098/0.4226, allocations: 224 kB / 0.5759 GB, free: 220 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006267/0.4289, allocations: 1.833 MB / 0.5777 GB, free: 14.38 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007528/0.4296, allocations: 0.4946 MB / 0.5782 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001591/0.4312, allocations: 1.108 MB / 0.5792 GB, free: 12.77 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009117/0.4403, allocations: 4.334 MB / 0.5835 GB, free: 8.418 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.4404, allocations: 0 / 0.5835 GB, free: 8.418 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4404, allocations: 3.938 kB / 0.5835 GB, free: 8.414 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.709e-05/0.4405, allocations: 0 / 0.5835 GB, free: 8.414 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.005857/0.4463, allocations: 2.481 MB / 0.5859 GB, free: 5.891 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.4464, allocations: 12.03 kB / 0.5859 GB, free: 5.879 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.448e-05/0.4464, allocations: 56.11 kB / 0.586 GB, free: 5.824 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004439/0.4469, allocations: 274.9 kB / 0.5862 GB, free: 5.547 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001864/0.4487, allocations: 447 kB / 0.5867 GB, free: 5.109 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00221/0.4509, allocations: 1.055 MB / 0.5877 GB, free: 4.027 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.4511, allocations: 207.2 kB / 0.5879 GB, free: 3.812 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003808/0.4515, allocations: 204 kB / 0.5881 GB, free: 3.613 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003986/0.4555, allocations: 2.128 MB / 0.5902 GB, free: 1.422 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.775e-05/0.4556, allocations: 3.938 kB / 0.5902 GB, free: 1.418 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000206/0.4558, allocations: 84 kB / 0.5902 GB, free: 1.336 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.252e-05/0.4558, allocations: 48 kB / 0.5903 GB, free: 1.289 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004062/0.4599, allocations: 2.233 MB / 0.5925 GB, free: 15.05 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.01248/0.4724, allocations: 7.264 MB / 0.5996 GB, free: 7.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002996/0.4754, allocations: 1.52 MB / 0.601 GB, free: 5.891 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009349/0.4763, allocations: 0.5254 MB / 0.6016 GB, free: 5.352 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008149/0.4844, allocations: 3.483 MB / 0.605 GB, free: 1.844 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.4845, allocations: 47.56 kB / 0.605 GB, free: 1.789 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.295e-06/0.4845, allocations: 0 / 0.605 GB, free: 1.789 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01881/0.5033, allocations: 4.681 MB / 0.6096 GB, free: 13.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/0.5034, allocations: 115.8 kB / 0.6097 GB, free: 12.94 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.5046, allocations: 0.9196 MB / 0.6106 GB, free: 12 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.5047, allocations: 45.7 kB / 0.6106 GB, free: 11.95 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007251/0.5054, allocations: 0.9594 MB / 0.6116 GB, free: 10.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004012/0.5059, allocations: 400.6 kB / 0.6119 GB, free: 10.58 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005121/0.5064, allocations: 351.4 kB / 0.6123 GB, free: 10.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.5065, allocations: 301.1 kB / 0.6126 GB, free: 9.934 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009195/0.5074, allocations: 459.8 kB / 0.613 GB, free: 9.484 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.5089, allocations: 1.195 MB / 0.6142 GB, free: 7.938 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00267/0.5116, allocations: 1.798 MB / 0.6159 GB, free: 5.785 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.129e-05/0.5116, allocations: 12 kB / 0.6159 GB, free: 5.773 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005556/0.5172, allocations: 2.062 MB / 0.618 GB, free: 3.695 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.757e-05/0.5172, allocations: 19.98 kB / 0.618 GB, free: 3.676 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.638e-05/0.5172, allocations: 24 kB / 0.618 GB, free: 3.652 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002583/0.5198, allocations: 378.3 kB / 0.6184 GB, free: 3.273 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00182/0.5216, allocations: 451.3 kB / 0.6188 GB, free: 2.832 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005884/0.5275, allocations: 3.877 MB / 0.6226 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.5289, allocations: 91.86 kB / 0.6227 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002746/0.5292, allocations: 104 kB / 0.6228 GB, free: 14.5 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.0008479/0.53, allocations: 377.6 kB / 0.6231 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003693/0.5304, allocations: 135.3 kB / 0.6233 GB, free: 13.99 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005067/0.5355, allocations: 1.61 MB / 0.6248 GB, free: 12.37 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-05/0.5355, allocations: 16 kB / 0.6248 GB, free: 12.35 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.5355, allocations: 4 kB / 0.6248 GB, free: 12.35 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/0.5355, allocations: 3.984 kB / 0.6248 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.5385, allocations: 1.456 MB / 0.6263 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.5385, allocations: 0 / 0.6263 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.5398, allocations: 239.7 kB / 0.6265 GB, free: 10.58 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002373/0.5422, allocations: 350.5 kB / 0.6268 GB, free: 10.23 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001594/0.5423, allocations: 39.98 kB / 0.6269 GB, free: 10.19 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005507/0.5478, allocations: 3.794 MB / 0.6306 GB, free: 6.137 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.5478, allocations: 4 kB / 0.6306 GB, free: 6.133 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00572/0.5536, allocations: 2.216 MB / 0.6327 GB, free: 3.855 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004339/0.554, allocations: 127 kB / 0.6329 GB, free: 3.73 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/0.5542, allocations: 27.98 kB / 0.6329 GB, free: 3.703 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007741/0.555, allocations: 28 kB / 0.6329 GB, free: 3.676 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002415/0.5553, allocations: 112.6 kB / 0.633 GB, free: 3.566 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/0.5554, allocations: 51.97 kB / 0.6331 GB, free: 3.516 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008927/0.5563, allocations: 0.5737 MB / 0.6336 GB, free: 2.934 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5563, allocations: 0 / 0.6336 GB, free: 2.934 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002522/0.5588, allocations: 0.7289 MB / 0.6343 GB, free: 2.203 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.007442/0.5662, allocations: 3.393 MB / 0.6377 GB, free: 14.74 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003162/0.5694, allocations: 1.464 MB / 0.6391 GB, free: 13.26 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/0.5694, allocations: 4.188 kB / 0.6391 GB, free: 13.26 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.5708, allocations: 0.776 MB / 0.6399 GB, free: 12.46 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.5725, allocations: 249.3 kB / 0.6401 GB, free: 12.21 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02419/0.5966, allocations: 12.17 MB / 0.652 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/0.5979, allocations: 1.259 MB / 0.6532 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001153/0.5991, allocations: 342.5 kB / 0.6535 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.6002, allocations: 0.7413 MB / 0.6542 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of SimCode: time 6.32e-07/0.6002, allocations: 0 / 0.6542 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09091/0.6911, allocations: 39.83 MB / 0.6931 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.21/22.9, allocations: 6.875 kB / 0.6932 GB, free: 5.109 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.906282868934795] Failed to read output from testmodel.py, exit status != 0: 23.100039460114203 23.126613671 22.68096282 Calling exit ...