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.006607/0.006607, allocations: 100.3 kB / 15.73 MB, free: 6 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.001194/0.001194, allocations: 195.1 kB / 16.67 MB, free: 5.922 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.27/1.27, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0739/0.0739, allocations: 15.31 MB / 305.8 MB, free: 15.38 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.89 kB / 424.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09189/0.09324, allocations: 53.6 MB / 478.3 MB, free: 6.273 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.SimpleReaction2): time 0.03321/0.1265, allocations: 24.61 MB / 0.4911 GB, free: 13.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01288/0.1394, allocations: 11.62 MB / 0.5025 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007062/0.1401, allocations: 15.88 kB / 0.5025 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000732/0.1409, allocations: 258.1 kB / 0.5027 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002596/0.1435, allocations: 0.9773 MB / 0.5037 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2254/0.3689, allocations: 1.496 MB / 0.5051 GB, free: 18.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002058/0.371, allocations: 1.247 MB / 0.5063 GB, free: 18.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009885/0.372, allocations: 0.7014 MB / 0.507 GB, free: 18.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008089/0.3728, allocations: 0.609 MB / 0.5076 GB, free: 18.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008965/0.3737, allocations: 0.6699 MB / 0.5083 GB, free: 18.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001591/0.3739, allocations: 106 kB / 0.5084 GB, free: 18.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003908/0.3778, allocations: 1.284 MB / 0.5096 GB, free: 18.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002502/0.3781, allocations: 260 kB / 0.5099 GB, free: 18.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005838/0.3787, allocations: 0.5471 MB / 0.5104 GB, free: 18.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004612/0.3833, allocations: 2.517 MB / 0.5129 GB, free: 17.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3833, allocations: 1.188 kB / 0.5129 GB, free: 17.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3833, allocations: 0 / 0.5129 GB, free: 17.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.3834, allocations: 0 / 0.5129 GB, free: 17.84 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002742/0.3861, allocations: 1.487 MB / 0.5143 GB, free: 17.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.3862, allocations: 9.516 kB / 0.5143 GB, free: 17.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001729/0.3863, allocations: 143.5 kB / 0.5145 GB, free: 17.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001004/0.3874, allocations: 210.3 kB / 0.5147 GB, free: 16.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000865/0.3882, allocations: 0.57 MB / 0.5152 GB, free: 16.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.754e-05/0.3883, allocations: 94.73 kB / 0.5153 GB, free: 16.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.3885, allocations: 99.12 kB / 0.5154 GB, free: 16.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.3901, allocations: 1.05 MB / 0.5164 GB, free: 16.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.3902, allocations: 1.375 kB / 0.5164 GB, free: 16.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.59e-05/0.3903, allocations: 37.53 kB / 0.5165 GB, free: 16.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/0.3903, allocations: 22 kB / 0.5165 GB, free: 16.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/0.3923, allocations: 1.275 MB / 0.5177 GB, free: 15.97 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.004947/0.3972, allocations: 3.463 MB / 0.5211 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002115/0.3994, allocations: 1.534 MB / 0.5226 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005658/0.3999, allocations: 433.4 kB / 0.523 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004425/0.4044, allocations: 4.032 MB / 0.527 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.4044, allocations: 44.31 kB / 0.527 GB, free: 9.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.084e-06/0.4044, allocations: 1.688 kB / 0.527 GB, free: 9.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.002851/0.4073, allocations: 1.663 MB / 0.5286 GB, free: 8.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/0.4073, allocations: 61.94 kB / 0.5287 GB, free: 8.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000563/0.4079, allocations: 0.5159 MB / 0.5292 GB, free: 8.613 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.4079, allocations: 35.67 kB / 0.5292 GB, free: 8.574 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.4081, allocations: 456.3 kB / 0.5297 GB, free: 8.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.4082, allocations: 228 kB / 0.5299 GB, free: 8.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/0.4084, allocations: 172.3 kB / 0.5301 GB, free: 7.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.482e-05/0.4085, allocations: 378 kB / 0.5304 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.4088, allocations: 210.2 kB / 0.5306 GB, free: 7.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004455/0.4093, allocations: 0.5318 MB / 0.5311 GB, free: 7.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008317/0.4101, allocations: 0.8189 MB / 0.5319 GB, free: 6.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.4102, allocations: 2.375 kB / 0.5319 GB, free: 6.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001122/0.4113, allocations: 0.8484 MB / 0.5328 GB, free: 6.176 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.4113, allocations: 12.47 kB / 0.5328 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.4113, allocations: 10.44 kB / 0.5328 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.4114, allocations: 19.72 kB / 0.5328 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008605/0.4122, allocations: 266.3 kB / 0.5331 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.711e-05/0.4123, allocations: 25.34 kB / 0.5331 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004092/0.4127, allocations: 30.66 kB / 0.5331 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-05/0.4127, allocations: 52.73 kB / 0.5332 GB, free: 6.141 MB / 382.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.0002429/0.413, allocations: 230 kB / 0.5334 GB, free: 5.965 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.13e-05/0.4131, allocations: 71.34 kB / 0.5335 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.4141, allocations: 0.6866 MB / 0.5341 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4142, allocations: 9.094 kB / 0.5341 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4142, allocations: 0 / 0.5341 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.4142, allocations: 5.859 kB / 0.5341 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008268/0.415, allocations: 0.7734 MB / 0.5349 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.415, allocations: 0 / 0.5349 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000654/0.4157, allocations: 173.7 kB / 0.5351 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.4157, allocations: 5.75 kB / 0.5351 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.705e-05/0.4157, allocations: 29.16 kB / 0.5351 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.4157, allocations: 6.875 kB / 0.5351 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/0.4158, allocations: 6.969 kB / 0.5351 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.4168, allocations: 0.9424 MB / 0.536 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.417, allocations: 191.4 kB / 0.5362 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.193e-05/0.4171, allocations: 14.75 kB / 0.5362 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.4174, allocations: 20.94 kB / 0.5362 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.244e-05/0.4175, allocations: 43.88 kB / 0.5363 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.85e-05/0.4175, allocations: 28.27 kB / 0.5363 GB, free: 4.492 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002987/0.4178, allocations: 338.8 kB / 0.5366 GB, free: 4.293 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4178, allocations: 0 / 0.5366 GB, free: 4.293 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001393/0.4192, allocations: 482.6 kB / 0.5371 GB, free: 4.168 MB / 382.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.002045/0.4213, allocations: 1.985 MB / 0.539 GB, free: 2.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007744/0.4221, allocations: 0.598 MB / 0.5396 GB, free: 1.836 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4221, allocations: 3.656 kB / 0.5396 GB, free: 1.836 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003063/0.4224, allocations: 287.7 kB / 0.5399 GB, free: 1.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007733/0.4232, allocations: 161.9 kB / 0.5401 GB, free: 1.434 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007242/0.4304, allocations: 6.09 MB / 0.546 GB, free: 11.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.431, allocations: 0.9566 MB / 0.5469 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005178/0.4315, allocations: 170 kB / 0.5471 GB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004457/0.432, allocations: 347.3 kB / 0.5474 GB, free: 9.645 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.432, allocations: 2.688 kB / 0.5474 GB, free: 9.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0453/0.4773, allocations: 20.92 MB / 0.5679 GB, free: 5.621 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.866/9.344, allocations: 10.44 kB / 0.5679 GB, free: 5.613 MB / 414.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)