Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.HydrogenCombustion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.HydrogenCombustion,fileNamePrefix="Chemical_Chemical_Examples_HydrogenCombustion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HydrogenCombustion,fileNamePrefix="Chemical_Chemical_Examples_HydrogenCombustion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006059/0.006059, allocations: 103.1 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 193.5 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07797/0.07797, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 60.12 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09157, allocations: 53.61 MB / 478.3 MB, free: 6.277 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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 1.4.1-master/package.mo:4740:7-4740:66: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.Examples.HydrogenCombustion): time 0.03667/0.1283, allocations: 28.29 MB / 0.4947 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.344/0.4723, allocations: 153.2 MB / 0.6443 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001372/0.4737, allocations: 23.88 kB / 0.6444 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001711/0.4754, allocations: 0.5072 MB / 0.6449 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005275/0.4807, allocations: 1.646 MB / 0.6465 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00798/0.4887, allocations: 2.941 MB / 0.6493 GB, free: 7.926 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0037/0.4925, allocations: 2.594 MB / 0.6519 GB, free: 5.32 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002215/0.4947, allocations: 1.519 MB / 0.6534 GB, free: 3.758 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001891/0.4966, allocations: 1.258 MB / 0.6546 GB, free: 2.496 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002263/0.4989, allocations: 1.374 MB / 0.6559 GB, free: 1.117 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000723/0.4996, allocations: 228 kB / 0.6561 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006884/0.5065, allocations: 2.321 MB / 0.6584 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009054/0.5075, allocations: 0.5647 MB / 0.659 GB, free: 14 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001935/0.5094, allocations: 1.186 MB / 0.6601 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.5203, allocations: 4.958 MB / 0.665 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.5204, allocations: 4 kB / 0.665 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.874e-06/0.5204, allocations: 0 / 0.665 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001134/0.5205, allocations: 0 / 0.665 GB, free: 7.836 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 492 * Number of variables: 492 Notification: Performance of Generate backend data structure: time 0.006194/0.5267, allocations: 2.827 MB / 0.6677 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.5268, allocations: 8.031 kB / 0.6677 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005488/0.5273, allocations: 274.6 kB / 0.668 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004379/0.5317, allocations: 0.8496 MB / 0.6688 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.5338, allocations: 0.9742 MB / 0.6698 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002256/0.5341, allocations: 203.8 kB / 0.67 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000474/0.5346, allocations: 196.5 kB / 0.6702 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004285/0.5389, allocations: 2.152 MB / 0.6723 GB, free: 204 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/0.5389, allocations: 3.938 kB / 0.6723 GB, free: 200 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.5392, allocations: 83.94 kB / 0.6723 GB, free: 116 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.836e-05/0.5392, allocations: 48 kB / 0.6724 GB, free: 68 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004092/0.5433, allocations: 2.303 MB / 0.6746 GB, free: 13.76 MB / 0.5137 GB 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.01235/0.5557, allocations: 7.612 MB / 0.6821 GB, free: 5.75 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004662/0.5604, allocations: 2.207 MB / 0.6842 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001448/0.5618, allocations: 0.8292 MB / 0.685 GB, free: 2.566 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008779/0.5706, allocations: 6.637 MB / 0.6915 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.5707, allocations: 51.67 kB / 0.6916 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=133): time 3.045e-06/0.5707, allocations: 0 / 0.6916 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=176): time 0.01835/0.5891, allocations: 6.948 MB / 0.6983 GB, free: 4.098 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/0.5892, allocations: 99.09 kB / 0.6984 GB, free: 3.98 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.5906, allocations: 0.9612 MB / 0.6994 GB, free: 3.004 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001319/0.5907, allocations: 53.7 kB / 0.6994 GB, free: 2.945 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006206/0.5913, allocations: 0.8725 MB / 0.7003 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005623/0.5919, allocations: 0.6006 MB / 0.7009 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006591/0.5926, allocations: 411.5 kB / 0.7013 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.5927, allocations: 309 kB / 0.7016 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.594, allocations: 0.6288 MB / 0.7022 GB, free: 104 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/0.5957, allocations: 1.205 MB / 0.7033 GB, free: 14.64 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003127/0.5988, allocations: 2.007 MB / 0.7053 GB, free: 12.39 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.901e-05/0.5988, allocations: 4 kB / 0.7053 GB, free: 12.39 MB / 0.545 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005865/0.6047, allocations: 2.621 MB / 0.7079 GB, free: 9.738 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.6048, allocations: 12 kB / 0.7079 GB, free: 9.727 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/0.6048, allocations: 20 kB / 0.7079 GB, free: 9.707 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002351/0.6071, allocations: 0.6377 MB / 0.7085 GB, free: 9.055 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/0.6093, allocations: 479.4 kB / 0.709 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2102/0.8195, allocations: 9.511 MB / 0.7183 GB, free: 193.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.8211, allocations: 67.38 kB / 0.7183 GB, free: 193.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002667/0.8213, allocations: 162.7 kB / 0.7185 GB, free: 193.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (208): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,10,100.0%), (1,11,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,11), (1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0007753/0.8221, allocations: 434.2 kB / 0.7189 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002977/0.8224, allocations: 147.8 kB / 0.719 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005856/0.8283, allocations: 2.736 MB / 0.7217 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.8283, allocations: 21.25 kB / 0.7217 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.8284, allocations: 6.031 kB / 0.7217 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-05/0.8284, allocations: 8.578 kB / 0.7218 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007186/0.8356, allocations: 4.27 MB / 0.7259 GB, free: 191.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.8356, allocations: 2.094 kB / 0.7259 GB, free: 191.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00191/0.8375, allocations: 358.2 kB / 0.7263 GB, free: 191.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002387/0.8399, allocations: 0.5928 MB / 0.7268 GB, free: 191.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001993/0.8401, allocations: 73.73 kB / 0.7269 GB, free: 191.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006825/0.847, allocations: 8.646 MB / 0.7354 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.847, allocations: 2.125 kB / 0.7354 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006058/0.8531, allocations: 3.286 MB / 0.7386 GB, free: 182.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003739/0.8535, allocations: 210.4 kB / 0.7388 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002032/0.8537, allocations: 38.45 kB / 0.7388 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007933/0.8545, allocations: 38.39 kB / 0.7388 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003875/0.8549, allocations: 170.6 kB / 0.739 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002008/0.8551, allocations: 125.2 kB / 0.7391 GB, free: 182.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008555/0.8559, allocations: 0.6255 MB / 0.7397 GB, free: 181.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8559, allocations: 0 / 0.7397 GB, free: 181.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00267/0.8586, allocations: 0.8358 MB / 0.7406 GB, free: 181.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (H2_gas.logn,O2_gas.logn,H2O_gas.molarVolume,H2O_gas.logn,H2_gas1.logn,O2_gas1.logn,H2O_gas1.molarVolume,H2O_gas1.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 (147): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,9,100.0%), (1,6,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,10), (1,8), (1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007228/0.8659, allocations: 4.524 MB / 0.745 GB, free: 179.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003685/0.8696, allocations: 2.474 MB / 0.7474 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.8696, allocations: 3.938 kB / 0.7474 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002071/0.8717, allocations: 1.585 MB / 0.7489 GB, free: 177.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.8732, allocations: 298.5 kB / 0.7492 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01866/0.8919, allocations: 14.22 MB / 0.7631 GB, free: 169 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000708/0.8926, allocations: 1.408 MB / 0.7645 GB, free: 167.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001424/0.894, allocations: 437.2 kB / 0.7649 GB, free: 167.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/0.8951, allocations: 0.8844 MB / 0.7658 GB, free: 166.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.523e-06/0.8951, allocations: 2.625 kB / 0.7658 GB, free: 166.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08242/0.9775, allocations: 51.86 MB / 0.8164 GB, free: 116 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.35/23.33, allocations: 6.75 kB / 0.8164 GB, free: 116 MB / 0.545 GB (rm -f Chemical_Chemical.Examples.HydrogenCombustion.pipe ; mkfifo Chemical_Chemical.Examples.HydrogenCombustion.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HydrogenCombustion.pipe >> ../files/Chemical_Chemical.Examples.HydrogenCombustion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_HydrogenCombustion_fmu --startTime=0 --stopTime=0.39 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HydrogenCombustion.fmu > Chemical_Chemical.Examples.HydrogenCombustion.pipe 2>&1)