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.001349/0.001349, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001702/0.001702, allocations: 221.5 kB / 22.25 MB, free: 5.258 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.812 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.2294/0.2294, allocations: 23.88 MB / 336.3 MB, free: 11.06 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.002028/0.002028, allocations: 75.02 kB / 471.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3293, allocations: 59.85 MB / 0.5185 GB, free: 9.559 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.07646/0.4057, allocations: 28.69 MB / 0.5465 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02298/0.4287, allocations: 15.78 MB / 0.562 GB, free: 12.76 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001846/0.4305, allocations: 35.69 kB / 0.562 GB, free: 12.73 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.432, allocations: 445.5 kB / 0.5624 GB, free: 12.4 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004386/0.4364, allocations: 1.302 MB / 0.5637 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00807/0.4444, allocations: 2.578 MB / 0.5662 GB, free: 9.078 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00378/0.4482, allocations: 2.284 MB / 0.5684 GB, free: 6.781 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001634/0.4499, allocations: 1.219 MB / 0.5696 GB, free: 5.508 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.4513, allocations: 1.056 MB / 0.5707 GB, free: 4.449 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001704/0.453, allocations: 1.164 MB / 0.5718 GB, free: 3.281 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003212/0.4533, allocations: 224 kB / 0.572 GB, free: 3.062 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004837/0.4581, allocations: 1.771 MB / 0.5737 GB, free: 1.289 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005582/0.4587, allocations: 0.4985 MB / 0.5742 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001107/0.4598, allocations: 0.9182 MB / 0.5751 GB, free: 15.86 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008473/0.4683, allocations: 4.346 MB / 0.5794 GB, free: 11.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.4683, allocations: 0 / 0.5794 GB, free: 11.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4683, allocations: 0 / 0.5794 GB, free: 11.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.864e-05/0.4683, allocations: 0 / 0.5794 GB, free: 11.5 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.004873/0.4732, allocations: 2.477 MB / 0.5818 GB, free: 8.984 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.4732, allocations: 12.03 kB / 0.5818 GB, free: 8.973 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000383/0.4736, allocations: 278.9 kB / 0.5821 GB, free: 8.691 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.4753, allocations: 443 kB / 0.5825 GB, free: 8.258 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002213/0.4776, allocations: 1.059 MB / 0.5835 GB, free: 7.172 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002164/0.4778, allocations: 207.5 kB / 0.5837 GB, free: 6.957 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003513/0.4781, allocations: 200 kB / 0.5839 GB, free: 6.762 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003862/0.482, allocations: 2.153 MB / 0.586 GB, free: 4.539 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.924e-05/0.482, allocations: 7.938 kB / 0.586 GB, free: 4.531 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001918/0.4822, allocations: 80 kB / 0.5861 GB, free: 4.453 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.293e-05/0.4823, allocations: 48 kB / 0.5861 GB, free: 4.406 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003842/0.4861, allocations: 2.218 MB / 0.5883 GB, free: 2.184 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.01068/0.4968, allocations: 6.09 MB / 0.5942 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0028/0.4996, allocations: 1.504 MB / 0.5957 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009136/0.5005, allocations: 0.5293 MB / 0.5962 GB, free: 9.844 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007921/0.5084, allocations: 3.311 MB / 0.5995 GB, free: 6.508 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.5085, allocations: 43.56 kB / 0.5995 GB, free: 6.457 MB / 446.1 MB Notification: Performance of pre-optimization done (n=88): time 2.815e-06/0.5085, allocations: 4 kB / 0.5995 GB, free: 6.453 MB / 446.1 MB Notification: Performance of matching and sorting (n=106): time 0.02136/0.5298, allocations: 4.678 MB / 0.6041 GB, free: 1.746 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.413e-05/0.5299, allocations: 123.7 kB / 0.6042 GB, free: 1.602 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/0.5313, allocations: 0.9583 MB / 0.6051 GB, free: 0.625 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001413/0.5314, allocations: 41.77 kB / 0.6052 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007263/0.5321, allocations: 0.9594 MB / 0.6061 GB, free: 15.61 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003927/0.5325, allocations: 408.7 kB / 0.6065 GB, free: 15.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005061/0.533, allocations: 347.4 kB / 0.6068 GB, free: 14.86 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5332, allocations: 305.1 kB / 0.6071 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008626/0.534, allocations: 451.8 kB / 0.6075 GB, free: 14.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.5356, allocations: 1.199 MB / 0.6087 GB, free: 12.56 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002551/0.5381, allocations: 1.786 MB / 0.6105 GB, free: 10.42 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-05/0.5381, allocations: 8 kB / 0.6105 GB, free: 10.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005829/0.544, allocations: 2.073 MB / 0.6125 GB, free: 8.32 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.544, allocations: 16 kB / 0.6125 GB, free: 8.305 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.003e-05/0.544, allocations: 24 kB / 0.6125 GB, free: 8.281 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002854/0.5469, allocations: 390.5 kB / 0.6129 GB, free: 7.891 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001816/0.5487, allocations: 447.4 kB / 0.6133 GB, free: 7.453 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006015/0.5547, allocations: 3.842 MB / 0.6171 GB, free: 3.352 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.5562, allocations: 91.84 kB / 0.6172 GB, free: 3.262 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002103/0.5564, allocations: 108.1 kB / 0.6173 GB, free: 3.156 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.0007917/0.5572, allocations: 377.1 kB / 0.6176 GB, free: 2.777 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003075/0.5575, allocations: 131.2 kB / 0.6178 GB, free: 2.648 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005254/0.5627, allocations: 1.618 MB / 0.6193 GB, free: 1.016 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.5627, allocations: 12.14 kB / 0.6194 GB, free: 1.004 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.5628, allocations: 7.984 kB / 0.6194 GB, free: 0.9961 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.5628, allocations: 7.984 kB / 0.6194 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002434/0.5652, allocations: 1.316 MB / 0.6207 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.5652, allocations: 7.938 kB / 0.6207 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/0.5665, allocations: 235.7 kB / 0.6209 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002784/0.5693, allocations: 350.3 kB / 0.6212 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.5694, allocations: 47.98 kB / 0.6213 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005589/0.575, allocations: 3.766 MB / 0.6249 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.575, allocations: 0 / 0.6249 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005663/0.5807, allocations: 2.212 MB / 0.6271 GB, free: 8.664 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003167/0.581, allocations: 127 kB / 0.6272 GB, free: 8.539 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001736/0.5812, allocations: 24 kB / 0.6272 GB, free: 8.516 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007473/0.5819, allocations: 31.98 kB / 0.6273 GB, free: 8.484 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.5822, allocations: 100.8 kB / 0.6274 GB, free: 8.387 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.5823, allocations: 55.92 kB / 0.6274 GB, free: 8.332 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008057/0.5831, allocations: 0.5776 MB / 0.628 GB, free: 7.746 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5831, allocations: 0 / 0.628 GB, free: 7.746 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002384/0.5855, allocations: 0.7289 MB / 0.6287 GB, free: 7.016 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.007391/0.5928, allocations: 3.395 MB / 0.632 GB, free: 3.551 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002988/0.5958, allocations: 1.468 MB / 0.6335 GB, free: 2.066 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.5958, allocations: 0 / 0.6335 GB, free: 2.066 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001624/0.5975, allocations: 0.7773 MB / 0.6342 GB, free: 1.266 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.5991, allocations: 239.4 kB / 0.6344 GB, free: 1.035 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02457/0.6237, allocations: 12.18 MB / 0.6463 GB, free: 3.898 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008249/0.6245, allocations: 0.6724 MB / 0.647 GB, free: 3.191 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001236/0.6257, allocations: 334.5 kB / 0.6473 GB, free: 2.859 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001082/0.6268, allocations: 0.7452 MB / 0.648 GB, free: 2.113 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6268, allocations: 0 / 0.648 GB, free: 2.113 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09248/0.7193, allocations: 40.08 MB / 0.6872 GB, free: 10.37 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/15.11, allocations: 3.984 kB / 0.6872 GB, free: 10.36 MB / 0.5294 GB " [Timeout remaining time 645] (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.042666823981563] Failed to read output from testmodel.py, exit status != 0: 15.264131927018752 15.290335986 14.817123249 Calling exit ...