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.006132/0.006132, allocations: 102 kB / 15.73 MB, free: 6.043 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.00123/0.00123, allocations: 200.9 kB / 16.68 MB, free: 5.961 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.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07889/0.07889, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 64.12 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08858, allocations: 53.62 MB / 478.3 MB, free: 6.281 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.03191/0.1205, allocations: 23.8 MB / 0.4903 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008932/0.1295, allocations: 7.966 MB / 0.4981 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005592/0.1301, allocations: 11.94 kB / 0.4981 GB, free: 6.559 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006458/0.1307, allocations: 182.6 kB / 0.4983 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002056/0.1328, allocations: 0.6864 MB / 0.499 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002616/0.1354, allocations: 1.025 MB / 0.5 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.1368, allocations: 0.9316 MB / 0.5009 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007384/0.1376, allocations: 0.5134 MB / 0.5014 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006376/0.1382, allocations: 466.7 kB / 0.5018 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008108/0.139, allocations: 498.3 kB / 0.5023 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001919/0.1393, allocations: 80 kB / 0.5024 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.1416, allocations: 0.8659 MB / 0.5032 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002467/0.1419, allocations: 187.4 kB / 0.5034 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004893/0.1424, allocations: 418.1 kB / 0.5038 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2026/0.345, allocations: 1.756 MB / 0.5055 GB, free: 22.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.345, allocations: 0 / 0.5055 GB, free: 22.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.345, allocations: 4.031 kB / 0.5055 GB, free: 22.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.3451, allocations: 0 / 0.5055 GB, free: 22.02 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.001854/0.3469, allocations: 1.161 MB / 0.5066 GB, free: 21.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.347, allocations: 9.188 kB / 0.5066 GB, free: 21.35 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001265/0.3471, allocations: 113 kB / 0.5068 GB, free: 21.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006156/0.3477, allocations: 153.5 kB / 0.5069 GB, free: 21.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006506/0.3484, allocations: 486.8 kB / 0.5074 GB, free: 21.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.232e-05/0.3485, allocations: 80.06 kB / 0.5074 GB, free: 20.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.3486, allocations: 70.86 kB / 0.5075 GB, free: 20.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.3498, allocations: 0.7794 MB / 0.5083 GB, free: 20.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.3498, allocations: 1.25 kB / 0.5083 GB, free: 20.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.271e-05/0.3499, allocations: 26.38 kB / 0.5083 GB, free: 20.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.3499, allocations: 16.5 kB / 0.5083 GB, free: 20.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.3511, allocations: 0.8803 MB / 0.5092 GB, free: 20.89 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.00346/0.3546, allocations: 2.563 MB / 0.5117 GB, free: 19.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.3559, allocations: 1.005 MB / 0.5127 GB, free: 19.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004156/0.3564, allocations: 316.1 kB / 0.513 GB, free: 19.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003105/0.3595, allocations: 2.829 MB / 0.5157 GB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.3595, allocations: 40.94 kB / 0.5158 GB, free: 17.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.024e-06/0.3595, allocations: 0 / 0.5158 GB, free: 17.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=46): time 0.002286/0.3618, allocations: 1.232 MB / 0.517 GB, free: 17.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.3619, allocations: 56.7 kB / 0.517 GB, free: 17.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004529/0.3623, allocations: 425.2 kB / 0.5174 GB, free: 16.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.3623, allocations: 31.17 kB / 0.5175 GB, free: 16.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.3625, allocations: 363.4 kB / 0.5178 GB, free: 16.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.393e-05/0.3626, allocations: 166.4 kB / 0.518 GB, free: 16.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.3628, allocations: 131.1 kB / 0.5181 GB, free: 16.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.824e-05/0.3629, allocations: 360.6 kB / 0.5184 GB, free: 15.97 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.3631, allocations: 149.5 kB / 0.5186 GB, free: 15.92 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.3634, allocations: 393.6 kB / 0.5189 GB, free: 15.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006144/0.3641, allocations: 0.5777 MB / 0.5195 GB, free: 15.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.3641, allocations: 2.781 kB / 0.5195 GB, free: 15.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009412/0.365, allocations: 0.6142 MB / 0.5201 GB, free: 14.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.365, allocations: 7.844 kB / 0.5201 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.3651, allocations: 11.81 kB / 0.5201 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.3651, allocations: 12.91 kB / 0.5201 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000687/0.3658, allocations: 200.1 kB / 0.5203 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.3658, allocations: 16 kB / 0.5203 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.3661, allocations: 22.81 kB / 0.5204 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.167e-05/0.3662, allocations: 34.06 kB / 0.5204 GB, free: 14.91 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.0001946/0.3664, allocations: 209.3 kB / 0.5206 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.948e-05/0.3664, allocations: 55.39 kB / 0.5207 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008496/0.3673, allocations: 0.4984 MB / 0.5211 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.3673, allocations: 8.047 kB / 0.5211 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3673, allocations: 0 / 0.5211 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3673, allocations: 2.531 kB / 0.5212 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007421/0.3681, allocations: 0.6297 MB / 0.5218 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3681, allocations: 1.25 kB / 0.5218 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005612/0.3687, allocations: 144.4 kB / 0.5219 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.3687, allocations: 4.016 kB / 0.5219 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.3687, allocations: 20.92 kB / 0.5219 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3687, allocations: 2.188 kB / 0.5219 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3687, allocations: 2.094 kB / 0.5219 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009115/0.3697, allocations: 0.7243 MB / 0.5226 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.3698, allocations: 157.8 kB / 0.5228 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.76e-05/0.3699, allocations: 16.58 kB / 0.5228 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.3701, allocations: 11.31 kB / 0.5228 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.139e-05/0.3702, allocations: 35.39 kB / 0.5229 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.3702, allocations: 19.09 kB / 0.5229 GB, free: 13.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002613/0.3705, allocations: 279.3 kB / 0.5231 GB, free: 13.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3705, allocations: 4.094 kB / 0.5231 GB, free: 13.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009733/0.3715, allocations: 322.7 kB / 0.5234 GB, free: 13.34 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.001664/0.3731, allocations: 1.596 MB / 0.525 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006619/0.3738, allocations: 437.7 kB / 0.5254 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3738, allocations: 0 / 0.5254 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.3741, allocations: 206.5 kB / 0.5256 GB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006756/0.3748, allocations: 128 kB / 0.5257 GB, free: 12.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004847/0.3796, allocations: 4.784 MB / 0.5304 GB, free: 9.141 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.38, allocations: 0.8879 MB / 0.5313 GB, free: 8.438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003971/0.3804, allocations: 122.6 kB / 0.5314 GB, free: 8.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.3807, allocations: 254.5 kB / 0.5316 GB, free: 8.262 MB / 382.1 MB Notification: Performance of SimCode: time 4.9e-07/0.3807, allocations: 0 / 0.5316 GB, free: 8.262 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.4141, allocations: 15.44 MB / 0.5467 GB, free: 13.9 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.433/8.847, allocations: 13.91 kB / 0.5467 GB, free: 13.89 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)