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.006964/0.006964, allocations: 102.5 kB / 15.73 MB, free: 6.066 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.00141/0.00141, allocations: 197.1 kB / 16.68 MB, free: 5.973 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.415/1.415, 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.89/0.89, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 68.11 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1325, allocations: 53.61 MB / 478.3 MB, free: 6.285 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.SimpleReaction): time 0.2748/0.4073, allocations: 24.39 MB / 0.4909 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01222/0.4196, allocations: 7.959 MB / 0.4987 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007908/0.4204, allocations: 15.88 kB / 0.4987 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008302/0.4212, allocations: 186.6 kB / 0.4989 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002387/0.4236, allocations: 0.6864 MB / 0.4995 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00343/0.4271, allocations: 1.025 MB / 0.5005 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001442/0.4285, allocations: 0.9317 MB / 0.5014 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007699/0.4293, allocations: 0.5173 MB / 0.5019 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005943/0.4299, allocations: 458.7 kB / 0.5024 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007806/0.4307, allocations: 498.3 kB / 0.5029 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001516/0.4309, allocations: 76 kB / 0.5029 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003261/0.4342, allocations: 0.8698 MB / 0.5038 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003144/0.4345, allocations: 191.4 kB / 0.504 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005751/0.4351, allocations: 418.1 kB / 0.5044 GB, free: 136 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.261/0.6961, allocations: 1.764 MB / 0.5061 GB, free: 20.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.6962, allocations: 0.625 kB / 0.5061 GB, free: 20.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6962, allocations: 0 / 0.5061 GB, free: 20.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.641e-05/0.6962, allocations: 1.516 kB / 0.5061 GB, free: 20.43 MB / 382.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.002276/0.6985, allocations: 1.189 MB / 0.5072 GB, free: 19.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.6985, allocations: 9.75 kB / 0.5073 GB, free: 19.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001578/0.6987, allocations: 114.6 kB / 0.5074 GB, free: 19.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006618/0.6994, allocations: 157.6 kB / 0.5075 GB, free: 19.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007389/0.7001, allocations: 483.4 kB / 0.508 GB, free: 19.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.7002, allocations: 82.66 kB / 0.5081 GB, free: 19.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.7004, allocations: 71.12 kB / 0.5081 GB, free: 19.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.7016, allocations: 0.7827 MB / 0.5089 GB, free: 19.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.7017, allocations: 1.25 kB / 0.5089 GB, free: 19.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.547e-05/0.7017, allocations: 27.25 kB / 0.5089 GB, free: 19.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.7018, allocations: 16.41 kB / 0.5089 GB, free: 19.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.7032, allocations: 0.8794 MB / 0.5098 GB, free: 19.26 MB / 382.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.00418/0.7074, allocations: 2.569 MB / 0.5123 GB, free: 18.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.7091, allocations: 0.9999 MB / 0.5133 GB, free: 18.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005462/0.7097, allocations: 317.4 kB / 0.5136 GB, free: 18.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004275/0.714, allocations: 2.837 MB / 0.5163 GB, free: 16.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.714, allocations: 40.56 kB / 0.5164 GB, free: 16.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 4.368e-06/0.714, allocations: 2.484 kB / 0.5164 GB, free: 16.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=46): time 0.002758/0.7168, allocations: 1.239 MB / 0.5176 GB, free: 15.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.7168, allocations: 59.89 kB / 0.5177 GB, free: 15.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005124/0.7173, allocations: 421.6 kB / 0.5181 GB, free: 15.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.631e-05/0.7174, allocations: 31.08 kB / 0.5181 GB, free: 15.01 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002152/0.7176, allocations: 379.2 kB / 0.5185 GB, free: 14.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.7177, allocations: 172.4 kB / 0.5186 GB, free: 14.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.7179, allocations: 127.5 kB / 0.5187 GB, free: 14.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.718, allocations: 364.8 kB / 0.5191 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002761/0.7183, allocations: 149.5 kB / 0.5192 GB, free: 14.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003993/0.7187, allocations: 390.1 kB / 0.5196 GB, free: 13.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007035/0.7194, allocations: 0.5776 MB / 0.5202 GB, free: 13.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.7194, allocations: 4.656 kB / 0.5202 GB, free: 13.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001016/0.7204, allocations: 0.6185 MB / 0.5208 GB, free: 13.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.7205, allocations: 8.688 kB / 0.5208 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.7205, allocations: 11.72 kB / 0.5208 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.7205, allocations: 12.12 kB / 0.5208 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007557/0.7213, allocations: 202 kB / 0.521 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.476e-05/0.7213, allocations: 16.66 kB / 0.521 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.7217, allocations: 27.47 kB / 0.521 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.047e-05/0.7218, allocations: 33.84 kB / 0.5211 GB, free: 13.12 MB / 382.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.0002476/0.722, allocations: 201.7 kB / 0.5213 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.588e-05/0.7221, allocations: 51.59 kB / 0.5213 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009642/0.7231, allocations: 0.4989 MB / 0.5218 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.7231, allocations: 5.844 kB / 0.5218 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.7231, allocations: 0 / 0.5218 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.7231, allocations: 3.047 kB / 0.5218 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008748/0.724, allocations: 0.6263 MB / 0.5224 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.724, allocations: 1.062 kB / 0.5224 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005979/0.7246, allocations: 141.6 kB / 0.5226 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.7246, allocations: 5 kB / 0.5226 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/0.7247, allocations: 20.25 kB / 0.5226 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.7247, allocations: 5.703 kB / 0.5226 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.7247, allocations: 4.344 kB / 0.5226 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.7257, allocations: 0.721 MB / 0.5233 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001916/0.7259, allocations: 166.2 kB / 0.5235 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.889e-05/0.726, allocations: 21.38 kB / 0.5235 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.7262, allocations: 12.08 kB / 0.5235 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.485e-05/0.7263, allocations: 38.73 kB / 0.5235 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.7264, allocations: 22.64 kB / 0.5235 GB, free: 11.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000317/0.7267, allocations: 279.2 kB / 0.5238 GB, free: 11.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7267, allocations: 2.656 kB / 0.5238 GB, free: 11.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001235/0.7279, allocations: 335.9 kB / 0.5241 GB, free: 11.54 MB / 382.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.001971/0.7299, allocations: 1.591 MB / 0.5257 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007929/0.7307, allocations: 436.3 kB / 0.5261 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.7307, allocations: 1.344 kB / 0.5261 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000304/0.7311, allocations: 208.9 kB / 0.5263 GB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007085/0.7318, allocations: 126.6 kB / 0.5264 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005501/0.7373, allocations: 4.81 MB / 0.5311 GB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.7377, allocations: 0.893 MB / 0.532 GB, free: 6.602 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004568/0.7382, allocations: 117.4 kB / 0.5321 GB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003221/0.7385, allocations: 255.5 kB / 0.5323 GB, free: 6.426 MB / 382.1 MB Notification: Performance of SimCode: time 1.443e-06/0.7385, allocations: 0 / 0.5323 GB, free: 6.426 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.467/3.205, allocations: 15.26 MB / 0.5472 GB, free: 12.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/14.83, allocations: 7.859 kB / 0.5473 GB, free: 12.35 MB / 398.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)