Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction.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.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction",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.0009962/0.0009962, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001029/0.001029, allocations: 193.4 kB / 16.14 MB, free: 6.66 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.262/1.262, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2064/0.2064, allocations: 15.31 MB / 305.3 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.91 kB / 369.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08865/0.08988, allocations: 53.61 MB / 423.4 MB, free: 14.68 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.SimpleReaction): time 0.3207/0.4106, allocations: 23.91 MB / 447.3 MB, free: 39.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006246/0.4168, allocations: 7.963 MB / 455.2 MB, free: 36.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003493/0.4172, allocations: 21.16 kB / 455.3 MB, free: 36.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004204/0.4176, allocations: 169.2 kB / 455.4 MB, free: 35.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001057/0.4187, allocations: 0.5915 MB / 456 MB, free: 35.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001977/0.4207, allocations: 0.9022 MB / 456.9 MB, free: 35.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008478/0.4215, allocations: 0.9079 MB / 457.8 MB, free: 35.01 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004531/0.422, allocations: 452.7 kB / 458.3 MB, free: 34.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000339/0.4224, allocations: 418.3 kB / 458.7 MB, free: 34.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004266/0.4228, allocations: 497.5 kB / 459.2 MB, free: 34.78 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.192e-05/0.4229, allocations: 51.88 kB / 459.2 MB, free: 34.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001739/0.4246, allocations: 0.8377 MB / 460 MB, free: 34.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001682/0.4248, allocations: 173.2 kB / 460.2 MB, free: 34.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.4251, allocations: 391.2 kB / 460.6 MB, free: 34.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001561/0.4267, allocations: 1.655 MB / 462.2 MB, free: 33.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4267, allocations: 0 / 462.2 MB, free: 33.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.4267, allocations: 0 / 462.2 MB, free: 33.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.4267, allocations: 0 / 462.2 MB, free: 33.92 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001466/0.4282, allocations: 1.161 MB / 463.4 MB, free: 33.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.4282, allocations: 13.59 kB / 463.4 MB, free: 33.13 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.4283, allocations: 108.8 kB / 463.5 MB, free: 33.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005717/0.4289, allocations: 149.1 kB / 463.7 MB, free: 33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004748/0.4294, allocations: 469.5 kB / 464.1 MB, free: 32.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.859e-05/0.4295, allocations: 85.33 kB / 464.2 MB, free: 32.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.861e-05/0.4296, allocations: 67.59 kB / 464.3 MB, free: 32.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009928/0.4306, allocations: 0.7818 MB / 465.1 MB, free: 32.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.4306, allocations: 0 / 465.1 MB, free: 32.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.065e-05/0.4307, allocations: 26.41 kB / 465.1 MB, free: 32.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.4307, allocations: 16.59 kB / 465.1 MB, free: 32.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.4319, allocations: 0.8778 MB / 466 MB, free: 31.97 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.003192/0.4351, allocations: 2.574 MB / 468.6 MB, free: 30.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.4365, allocations: 1.011 MB / 469.6 MB, free: 29.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004315/0.437, allocations: 310.2 kB / 469.9 MB, free: 29.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003086/0.44, allocations: 2.849 MB / 472.7 MB, free: 27.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.75e-05/0.4401, allocations: 41.47 kB / 472.8 MB, free: 27.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.944e-06/0.4401, allocations: 0 / 472.8 MB, free: 27.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.002227/0.4423, allocations: 1.22 MB / 474 MB, free: 26.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.014e-05/0.4424, allocations: 59.47 kB / 474 MB, free: 26.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.4428, allocations: 422 kB / 474.5 MB, free: 26.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.4428, allocations: 36.45 kB / 474.5 MB, free: 26.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.443, allocations: 370.7 kB / 474.9 MB, free: 26.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.362e-05/0.4431, allocations: 161.4 kB / 475 MB, free: 25.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.4432, allocations: 131.8 kB / 475.1 MB, free: 25.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.253e-05/0.4433, allocations: 358.8 kB / 475.5 MB, free: 25.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.4436, allocations: 148.3 kB / 475.6 MB, free: 25.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003601/0.444, allocations: 392.5 kB / 476 MB, free: 25.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000651/0.4446, allocations: 0.5788 MB / 476.6 MB, free: 24.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.4446, allocations: 6.75 kB / 476.6 MB, free: 24.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0008862/0.4455, allocations: 0.6119 MB / 477.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.4455, allocations: 13.88 kB / 477.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.4456, allocations: 7.844 kB / 477.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.4456, allocations: 11.97 kB / 477.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006787/0.4463, allocations: 209.3 kB / 477.4 MB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/0.4463, allocations: 15.66 kB / 477.5 MB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/0.4466, allocations: 37.45 kB / 477.5 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-05/0.4467, allocations: 40.38 kB / 477.5 MB, free: 24.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (83): * Single equations (assignments): 83 * 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.0002035/0.4469, allocations: 206.8 kB / 477.7 MB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.808e-05/0.447, allocations: 49.91 kB / 477.8 MB, free: 24.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009264/0.4479, allocations: 499 kB / 478.3 MB, free: 23.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.4479, allocations: 5.062 kB / 478.3 MB, free: 23.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.448, allocations: 1.281 kB / 478.3 MB, free: 23.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.448, allocations: 3.469 kB / 478.3 MB, free: 23.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007553/0.4487, allocations: 0.6342 MB / 478.9 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.4487, allocations: 1.25 kB / 478.9 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005639/0.4493, allocations: 141.4 kB / 479.1 MB, free: 23.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-06/0.4493, allocations: 6.844 kB / 479.1 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.4494, allocations: 20.38 kB / 479.1 MB, free: 23.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.4494, allocations: 3.438 kB / 479.1 MB, free: 23.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4494, allocations: 1.062 kB / 479.1 MB, free: 23.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009651/0.4504, allocations: 0.7193 MB / 479.8 MB, free: 23.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.4506, allocations: 164.4 kB / 480 MB, free: 22.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.292e-05/0.4506, allocations: 15.5 kB / 480 MB, free: 22.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.4509, allocations: 11.84 kB / 480 MB, free: 22.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.375e-05/0.451, allocations: 36.11 kB / 480 MB, free: 22.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.162e-05/0.451, allocations: 20.8 kB / 480.1 MB, free: 22.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002577/0.4513, allocations: 276.7 kB / 480.3 MB, free: 22.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4513, allocations: 4 kB / 480.3 MB, free: 22.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00101/0.4523, allocations: 334.6 kB / 480.7 MB, free: 22.69 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (solution.temperature,A.logn,B.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 (53): * Single equations (assignments): 53 * 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.001784/0.4541, allocations: 1.587 MB / 482.2 MB, free: 21.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006973/0.4548, allocations: 439.1 kB / 482.7 MB, free: 21.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4548, allocations: 1.938 kB / 482.7 MB, free: 21.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002688/0.4551, allocations: 202.9 kB / 482.9 MB, free: 21.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007025/0.4558, allocations: 126.5 kB / 483 MB, free: 21.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005165/0.4609, allocations: 5.158 MB / 488.2 MB, free: 17.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.4613, allocations: 0.8851 MB / 489 MB, free: 17.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004971/0.4618, allocations: 114.7 kB / 489.2 MB, free: 17.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002984/0.4621, allocations: 256.6 kB / 489.4 MB, free: 16.91 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4622, allocations: 1.156 kB / 489.4 MB, free: 16.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02702/0.4892, allocations: 14.68 MB / 0.4923 GB, free: 13.09 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000137/0.4893, allocations: 172 kB / 0.4924 GB, free: 12.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/2.549, allocations: 0 / 0.4924 GB, free: 12.84 MB / 366.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_SimpleReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_SimpleReaction.fmu > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)