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.005094/0.005094, allocations: 100.1 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.001122/0.001122, allocations: 189.3 kB / 16.67 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2298/0.2298, allocations: 15.32 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.89 kB / 424.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2997, allocations: 53.61 MB / 478.3 MB, free: 25.61 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.03143/0.3312, allocations: 23.83 MB / 0.4904 GB, free: 10.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006987/0.3382, allocations: 7.968 MB / 0.4981 GB, free: 2.918 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004655/0.3387, allocations: 11.94 kB / 0.4982 GB, free: 2.906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004826/0.3392, allocations: 186.5 kB / 0.4983 GB, free: 2.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001278/0.3405, allocations: 0.6982 MB / 0.499 GB, free: 2.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001814/0.3423, allocations: 1.033 MB / 0.5 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006907/0.343, allocations: 0.9277 MB / 0.5009 GB, free: 48 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005633/0.3436, allocations: 0.5135 MB / 0.5014 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000405/0.344, allocations: 458.8 kB / 0.5019 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005456/0.3445, allocations: 498.3 kB / 0.5023 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.3447, allocations: 76 kB / 0.5024 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.3465, allocations: 0.8659 MB / 0.5033 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001844/0.3467, allocations: 199.3 kB / 0.5035 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000373/0.3471, allocations: 426 kB / 0.5039 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002243/0.3493, allocations: 1.763 MB / 0.5056 GB, free: 11.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3493, allocations: 0 / 0.5056 GB, free: 11.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3493, allocations: 0 / 0.5056 GB, free: 11.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.3494, allocations: 0 / 0.5056 GB, free: 11.27 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.001821/0.3512, allocations: 1.162 MB / 0.5067 GB, free: 10.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.3512, allocations: 8.031 kB / 0.5067 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.3514, allocations: 110.7 kB / 0.5068 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006045/0.352, allocations: 151.7 kB / 0.507 GB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006692/0.3526, allocations: 487.3 kB / 0.5074 GB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.417e-05/0.3527, allocations: 84.2 kB / 0.5075 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.3529, allocations: 68.38 kB / 0.5076 GB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.354, allocations: 0.7815 MB / 0.5083 GB, free: 8.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.3541, allocations: 0 / 0.5083 GB, free: 8.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.145e-05/0.3541, allocations: 24 kB / 0.5084 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.3542, allocations: 16 kB / 0.5084 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.3555, allocations: 0.8796 MB / 0.5092 GB, free: 7.395 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.003662/0.3592, allocations: 2.571 MB / 0.5118 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.3606, allocations: 1.016 MB / 0.5127 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.3611, allocations: 306.4 kB / 0.513 GB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003467/0.3646, allocations: 2.828 MB / 0.5158 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.3646, allocations: 38.56 kB / 0.5158 GB, free: 108 kB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.673e-06/0.3646, allocations: 0 / 0.5158 GB, free: 108 kB / 382.1 MB Notification: Performance of matching and sorting (n=46): time 0.002282/0.3669, allocations: 1.236 MB / 0.517 GB, free: 14.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.367, allocations: 63.34 kB / 0.5171 GB, free: 14.74 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004205/0.3674, allocations: 417.8 kB / 0.5175 GB, free: 14.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.3674, allocations: 29.7 kB / 0.5175 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.3676, allocations: 371 kB / 0.5179 GB, free: 13.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.3678, allocations: 165.6 kB / 0.518 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.3679, allocations: 122.6 kB / 0.5182 GB, free: 13.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.3681, allocations: 370.8 kB / 0.5185 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.3683, allocations: 145.9 kB / 0.5187 GB, free: 13.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.3688, allocations: 385.5 kB / 0.519 GB, free: 12.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007291/0.3695, allocations: 0.5748 MB / 0.5196 GB, free: 11.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3695, allocations: 4 kB / 0.5196 GB, free: 11.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009311/0.3704, allocations: 0.6129 MB / 0.5202 GB, free: 11.33 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.3705, allocations: 13.34 kB / 0.5202 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3705, allocations: 11.94 kB / 0.5202 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.3705, allocations: 16.06 kB / 0.5202 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007331/0.3712, allocations: 203.7 kB / 0.5204 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.3713, allocations: 19.92 kB / 0.5204 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.3716, allocations: 20 kB / 0.5205 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.038e-05/0.3716, allocations: 32 kB / 0.5205 GB, free: 11.02 MB / 398.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.0002211/0.3718, allocations: 209.6 kB / 0.5207 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.608e-05/0.3719, allocations: 51.31 kB / 0.5207 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009036/0.3728, allocations: 0.4975 MB / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3729, allocations: 4 kB / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3729, allocations: 0 / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.3729, allocations: 7.984 kB / 0.5212 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007374/0.3736, allocations: 0.6315 MB / 0.5219 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.3736, allocations: 4 kB / 0.5219 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005636/0.3742, allocations: 135.9 kB / 0.522 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.3742, allocations: 7.938 kB / 0.522 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.3743, allocations: 19.98 kB / 0.522 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.217e-06/0.3743, allocations: 4 kB / 0.522 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3743, allocations: 64 / 0.522 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.3753, allocations: 0.7225 MB / 0.5227 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/0.3755, allocations: 156.5 kB / 0.5229 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.178e-05/0.3756, allocations: 15.94 kB / 0.5229 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3758, allocations: 16 kB / 0.5229 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.599e-05/0.3759, allocations: 40.47 kB / 0.5229 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.3759, allocations: 16 kB / 0.523 GB, free: 8.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002707/0.3762, allocations: 275.1 kB / 0.5232 GB, free: 8.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3762, allocations: 0 / 0.5232 GB, free: 8.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000843/0.377, allocations: 331.8 kB / 0.5235 GB, free: 7.766 MB / 398.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.001981/0.379, allocations: 1.595 MB / 0.5251 GB, free: 6.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007721/0.3798, allocations: 434.5 kB / 0.5255 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3798, allocations: 0 / 0.5255 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000308/0.3801, allocations: 206.4 kB / 0.5257 GB, free: 5.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000673/0.3808, allocations: 133.1 kB / 0.5258 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006108/0.3869, allocations: 4.773 MB / 0.5305 GB, free: 304 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004879/0.3874, allocations: 0.8861 MB / 0.5314 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003718/0.3878, allocations: 124.6 kB / 0.5315 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003336/0.3882, allocations: 251.3 kB / 0.5317 GB, free: 15.01 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3882, allocations: 0 / 0.5317 GB, free: 15.01 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03581/0.424, allocations: 15.25 MB / 0.5466 GB, free: 15.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.533/8.957, allocations: 15.91 kB / 0.5466 GB, free: 15.84 MB / 430.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)