Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction2.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.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",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.001275/0.001275, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001351/0.001351, allocations: 195.6 kB / 16.14 MB, free: 6.695 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.278/1.278, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1839/0.1839, allocations: 15.32 MB / 305.3 MB, free: 15.34 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 63.89 kB / 369.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09536, allocations: 53.61 MB / 423.4 MB, free: 14.7 MB / 366.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.SimpleReaction2): time 0.3165/0.4119, allocations: 24.86 MB / 448.2 MB, free: 39.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009663/0.4216, allocations: 11.59 MB / 459.8 MB, free: 34.19 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00089/0.4225, allocations: 24.62 kB / 459.8 MB, free: 34.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006749/0.4232, allocations: 238.8 kB / 460.1 MB, free: 34.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002173/0.4254, allocations: 0.8355 MB / 460.9 MB, free: 33.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003705/0.4291, allocations: 1.325 MB / 462.2 MB, free: 33.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.4301, allocations: 1.219 MB / 463.5 MB, free: 32.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005627/0.4307, allocations: 0.5982 MB / 464.1 MB, free: 32.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004389/0.4312, allocations: 0.5769 MB / 464.6 MB, free: 32.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006005/0.4318, allocations: 0.6593 MB / 465.3 MB, free: 32.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.4319, allocations: 68.97 kB / 465.4 MB, free: 32.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003425/0.4353, allocations: 1.249 MB / 466.6 MB, free: 31.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002051/0.4355, allocations: 231.5 kB / 466.8 MB, free: 31.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004359/0.436, allocations: 0.5092 MB / 467.3 MB, free: 31.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003421/0.4394, allocations: 2.351 MB / 469.7 MB, free: 30.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4394, allocations: 0 / 469.7 MB, free: 30.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4394, allocations: 0 / 469.7 MB, free: 30.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.4395, allocations: 4 kB / 469.7 MB, free: 30.41 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002307/0.4418, allocations: 1.499 MB / 471.2 MB, free: 29.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.4418, allocations: 9.25 kB / 471.2 MB, free: 29.45 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001382/0.442, allocations: 136.9 kB / 471.3 MB, free: 29.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008987/0.4429, allocations: 209.9 kB / 471.5 MB, free: 29.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006909/0.4436, allocations: 0.555 MB / 472.1 MB, free: 28.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-05/0.4437, allocations: 95.08 kB / 472.2 MB, free: 28.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/0.4438, allocations: 94.38 kB / 472.3 MB, free: 28.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.4453, allocations: 1.053 MB / 473.3 MB, free: 28.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.4454, allocations: 1.875 kB / 473.3 MB, free: 28.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.988e-05/0.4454, allocations: 37.5 kB / 473.4 MB, free: 28.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.4455, allocations: 22.94 kB / 473.4 MB, free: 28.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.4472, allocations: 1.273 MB / 474.7 MB, free: 27.98 MB / 366.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.004763/0.452, allocations: 3.47 MB / 478.1 MB, free: 25.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002128/0.4541, allocations: 1.527 MB / 479.7 MB, free: 25.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005754/0.4547, allocations: 438.8 kB / 480.1 MB, free: 24.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004422/0.4591, allocations: 4.057 MB / 484.2 MB, free: 21.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.4592, allocations: 40.34 kB / 484.2 MB, free: 21.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.114e-06/0.4592, allocations: 1.188 kB / 484.2 MB, free: 21.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.00309/0.4623, allocations: 1.66 MB / 485.9 MB, free: 20.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.4623, allocations: 59.09 kB / 485.9 MB, free: 20.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005554/0.4629, allocations: 0.5107 MB / 486.4 MB, free: 20.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.4629, allocations: 37.62 kB / 486.5 MB, free: 20.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/0.4632, allocations: 460.9 kB / 486.9 MB, free: 20.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.4633, allocations: 228.4 kB / 487.1 MB, free: 19.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/0.4635, allocations: 173.4 kB / 487.3 MB, free: 19.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.893e-05/0.4636, allocations: 374.9 kB / 487.7 MB, free: 19.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003575/0.464, allocations: 209.9 kB / 487.9 MB, free: 19.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005084/0.4645, allocations: 0.5331 MB / 488.4 MB, free: 18.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009075/0.4654, allocations: 0.8161 MB / 489.2 MB, free: 18.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.792e-06/0.4654, allocations: 8.359 kB / 489.2 MB, free: 18.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001315/0.4668, allocations: 0.8509 MB / 490.1 MB, free: 17.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.4668, allocations: 10.31 kB / 490.1 MB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.4668, allocations: 14.94 kB / 490.1 MB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.034e-05/0.4668, allocations: 16.5 kB / 490.1 MB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009238/0.4678, allocations: 266.5 kB / 490.4 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/0.4678, allocations: 21.78 kB / 490.4 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005551/0.4684, allocations: 59.28 kB / 490.5 MB, free: 17.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.142e-05/0.4685, allocations: 50.83 kB / 490.5 MB, free: 17.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002679/0.4687, allocations: 236.5 kB / 490.7 MB, free: 17.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.4688, allocations: 65.41 kB / 490.8 MB, free: 17.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.4701, allocations: 0.6937 MB / 491.5 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.4701, allocations: 7.219 kB / 491.5 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4701, allocations: 4 kB / 491.5 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.4702, allocations: 4.25 kB / 491.5 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.4712, allocations: 0.7689 MB / 492.3 MB, free: 16.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.4712, allocations: 1.031 kB / 492.3 MB, free: 16.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007304/0.472, allocations: 175.6 kB / 492.5 MB, free: 16.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.472, allocations: 4.031 kB / 492.5 MB, free: 16.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.475e-05/0.472, allocations: 28.25 kB / 492.5 MB, free: 16.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.472, allocations: 3.719 kB / 492.5 MB, free: 16.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.472, allocations: 1.625 kB / 492.5 MB, free: 16.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.4732, allocations: 0.9501 MB / 493.4 MB, free: 16.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002271/0.4735, allocations: 190 kB / 493.6 MB, free: 16.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.401e-05/0.4735, allocations: 16.48 kB / 493.6 MB, free: 16.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.4738, allocations: 21.61 kB / 493.7 MB, free: 16.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.4739, allocations: 54.45 kB / 493.7 MB, free: 16.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.848e-05/0.474, allocations: 27.88 kB / 493.7 MB, free: 16.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003078/0.4743, allocations: 339.8 kB / 494.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4743, allocations: 0 / 494.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001224/0.4755, allocations: 473.2 kB / 494.5 MB, free: 15.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002056/0.4776, allocations: 1.972 MB / 496.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008348/0.4785, allocations: 0.601 MB / 497.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4785, allocations: 1 kB / 497.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003371/0.4788, allocations: 288.5 kB / 497.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/0.4796, allocations: 156.1 kB / 497.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006126/0.4857, allocations: 6.648 MB / 0.4924 GB, free: 9.746 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.4861, allocations: 0.9569 MB / 0.4933 GB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006122/0.4867, allocations: 175.2 kB / 0.4935 GB, free: 8.961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.4871, allocations: 346.5 kB / 0.4938 GB, free: 8.734 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4871, allocations: 0 / 0.4938 GB, free: 8.734 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02998/0.5171, allocations: 19.93 MB / 0.5133 GB, free: 8.816 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.5173, allocations: 176.2 kB / 0.5134 GB, free: 8.559 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.696, allocations: 0 / 0.5134 GB, free: 8.559 MB / 382.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_SimpleReaction2_fmu --startTime=0 --stopTime=0.0001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_SimpleReaction2.fmu > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)