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.0009658/0.0009658, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001055/0.001055, allocations: 194.3 kB / 16.13 MB, free: 6.656 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.294/1.294, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1991/0.1991, allocations: 15.31 MB / 305.3 MB, free: 15.38 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.00113, allocations: 55.91 kB / 369.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.09626, allocations: 53.6 MB / 423.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.009428/0.1057, allocations: 9.678 MB / 433 MB, free: 4.992 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.184/0.2898, allocations: 23.22 MB / 456.3 MB, free: 36.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001428/0.2913, allocations: 44.47 kB / 456.3 MB, free: 36.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.2925, allocations: 464.5 kB / 456.8 MB, free: 36.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004723/0.2973, allocations: 1.739 MB / 458.5 MB, free: 35.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006401/0.3037, allocations: 2.629 MB / 461.1 MB, free: 34.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.306, allocations: 2.432 MB / 463.6 MB, free: 33.72 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.3071, allocations: 1.228 MB / 464.8 MB, free: 33.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009549/0.3081, allocations: 1.172 MB / 466 MB, free: 32.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001124/0.3092, allocations: 1.324 MB / 467.3 MB, free: 32.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002431/0.3094, allocations: 139.9 kB / 467.4 MB, free: 32.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006425/0.3159, allocations: 2.536 MB / 469.9 MB, free: 31.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003814/0.3163, allocations: 461.9 kB / 470.4 MB, free: 31.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008769/0.3172, allocations: 1.019 MB / 471.4 MB, free: 30.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.3277, allocations: 4.711 MB / 476.1 MB, free: 28.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3277, allocations: 0 / 476.1 MB, free: 28.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3277, allocations: 0 / 476.1 MB, free: 28.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.619e-05/0.3278, allocations: 9.219 kB / 476.1 MB, free: 28.87 MB / 366.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.005328/0.3331, allocations: 2.662 MB / 478.8 MB, free: 27.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3332, allocations: 8.812 kB / 478.8 MB, free: 27.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002968/0.3335, allocations: 255.3 kB / 479.1 MB, free: 27.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001886/0.3354, allocations: 417.4 kB / 479.5 MB, free: 27.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001462/0.3368, allocations: 0.9294 MB / 480.4 MB, free: 26.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.337, allocations: 192.3 kB / 480.6 MB, free: 26.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002527/0.3372, allocations: 186.1 kB / 480.8 MB, free: 26.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003288/0.3405, allocations: 2.088 MB / 482.9 MB, free: 25.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.078e-05/0.3406, allocations: 1.375 kB / 482.9 MB, free: 25.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/0.3407, allocations: 71.12 kB / 482.9 MB, free: 25.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.256e-05/0.3408, allocations: 43.22 kB / 483 MB, free: 25.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004238/0.345, allocations: 2.58 MB / 485.5 MB, free: 24.64 MB / 366.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.009977/0.355, allocations: 6.351 MB / 491.9 MB, free: 21.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004742/0.3598, allocations: 2.536 MB / 494.4 MB, free: 19.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.3609, allocations: 0.8524 MB / 495.3 MB, free: 19.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009208/0.3701, allocations: 8.105 MB / 0.4916 GB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.3702, allocations: 49.19 kB / 0.4916 GB, free: 13.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.545e-06/0.3702, allocations: 4 kB / 0.4916 GB, free: 13.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.02661/0.3968, allocations: 6.17 MB / 0.4977 GB, free: 8.508 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.3969, allocations: 94.42 kB / 0.4978 GB, free: 8.398 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.3979, allocations: 0.9412 MB / 0.4987 GB, free: 7.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001476/0.3981, allocations: 49.7 kB / 0.4987 GB, free: 7.387 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003579/0.3984, allocations: 0.8404 MB / 0.4995 GB, free: 6.531 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003704/0.3988, allocations: 0.5161 MB / 0.5 GB, free: 6.008 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000496/0.3993, allocations: 367.3 kB / 0.5004 GB, free: 5.641 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.551e-05/0.3994, allocations: 301.1 kB / 0.5007 GB, free: 5.344 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008735/0.4003, allocations: 0.5311 MB / 0.5012 GB, free: 4.809 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/0.4014, allocations: 1.239 MB / 0.5024 GB, free: 3.227 MB / 366.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.002268/0.4036, allocations: 2.056 MB / 0.5044 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.74e-05/0.4037, allocations: 8 kB / 0.5044 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008292/0.412, allocations: 2.541 MB / 0.5069 GB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.412, allocations: 12 kB / 0.5069 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-05/0.4121, allocations: 24 kB / 0.5069 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00602/0.4181, allocations: 0.7018 MB / 0.5076 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/0.4201, allocations: 0.5266 MB / 0.5081 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/0.4318, allocations: 7.464 MB / 0.5154 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.4337, allocations: 115.7 kB / 0.5155 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000332/0.4341, allocations: 120 kB / 0.5157 GB, free: 4.73 MB / 382.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.0008334/0.4349, allocations: 385.3 kB / 0.516 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004405/0.4354, allocations: 138.3 kB / 0.5162 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009334/0.4447, allocations: 2.477 MB / 0.5186 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/0.4447, allocations: 16 kB / 0.5186 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.4448, allocations: 11.94 kB / 0.5186 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.4448, allocations: 4.125 kB / 0.5186 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005873/0.4507, allocations: 2.528 MB / 0.5211 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/0.4507, allocations: 4 kB / 0.5211 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001391/0.4521, allocations: 316 kB / 0.5214 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006911/0.459, allocations: 0.7493 MB / 0.5221 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000243/0.4593, allocations: 39.98 kB / 0.5222 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/0.471, allocations: 8.587 MB / 0.5305 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.471, allocations: 3.984 kB / 0.5305 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009798/0.4808, allocations: 2.822 MB / 0.5333 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006241/0.4815, allocations: 199.4 kB / 0.5335 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000448/0.482, allocations: 32 kB / 0.5335 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.4832, allocations: 51.83 kB / 0.5336 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003829/0.4836, allocations: 133.1 kB / 0.5337 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/0.4837, allocations: 47.98 kB / 0.5337 GB, free: 1.285 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009611/0.4847, allocations: 0.6342 MB / 0.5344 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4847, allocations: 0 / 0.5344 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003974/0.4887, allocations: 1.042 MB / 0.5354 GB, free: 15.6 MB / 414.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.01244/0.5011, allocations: 4.352 MB / 0.5396 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004845/0.506, allocations: 2.065 MB / 0.5416 GB, free: 9.059 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.5061, allocations: 3.938 kB / 0.5416 GB, free: 9.055 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002342/0.5084, allocations: 1.375 MB / 0.543 GB, free: 7.621 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/0.5107, allocations: 307 kB / 0.5433 GB, free: 7.332 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0309/0.5416, allocations: 15.17 MB / 0.5581 GB, free: 6.852 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009481/0.5426, allocations: 1.264 MB / 0.5593 GB, free: 5.562 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001517/0.5442, allocations: 332 kB / 0.5596 GB, free: 5.234 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009962/0.5452, allocations: 0.7179 MB / 0.5603 GB, free: 4.516 MB / 430.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5452, allocations: 0 / 0.5603 GB, free: 4.516 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2493/0.7945, allocations: 48.69 MB / 0.6079 GB, free: 132.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/0.7946, allocations: 210.4 kB / 0.6081 GB, free: 132.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.144/3.939, allocations: 0 / 0.6081 GB, free: 132.5 MB / 462.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)