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.001323/0.001323, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001422/0.001422, allocations: 219.6 kB / 23.03 MB, free: 4.922 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.416/1.416, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.1321/0.1321, allocations: 23.91 MB / 337.1 MB, free: 10.92 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_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.001955/0.001955, allocations: 67.91 kB / 471.9 MB, free: 7.457 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3048, allocations: 59.87 MB / 0.5193 GB, free: 9.574 MB / 382.1 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.07152/0.3764, allocations: 28.43 MB / 0.5471 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02335/0.3997, allocations: 15.76 MB / 0.5625 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001813/0.4015, allocations: 27.75 kB / 0.5625 GB, free: 12.95 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001439/0.403, allocations: 449.8 kB / 0.563 GB, free: 12.62 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004448/0.4074, allocations: 1.297 MB / 0.5642 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007563/0.415, allocations: 2.587 MB / 0.5668 GB, free: 9.25 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00404/0.419, allocations: 2.28 MB / 0.569 GB, free: 6.957 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001803/0.4208, allocations: 1.222 MB / 0.5702 GB, free: 5.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001401/0.4222, allocations: 1.056 MB / 0.5712 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00165/0.4239, allocations: 1.16 MB / 0.5723 GB, free: 3.457 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000336/0.4242, allocations: 224 kB / 0.5725 GB, free: 3.238 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004925/0.4291, allocations: 1.763 MB / 0.5743 GB, free: 1.473 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005399/0.4297, allocations: 0.5023 MB / 0.5748 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001179/0.4308, allocations: 0.922 MB / 0.5757 GB, free: 44 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00943/0.4403, allocations: 4.342 MB / 0.5799 GB, free: 11.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4403, allocations: 0 / 0.5799 GB, free: 11.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4403, allocations: 0 / 0.5799 GB, free: 11.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.133e-05/0.4403, allocations: 0 / 0.5799 GB, free: 11.68 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.004704/0.445, allocations: 2.481 MB / 0.5823 GB, free: 9.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.4451, allocations: 8.031 kB / 0.5823 GB, free: 9.152 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.01e-05/0.4451, allocations: 56.12 kB / 0.5824 GB, free: 9.098 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003349/0.4455, allocations: 278.9 kB / 0.5827 GB, free: 8.816 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00174/0.4472, allocations: 443 kB / 0.5831 GB, free: 8.383 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/0.4493, allocations: 1.055 MB / 0.5841 GB, free: 7.301 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002067/0.4495, allocations: 207.3 kB / 0.5843 GB, free: 7.086 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003408/0.4499, allocations: 200 kB / 0.5845 GB, free: 6.891 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003703/0.4536, allocations: 2.157 MB / 0.5866 GB, free: 4.664 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.607e-05/0.4536, allocations: 0 / 0.5866 GB, free: 4.664 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001906/0.4538, allocations: 80 kB / 0.5867 GB, free: 4.586 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-05/0.4538, allocations: 48 kB / 0.5867 GB, free: 4.539 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003823/0.4577, allocations: 2.237 MB / 0.5889 GB, free: 2.297 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.01078/0.4684, allocations: 6.097 MB / 0.5949 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002766/0.4712, allocations: 1.504 MB / 0.5963 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009026/0.4721, allocations: 0.5255 MB / 0.5968 GB, free: 9.953 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007644/0.4798, allocations: 3.319 MB / 0.6001 GB, free: 6.609 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.4798, allocations: 47.5 kB / 0.6001 GB, free: 6.555 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.735e-06/0.4798, allocations: 0 / 0.6001 GB, free: 6.555 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.01973/0.4995, allocations: 4.681 MB / 0.6047 GB, free: 1.844 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/0.4996, allocations: 111.8 kB / 0.6048 GB, free: 1.711 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001359/0.501, allocations: 0.9197 MB / 0.6057 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.5011, allocations: 45.7 kB / 0.6057 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008132/0.5019, allocations: 0.9595 MB / 0.6067 GB, free: 15.75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/0.5024, allocations: 404.7 kB / 0.6071 GB, free: 15.35 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005734/0.5029, allocations: 347.4 kB / 0.6074 GB, free: 15 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.5031, allocations: 305.1 kB / 0.6077 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009468/0.504, allocations: 455.8 kB / 0.6081 GB, free: 14.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001513/0.5055, allocations: 1.199 MB / 0.6093 GB, free: 12.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002484/0.508, allocations: 1.794 MB / 0.6111 GB, free: 10.55 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/0.508, allocations: 4 kB / 0.6111 GB, free: 10.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005542/0.5136, allocations: 2.069 MB / 0.6131 GB, free: 8.465 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/0.5136, allocations: 20.09 kB / 0.6131 GB, free: 8.445 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.259e-05/0.5137, allocations: 24 kB / 0.6131 GB, free: 8.422 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002683/0.5163, allocations: 381.9 kB / 0.6135 GB, free: 8.039 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001892/0.5182, allocations: 451.3 kB / 0.6139 GB, free: 7.598 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005985/0.5242, allocations: 3.846 MB / 0.6177 GB, free: 3.492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.5255, allocations: 88.09 kB / 0.6178 GB, free: 3.406 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001902/0.5257, allocations: 108 kB / 0.6179 GB, free: 3.301 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.0007456/0.5265, allocations: 381.6 kB / 0.6182 GB, free: 2.918 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003163/0.5268, allocations: 135.2 kB / 0.6183 GB, free: 2.785 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005111/0.5319, allocations: 1.606 MB / 0.6199 GB, free: 1.164 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.049e-05/0.5319, allocations: 16 kB / 0.6199 GB, free: 1.148 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.5319, allocations: 4 kB / 0.6199 GB, free: 1.145 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.5319, allocations: 7.984 kB / 0.6199 GB, free: 1.137 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002338/0.5343, allocations: 1.316 MB / 0.6212 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.5343, allocations: 4 kB / 0.6212 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001303/0.5356, allocations: 244 kB / 0.6215 GB, free: 15.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/0.5382, allocations: 350.1 kB / 0.6218 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.5383, allocations: 51.91 kB / 0.6218 GB, free: 15.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005499/0.5438, allocations: 3.751 MB / 0.6255 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.5438, allocations: 12.06 kB / 0.6255 GB, free: 11.08 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005549/0.5493, allocations: 2.208 MB / 0.6277 GB, free: 8.812 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003231/0.5497, allocations: 127 kB / 0.6278 GB, free: 8.688 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/0.5498, allocations: 28 kB / 0.6278 GB, free: 8.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007069/0.5505, allocations: 31.98 kB / 0.6279 GB, free: 8.629 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.5508, allocations: 104.8 kB / 0.628 GB, free: 8.527 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.5509, allocations: 55.98 kB / 0.628 GB, free: 8.473 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008339/0.5517, allocations: 0.5776 MB / 0.6286 GB, free: 7.887 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5517, allocations: 0 / 0.6286 GB, free: 7.887 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002247/0.554, allocations: 0.7211 MB / 0.6293 GB, free: 7.164 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.007739/0.5617, allocations: 3.387 MB / 0.6326 GB, free: 3.703 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003031/0.5647, allocations: 1.468 MB / 0.634 GB, free: 2.219 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.5647, allocations: 4 kB / 0.634 GB, free: 2.215 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.5662, allocations: 0.7731 MB / 0.6348 GB, free: 1.418 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001471/0.5676, allocations: 253.8 kB / 0.635 GB, free: 1.176 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02258/0.5902, allocations: 12.17 MB / 0.6469 GB, free: 4.055 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007674/0.591, allocations: 0.6763 MB / 0.6476 GB, free: 3.344 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001092/0.5921, allocations: 334.5 kB / 0.6479 GB, free: 3.012 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00103/0.5931, allocations: 0.7452 MB / 0.6486 GB, free: 2.266 MB / 494.1 MB Notification: Performance of SimCode: time 6.52e-07/0.5931, allocations: 0 / 0.6486 GB, free: 2.266 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08371/0.6768, allocations: 39.79 MB / 0.6875 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.96/22.64, allocations: 8.047 kB / 0.6875 GB, free: 10.83 MB / 0.5294 GB " [Timeout remaining time 637] (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: 25.456880733952858] Failed to read output from testmodel.py, exit status != 0: 22.856020239996724 22.871255826 22.427780213 Calling exit ...