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.001409/0.001409, allocations: 104 kB / 16.45 MB, free: 6.449 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.001513/0.001513, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.498/1.498, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.1685/0.1685, allocations: 23.86 MB / 332.7 MB, free: 12.45 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.0022/0.0022, allocations: 71.89 kB / 466 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2977, allocations: 59.81 MB / 0.5135 GB, free: 8.824 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.04104/0.3387, allocations: 29.74 MB / 0.5425 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02449/0.3632, allocations: 17.9 MB / 0.56 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.3648, allocations: 27.81 kB / 0.56 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001722/0.3666, allocations: 493.4 kB / 0.5605 GB, free: 10.24 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004574/0.3711, allocations: 1.318 MB / 0.5618 GB, free: 9.121 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008/0.3791, allocations: 2.55 MB / 0.5643 GB, free: 7.039 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004074/0.3832, allocations: 2.289 MB / 0.5665 GB, free: 4.961 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002197/0.3854, allocations: 1.231 MB / 0.5677 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001759/0.3872, allocations: 1.056 MB / 0.5687 GB, free: 2.633 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001933/0.3891, allocations: 1.164 MB / 0.5699 GB, free: 1.465 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006169/0.3897, allocations: 224 kB / 0.5701 GB, free: 1.246 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006289/0.396, allocations: 1.833 MB / 0.5719 GB, free: 15.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007533/0.3968, allocations: 0.4985 MB / 0.5724 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001673/0.3984, allocations: 1.104 MB / 0.5734 GB, free: 13.8 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009365/0.4078, allocations: 4.331 MB / 0.5777 GB, free: 9.453 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.4078, allocations: 0 / 0.5777 GB, free: 9.453 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.4078, allocations: 7.984 kB / 0.5777 GB, free: 9.445 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.78e-05/0.4079, allocations: 0 / 0.5777 GB, free: 9.445 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.005915/0.4138, allocations: 2.557 MB / 0.5802 GB, free: 6.828 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.4139, allocations: 12.03 kB / 0.5802 GB, free: 6.816 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005221/0.4144, allocations: 278.9 kB / 0.5805 GB, free: 6.535 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001943/0.4163, allocations: 443 kB / 0.5809 GB, free: 6.102 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002279/0.4186, allocations: 1.123 MB / 0.582 GB, free: 4.938 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000205/0.4188, allocations: 181.8 kB / 0.5821 GB, free: 4.754 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004591/0.4193, allocations: 200 kB / 0.5823 GB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004441/0.4237, allocations: 2.131 MB / 0.5844 GB, free: 2.363 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.933e-05/0.4238, allocations: 7.938 kB / 0.5844 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000245/0.424, allocations: 80 kB / 0.5845 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.582e-05/0.424, allocations: 48 kB / 0.5845 GB, free: 2.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004336/0.4284, allocations: 2.237 MB / 0.5867 GB, free: 15.98 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.01241/0.4408, allocations: 7.36 MB / 0.5939 GB, free: 8.273 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003118/0.4439, allocations: 1.671 MB / 0.5956 GB, free: 6.547 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.4449, allocations: 0.5334 MB / 0.5961 GB, free: 6.004 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/0.4553, allocations: 6.381 MB / 0.6023 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/0.4554, allocations: 47.55 kB / 0.6024 GB, free: 14.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=88): time 2.986e-06/0.4554, allocations: 3.938 kB / 0.6024 GB, free: 14.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=106): time 0.02037/0.4757, allocations: 4.903 MB / 0.6071 GB, free: 9.832 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.309e-05/0.4758, allocations: 123.8 kB / 0.6073 GB, free: 9.684 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/0.4772, allocations: 0.9157 MB / 0.6082 GB, free: 8.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.4773, allocations: 45.7 kB / 0.6082 GB, free: 8.699 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007748/0.4781, allocations: 0.9594 MB / 0.6091 GB, free: 7.727 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004668/0.4785, allocations: 408.7 kB / 0.6095 GB, free: 7.324 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006135/0.4792, allocations: 347.4 kB / 0.6099 GB, free: 6.977 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4793, allocations: 301.1 kB / 0.6101 GB, free: 6.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009298/0.4802, allocations: 459.8 kB / 0.6106 GB, free: 6.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001598/0.4818, allocations: 1.191 MB / 0.6117 GB, free: 4.688 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/0.4847, allocations: 1.802 MB / 0.6135 GB, free: 2.531 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.911e-05/0.4847, allocations: 8 kB / 0.6135 GB, free: 2.523 MB / 462.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005885/0.4906, allocations: 2.065 MB / 0.6155 GB, free: 452 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.804e-05/0.4907, allocations: 19.98 kB / 0.6155 GB, free: 432 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-05/0.4907, allocations: 24 kB / 0.6156 GB, free: 408 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002671/0.4934, allocations: 382.5 kB / 0.6159 GB, free: 16 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00196/0.4953, allocations: 451.3 kB / 0.6164 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00603/0.5014, allocations: 4.068 MB / 0.6203 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.5026, allocations: 91.8 kB / 0.6204 GB, free: 11.11 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002592/0.5029, allocations: 108 kB / 0.6205 GB, free: 11 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.0007921/0.5037, allocations: 384.1 kB / 0.6209 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003631/0.5041, allocations: 131.2 kB / 0.621 GB, free: 10.49 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005246/0.5093, allocations: 1.61 MB / 0.6226 GB, free: 8.867 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.5093, allocations: 15.98 kB / 0.6226 GB, free: 8.852 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.5093, allocations: 0 / 0.6226 GB, free: 8.852 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/0.5093, allocations: 11.97 kB / 0.6226 GB, free: 8.84 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002682/0.512, allocations: 1.473 MB / 0.6241 GB, free: 7.277 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.512, allocations: 7.938 kB / 0.6241 GB, free: 7.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.5134, allocations: 236 kB / 0.6243 GB, free: 7.039 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002564/0.516, allocations: 358.1 kB / 0.6246 GB, free: 6.68 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001614/0.5162, allocations: 43.98 kB / 0.6247 GB, free: 6.637 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005835/0.522, allocations: 4 MB / 0.6286 GB, free: 2.332 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.522, allocations: 4 kB / 0.6286 GB, free: 2.328 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005833/0.5278, allocations: 2.212 MB / 0.6307 GB, free: 60 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004505/0.5283, allocations: 200.2 kB / 0.6309 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003036/0.5286, allocations: 32 kB / 0.631 GB, free: 15.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008858/0.5295, allocations: 32 kB / 0.631 GB, free: 15.78 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002873/0.5298, allocations: 104.7 kB / 0.6311 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/0.5299, allocations: 51.92 kB / 0.6311 GB, free: 15.63 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009247/0.5308, allocations: 0.5737 MB / 0.6317 GB, free: 15.05 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5308, allocations: 0 / 0.6317 GB, free: 15.05 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002632/0.5334, allocations: 0.7288 MB / 0.6324 GB, free: 14.32 MB / 494.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.00752/0.541, allocations: 3.386 MB / 0.6357 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003044/0.544, allocations: 1.468 MB / 0.6372 GB, free: 9.371 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.544, allocations: 0 / 0.6372 GB, free: 9.371 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.5455, allocations: 0.7695 MB / 0.6379 GB, free: 8.578 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/0.5471, allocations: 236.8 kB / 0.6381 GB, free: 8.348 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02423/0.5714, allocations: 12.18 MB / 0.65 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/0.5725, allocations: 1.255 MB / 0.6513 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001194/0.5737, allocations: 334.5 kB / 0.6516 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/0.5748, allocations: 0.753 MB / 0.6523 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of SimCode: time 8.31e-07/0.5748, allocations: 3.938 kB / 0.6523 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09133/0.6662, allocations: 38.42 MB / 0.6898 GB, free: 2.605 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.13/21.79, allocations: 3.938 kB / 0.6898 GB, free: 2.602 MB / 0.5294 GB " [Timeout remaining time 638] (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: 24.64321060408838] Failed to read output from testmodel.py, exit status != 0: 21.916835631011054 21.942381272 21.529766504 Calling exit ...