Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ExothermicReaction.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.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",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.006819/0.006819, allocations: 102.2 kB / 15.73 MB, free: 6.031 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.001267/0.001267, allocations: 194.4 kB / 16.67 MB, free: 5.969 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.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1949/0.1949, allocations: 15.32 MB / 305.9 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 63.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2515, allocations: 53.6 MB / 478.3 MB, free: 25.6 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.007369/0.2589, allocations: 8.552 MB / 486.9 MB, free: 19.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01957/0.2785, allocations: 23.25 MB / 0.4982 GB, free: 416 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001594/0.2801, allocations: 25.62 kB / 0.4982 GB, free: 404 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.2815, allocations: 0.5125 MB / 0.4987 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005948/0.2875, allocations: 2.009 MB / 0.5006 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008274/0.2958, allocations: 3.005 MB / 0.5036 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004077/0.2999, allocations: 2.498 MB / 0.506 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001805/0.3018, allocations: 1.43 MB / 0.5074 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001584/0.3034, allocations: 1.227 MB / 0.5086 GB, free: 7.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.3049, allocations: 1.359 MB / 0.5099 GB, free: 6.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002636/0.3052, allocations: 216 kB / 0.5101 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008085/0.3133, allocations: 2.59 MB / 0.5127 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006142/0.3139, allocations: 0.5102 MB / 0.5132 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001299/0.3152, allocations: 1.093 MB / 0.5142 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.3263, allocations: 5.033 MB / 0.5192 GB, free: 13.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3264, allocations: 4 kB / 0.5192 GB, free: 13.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3264, allocations: 0 / 0.5192 GB, free: 13.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.693e-05/0.3264, allocations: 0 / 0.5192 GB, free: 13.11 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 455 * Number of variables: 455 Notification: Performance of Generate backend data structure: time 0.004624/0.331, allocations: 2.658 MB / 0.5218 GB, free: 10.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3311, allocations: 12.03 kB / 0.5218 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002593/0.3314, allocations: 257.7 kB / 0.522 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001723/0.3331, allocations: 421.8 kB / 0.5224 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.3345, allocations: 0.9476 MB / 0.5233 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/0.3347, allocations: 191.5 kB / 0.5235 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002581/0.335, allocations: 192.3 kB / 0.5237 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003008/0.338, allocations: 2.086 MB / 0.5257 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.338, allocations: 0 / 0.5257 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001645/0.3382, allocations: 72 kB / 0.5258 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.986e-05/0.3382, allocations: 44 kB / 0.5259 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003523/0.3418, allocations: 2.581 MB / 0.5284 GB, free: 3.516 MB / 398.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.009179/0.3509, allocations: 6.334 MB / 0.5346 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004729/0.3557, allocations: 2.531 MB / 0.537 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.3569, allocations: 0.8551 MB / 0.5379 GB, free: 9.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009765/0.3667, allocations: 8.061 MB / 0.5457 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.338e-05/0.3667, allocations: 47.69 kB / 0.5458 GB, free: 468 kB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 2.976e-06/0.3668, allocations: 0 / 0.5458 GB, free: 468 kB / 414.1 MB Notification: Performance of matching and sorting (n=150): time 0.02886/0.3956, allocations: 6.199 MB / 0.5518 GB, free: 10.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.3957, allocations: 94.42 kB / 0.5519 GB, free: 9.977 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.3969, allocations: 0.9412 MB / 0.5528 GB, free: 9.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.3971, allocations: 53.7 kB / 0.5529 GB, free: 8.961 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005096/0.3976, allocations: 0.8288 MB / 0.5537 GB, free: 8.117 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004897/0.3981, allocations: 0.5122 MB / 0.5542 GB, free: 7.598 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005494/0.3987, allocations: 371.2 kB / 0.5546 GB, free: 7.227 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.131e-05/0.3988, allocations: 301.1 kB / 0.5549 GB, free: 6.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009462/0.3997, allocations: 0.5272 MB / 0.5554 GB, free: 6.398 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.4011, allocations: 1.247 MB / 0.5566 GB, free: 4.812 MB / 430.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start (fixedTemperature.T = solution_at_constant_temperature.temperature_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.002644/0.4038, allocations: 2.048 MB / 0.5586 GB, free: 2.418 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-05/0.4038, allocations: 4 kB / 0.5586 GB, free: 2.414 MB / 430.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008673/0.4125, allocations: 2.537 MB / 0.5611 GB, free: 15.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/0.4126, allocations: 19.98 kB / 0.5611 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.631e-05/0.4126, allocations: 24 kB / 0.5611 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006112/0.4188, allocations: 0.698 MB / 0.5618 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002119/0.4209, allocations: 0.5266 MB / 0.5623 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01197/0.4329, allocations: 8.262 MB / 0.5704 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/0.4345, allocations: 76.03 kB / 0.5704 GB, free: 5.684 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002998/0.4348, allocations: 112 kB / 0.5706 GB, free: 5.574 MB / 446.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * 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 (241): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,6,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008355/0.4357, allocations: 377.4 kB / 0.5709 GB, free: 5.195 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.4361, allocations: 138.3 kB / 0.571 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00944/0.4455, allocations: 2.487 MB / 0.5735 GB, free: 2.508 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/0.4456, allocations: 16 kB / 0.5735 GB, free: 2.492 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.4456, allocations: 3.938 kB / 0.5735 GB, free: 2.488 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/0.4456, allocations: 15.91 kB / 0.5735 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005548/0.4512, allocations: 2.519 MB / 0.576 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.4512, allocations: 0 / 0.576 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/0.4527, allocations: 315.9 kB / 0.5763 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0071/0.4598, allocations: 0.7454 MB / 0.577 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002004/0.46, allocations: 43.98 kB / 0.577 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/0.4723, allocations: 9.488 MB / 0.5863 GB, free: 4.555 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/0.4723, allocations: 11.88 kB / 0.5863 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009744/0.4821, allocations: 2.815 MB / 0.5891 GB, free: 1.664 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004062/0.4825, allocations: 203.3 kB / 0.5893 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003562/0.4829, allocations: 31.94 kB / 0.5893 GB, free: 1.414 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009856/0.4839, allocations: 36.17 kB / 0.5893 GB, free: 1.379 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003337/0.4843, allocations: 128.9 kB / 0.5894 GB, free: 1.254 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.4844, allocations: 55.92 kB / 0.5895 GB, free: 1.199 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009315/0.4853, allocations: 0.6303 MB / 0.5901 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4853, allocations: 0 / 0.5901 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003237/0.4886, allocations: 1.05 MB / 0.5911 GB, free: 15.51 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (A1.logn,B1.logn,H2O.logn,A.logn,B.logn,H2O1.amountOfBonds,H2O1.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 (137): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,1), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01203/0.5006, allocations: 4.347 MB / 0.5954 GB, free: 11.09 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00377/0.5044, allocations: 2.088 MB / 0.5974 GB, free: 8.953 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5045, allocations: 0 / 0.5974 GB, free: 8.953 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002081/0.5066, allocations: 1.375 MB / 0.5988 GB, free: 7.512 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.5084, allocations: 324.1 kB / 0.5991 GB, free: 7.203 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2322/0.7407, allocations: 13.54 MB / 0.6123 GB, free: 116 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008854/0.7416, allocations: 1.262 MB / 0.6135 GB, free: 115.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00123/0.7429, allocations: 325.8 kB / 0.6138 GB, free: 115.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.7439, allocations: 0.7188 MB / 0.6145 GB, free: 114.8 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7439, allocations: 2.719 kB / 0.6145 GB, free: 114.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09016/0.834, allocations: 51.56 MB / 0.6649 GB, free: 79.08 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.18/16.01, allocations: 8.047 kB / 0.6649 GB, free: 79.07 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.ExothermicReaction.pipe ; mkfifo Chemical_Chemical.Examples.ExothermicReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ExothermicReaction.pipe >> ../files/Chemical_Chemical.Examples.ExothermicReaction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ExothermicReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ExothermicReaction.fmu > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)