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.01064/0.01064, allocations: 98.55 kB / 15.73 MB, free: 6.047 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.001648/0.001648, allocations: 194.5 kB / 16.68 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1624/0.1624, allocations: 15.32 MB / 305.9 MB, free: 15.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 67.84 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2044, allocations: 53.6 MB / 478.3 MB, free: 25.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.006415/0.2109, allocations: 8.564 MB / 486.9 MB, free: 19.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01699/0.2279, allocations: 23.24 MB / 0.4982 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001211/0.2291, allocations: 23 kB / 0.4982 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.2302, allocations: 0.517 MB / 0.4987 GB, free: 204 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005004/0.2352, allocations: 2.002 MB / 0.5006 GB, free: 14.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007298/0.2425, allocations: 3.005 MB / 0.5036 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00319/0.2458, allocations: 2.505 MB / 0.506 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.2475, allocations: 1.419 MB / 0.5074 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001728/0.2493, allocations: 1.223 MB / 0.5086 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.2514, allocations: 1.359 MB / 0.5099 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004977/0.2519, allocations: 216 kB / 0.5101 GB, free: 6.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007577/0.2595, allocations: 2.594 MB / 0.5127 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006115/0.2601, allocations: 0.5102 MB / 0.5132 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001613/0.2618, allocations: 1.089 MB / 0.5142 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01069/0.2725, allocations: 5.054 MB / 0.5192 GB, free: 13.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2725, allocations: 0 / 0.5192 GB, free: 13.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2725, allocations: 0 / 0.5192 GB, free: 13.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.814e-05/0.2726, allocations: 0 / 0.5192 GB, free: 13.09 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.005367/0.278, allocations: 2.726 MB / 0.5218 GB, free: 10.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.278, allocations: 8.031 kB / 0.5218 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003667/0.2784, allocations: 257.7 kB / 0.5221 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/0.2801, allocations: 422.9 kB / 0.5225 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001669/0.2818, allocations: 0.9677 MB / 0.5234 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.282, allocations: 191.5 kB / 0.5236 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003089/0.2823, allocations: 184.3 kB / 0.5238 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003542/0.2859, allocations: 2.089 MB / 0.5258 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.33e-05/0.2859, allocations: 0 / 0.5258 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000174/0.2861, allocations: 68 kB / 0.5259 GB, free: 6.043 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.836e-05/0.2862, allocations: 51.98 kB / 0.5259 GB, free: 5.992 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004042/0.2902, allocations: 2.584 MB / 0.5285 GB, free: 3.406 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.01004/0.3003, allocations: 6.351 MB / 0.5347 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004811/0.3051, allocations: 2.531 MB / 0.5371 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.3064, allocations: 0.8512 MB / 0.538 GB, free: 9.379 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01044/0.3168, allocations: 8.081 MB / 0.5459 GB, free: 380 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.3169, allocations: 43.69 kB / 0.5459 GB, free: 328 kB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 2.444e-06/0.3169, allocations: 0 / 0.5459 GB, free: 328 kB / 414.1 MB Notification: Performance of matching and sorting (n=150): time 0.02479/0.3417, allocations: 6.235 MB / 0.552 GB, free: 9.914 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.3418, allocations: 94.42 kB / 0.5521 GB, free: 9.805 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001153/0.3429, allocations: 0.9452 MB / 0.553 GB, free: 8.844 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.316e-05/0.343, allocations: 49.7 kB / 0.5531 GB, free: 8.789 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006022/0.3436, allocations: 0.8628 MB / 0.5539 GB, free: 7.914 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004237/0.344, allocations: 0.5384 MB / 0.5544 GB, free: 7.371 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005001/0.3445, allocations: 371.5 kB / 0.5548 GB, free: 7 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3447, allocations: 305.1 kB / 0.5551 GB, free: 6.699 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009275/0.3456, allocations: 0.5272 MB / 0.5556 GB, free: 6.168 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.3471, allocations: 1.247 MB / 0.5568 GB, free: 4.582 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.002715/0.3498, allocations: 2.036 MB / 0.5588 GB, free: 2.199 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.3498, allocations: 12 kB / 0.5588 GB, free: 2.188 MB / 430.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.00758/0.3574, allocations: 2.55 MB / 0.5613 GB, free: 15.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.3575, allocations: 16 kB / 0.5613 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-05/0.3575, allocations: 28 kB / 0.5613 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005159/0.3627, allocations: 0.6941 MB / 0.562 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001819/0.3645, allocations: 0.5266 MB / 0.5625 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01146/0.376, allocations: 8.261 MB / 0.5706 GB, free: 5.527 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.3771, allocations: 68 kB / 0.5707 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/0.3773, allocations: 116 kB / 0.5708 GB, free: 5.348 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.0005996/0.3779, allocations: 385 kB / 0.5711 GB, free: 4.961 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002778/0.3782, allocations: 147 kB / 0.5713 GB, free: 4.816 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008263/0.3864, allocations: 2.48 MB / 0.5737 GB, free: 2.273 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.3865, allocations: 16 kB / 0.5737 GB, free: 2.258 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.3865, allocations: 3.938 kB / 0.5737 GB, free: 2.254 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.3865, allocations: 7.969 kB / 0.5737 GB, free: 2.246 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004858/0.3914, allocations: 2.523 MB / 0.5762 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.3914, allocations: 4 kB / 0.5762 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001376/0.3928, allocations: 315.9 kB / 0.5765 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006125/0.3989, allocations: 0.7532 MB / 0.5772 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.399, allocations: 43.98 kB / 0.5773 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01189/0.4109, allocations: 9.488 MB / 0.5865 GB, free: 4.312 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.4109, allocations: 7.875 kB / 0.5865 GB, free: 4.305 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008389/0.4193, allocations: 2.823 MB / 0.5893 GB, free: 1.418 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000282/0.4196, allocations: 212.1 kB / 0.5895 GB, free: 1.191 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/0.4198, allocations: 32 kB / 0.5895 GB, free: 1.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007252/0.4206, allocations: 32 kB / 0.5896 GB, free: 1.129 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.4208, allocations: 128.9 kB / 0.5897 GB, free: 1.004 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.557e-05/0.4209, allocations: 51.98 kB / 0.5897 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007632/0.4217, allocations: 0.6303 MB / 0.5904 GB, free: 324 kB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4217, allocations: 0 / 0.5904 GB, free: 324 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.002683/0.4244, allocations: 1.072 MB / 0.5914 GB, free: 15.24 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.0106/0.435, allocations: 4.377 MB / 0.5957 GB, free: 10.79 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003438/0.4384, allocations: 2.08 MB / 0.5977 GB, free: 8.66 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.4385, allocations: 4 kB / 0.5977 GB, free: 8.656 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001988/0.4404, allocations: 1.375 MB / 0.5991 GB, free: 7.215 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.4418, allocations: 326.6 kB / 0.5994 GB, free: 6.902 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1808/0.6226, allocations: 13.61 MB / 0.6127 GB, free: 116.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000766/0.6234, allocations: 1.269 MB / 0.6139 GB, free: 115.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001064/0.6245, allocations: 334.5 kB / 0.6142 GB, free: 115.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007751/0.6253, allocations: 0.7114 MB / 0.6149 GB, free: 115 MB / 478.1 MB Notification: Performance of SimCode: time 5.21e-07/0.6253, allocations: 1.656 kB / 0.6149 GB, free: 115 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.216/3.841, allocations: 50.74 MB / 0.6645 GB, free: 79.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.48/20.32, allocations: 2.5 kB / 0.6645 GB, free: 79.57 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)