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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.00087/0.0008701, allocations: 89.73 kB / 15.06 MB, free: 1.098 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.0008377/0.0008378, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1955/0.1955, allocations: 15.26 MB / 306.3 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002923/0.0002923, allocations: 12 kB / 371.6 MB, free: 3.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2374, allocations: 54.62 MB / 426.2 MB, free: 40 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.006337/0.2437, allocations: 8.604 MB / 434.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0163/0.2601, allocations: 21.21 MB / 456 MB, free: 21.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.2613, allocations: 35.38 kB / 456 MB, free: 21.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009491/0.2622, allocations: 472.6 kB / 456.5 MB, free: 21.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003425/0.2657, allocations: 1.719 MB / 458.2 MB, free: 20.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004935/0.2706, allocations: 2.437 MB / 460.6 MB, free: 18.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002007/0.2727, allocations: 2.3 MB / 462.9 MB, free: 17.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000956/0.2736, allocations: 1.088 MB / 464 MB, free: 17.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008816/0.2745, allocations: 0.9417 MB / 465 MB, free: 16.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001106/0.2756, allocations: 1.211 MB / 466.2 MB, free: 16.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001864/0.2758, allocations: 112.1 kB / 466.3 MB, free: 16.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006592/0.2824, allocations: 2.341 MB / 468.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004373/0.2829, allocations: 404.1 kB / 469 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005962/0.2835, allocations: 372 kB / 469.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005556/0.2891, allocations: 3.715 MB / 473.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2891, allocations: 4 kB / 473.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.2891, allocations: 1.938 kB / 473.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.703e-05/0.2891, allocations: 0 / 473.1 MB, free: 14.1 MB / 350.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.004434/0.2936, allocations: 2.209 MB / 475.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.2936, allocations: 12.97 kB / 475.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003421/0.294, allocations: 251 kB / 475.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/0.2957, allocations: 421.1 kB / 476 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.2969, allocations: 0.8639 MB / 476.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.2971, allocations: 197.2 kB / 477 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002432/0.2973, allocations: 188.1 kB / 477.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/0.3004, allocations: 2.068 MB / 479.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.3005, allocations: 1.156 kB / 479.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.3006, allocations: 74.59 kB / 479.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-05/0.3007, allocations: 47.75 kB / 479.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003769/0.3045, allocations: 2.569 MB / 482 MB, free: 10.12 MB / 350.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.008693/0.3132, allocations: 6.296 MB / 488.3 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004103/0.3173, allocations: 2.525 MB / 490.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000975/0.3183, allocations: 0.8434 MB / 491.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0082/0.3265, allocations: 7.916 MB / 499.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.3265, allocations: 47.62 kB / 499.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.655e-06/0.3266, allocations: 0 / 499.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.02522/0.3518, allocations: 6.251 MB / 0.494 GB, free: 4.809 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.3519, allocations: 94.41 kB / 0.4941 GB, free: 4.699 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.3529, allocations: 0.9256 MB / 0.495 GB, free: 3.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.353, allocations: 49.7 kB / 0.495 GB, free: 3.703 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005136/0.3536, allocations: 0.8443 MB / 0.4959 GB, free: 2.844 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003955/0.354, allocations: 0.5121 MB / 0.4964 GB, free: 2.324 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.788e-05/0.3541, allocations: 44 kB / 0.4964 GB, free: 2.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3542, allocations: 381.9 kB / 0.4968 GB, free: 1.902 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008644/0.3551, allocations: 0.5233 MB / 0.4973 GB, free: 1.375 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.3563, allocations: 1.239 MB / 0.4985 GB, free: 15.8 MB / 382.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.001279/0.3576, allocations: 0.8006 MB / 0.4993 GB, free: 14.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.3577, allocations: 4 kB / 0.4993 GB, free: 14.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007872/0.3655, allocations: 2.557 MB / 0.5018 GB, free: 12.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.3656, allocations: 16 kB / 0.5018 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.711e-05/0.3656, allocations: 24 kB / 0.5018 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00542/0.371, allocations: 0.7408 MB / 0.5025 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001861/0.3729, allocations: 0.5226 MB / 0.5031 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/0.3838, allocations: 7.52 MB / 0.5104 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.3854, allocations: 123.8 kB / 0.5105 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/0.3856, allocations: 112 kB / 0.5106 GB, free: 2.785 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 sytem: 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 6,(1,100.0%) 3} * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006763/0.3863, allocations: 377.1 kB / 0.511 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002443/0.3865, allocations: 142.3 kB / 0.5111 GB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008832/0.3954, allocations: 2.521 MB / 0.5136 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.636e-05/0.3954, allocations: 20 kB / 0.5136 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.3954, allocations: 3.938 kB / 0.5136 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.3955, allocations: 16.02 kB / 0.5136 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005217/0.4007, allocations: 2.529 MB / 0.5161 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.4007, allocations: 3.984 kB / 0.5161 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001324/0.402, allocations: 319.9 kB / 0.5164 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006311/0.4083, allocations: 0.7806 MB / 0.5172 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001581/0.4085, allocations: 39.98 kB / 0.5172 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01105/0.4196, allocations: 8.638 MB / 0.5256 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.4196, allocations: 4 kB / 0.5256 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00909/0.4287, allocations: 2.841 MB / 0.5284 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004139/0.4291, allocations: 227.2 kB / 0.5286 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.4293, allocations: 32 kB / 0.5287 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008049/0.4302, allocations: 47.89 kB / 0.5287 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.4304, allocations: 129 kB / 0.5288 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.206e-05/0.4305, allocations: 51.98 kB / 0.5289 GB, free: 15.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007715/0.4313, allocations: 0.6186 MB / 0.5295 GB, free: 14.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4313, allocations: 3.938 kB / 0.5295 GB, free: 14.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003144/0.4344, allocations: 1.031 MB / 0.5305 GB, free: 13.49 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(2,100.0%) 7} * Non-linear torn systems: 3 {1 3,1 1,2 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0111/0.4455, allocations: 4.337 MB / 0.5347 GB, free: 9.082 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003385/0.449, allocations: 2.072 MB / 0.5368 GB, free: 6.965 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.449, allocations: 4 kB / 0.5368 GB, free: 6.961 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001939/0.4509, allocations: 1.36 MB / 0.5381 GB, free: 5.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.4526, allocations: 309 kB / 0.5384 GB, free: 5.238 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/0.4709, allocations: 10 MB / 0.5481 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007987/0.4718, allocations: 1.26 MB / 0.5494 GB, free: 9.25 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001392/0.4732, allocations: 339.8 kB / 0.5497 GB, free: 8.914 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008857/0.4741, allocations: 0.7218 MB / 0.5504 GB, free: 8.191 MB / 430.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4741, allocations: 0 / 0.5504 GB, free: 8.191 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.223/0.6971, allocations: 47.82 MB / 0.5971 GB, free: 136.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001345/0.6972, allocations: 188 kB / 0.5973 GB, free: 136.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.128/3.825, allocations: 0 / 0.5973 GB, free: 136.1 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/linux/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) Environment - environmentSimulation: