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.002139/0.002139, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01946/0.01946, allocations: 194.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.023/3.023, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.5571/0.5571, allocations: 15.31 MB / 305.7 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002534/0.002534, allocations: 59.91 kB / 370.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.231, allocations: 53.61 MB / 424 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.02057/0.2516, allocations: 8.554 MB / 432.6 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.5545/0.8063, allocations: 23.24 MB / 455.8 MB, free: 36.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003107/0.8094, allocations: 24.44 kB / 455.9 MB, free: 36.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002783/0.8123, allocations: 0.5114 MB / 456.4 MB, free: 36.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01196/0.8243, allocations: 2.012 MB / 458.4 MB, free: 35.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01841/0.8428, allocations: 2.994 MB / 461.4 MB, free: 34.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006797/0.8497, allocations: 2.489 MB / 463.9 MB, free: 33.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004199/0.854, allocations: 1.431 MB / 465.3 MB, free: 32.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003788/0.8578, allocations: 1.22 MB / 466.5 MB, free: 32.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004843/0.8627, allocations: 1.354 MB / 467.9 MB, free: 31.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001976/0.8647, allocations: 217 kB / 468.1 MB, free: 31.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01999/0.8848, allocations: 2.594 MB / 470.7 MB, free: 31.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002409/0.8873, allocations: 0.5109 MB / 471.2 MB, free: 30.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004135/0.8915, allocations: 1.087 MB / 472.3 MB, free: 30.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02863/0.9202, allocations: 4.996 MB / 477.3 MB, free: 27.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.665e-05/0.9203, allocations: 0 / 477.3 MB, free: 27.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.26e-06/0.9203, allocations: 4 kB / 477.3 MB, free: 27.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002338/0.9206, allocations: 1.219 kB / 477.3 MB, free: 27.93 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.01533/0.9359, allocations: 2.648 MB / 479.9 MB, free: 26.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.882e-05/0.9361, allocations: 8.906 kB / 479.9 MB, free: 26.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001846/0.9379, allocations: 255.5 kB / 480.2 MB, free: 26.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004711/0.9427, allocations: 421.6 kB / 480.6 MB, free: 26.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004484/0.9472, allocations: 0.924 MB / 481.5 MB, free: 25.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004297/0.9477, allocations: 195 kB / 481.7 MB, free: 25.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/0.949, allocations: 188.5 kB / 481.9 MB, free: 25.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0124/0.9614, allocations: 2.082 MB / 484 MB, free: 24.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001771/0.9617, allocations: 3.938 kB / 484 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001174/0.9629, allocations: 71.12 kB / 484 MB, free: 24.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001661/0.9631, allocations: 43.03 kB / 484.1 MB, free: 24.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01198/0.9751, allocations: 2.581 MB / 486.7 MB, free: 23.72 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.02826/1.003, allocations: 6.386 MB / 493.1 MB, free: 20.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/1.015, allocations: 2.531 MB / 495.6 MB, free: 19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004172/1.02, allocations: 0.8521 MB / 496.4 MB, free: 18.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0261/1.046, allocations: 8.083 MB / 0.4927 GB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.778e-05/1.046, allocations: 45.62 kB / 0.4927 GB, free: 12.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 9.087e-06/1.046, allocations: 5.125 kB / 0.4927 GB, free: 12.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.05108/1.097, allocations: 6.178 MB / 0.4988 GB, free: 7.613 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/1.097, allocations: 102.3 kB / 0.4989 GB, free: 7.496 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002603/1.1, allocations: 0.9373 MB / 0.4998 GB, free: 6.543 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006189/1.101, allocations: 53.69 kB / 0.4998 GB, free: 6.484 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008114/1.101, allocations: 0.8327 MB / 0.5007 GB, free: 5.637 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001212/1.103, allocations: 0.5122 MB / 0.5012 GB, free: 5.117 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/1.104, allocations: 375.3 kB / 0.5015 GB, free: 4.742 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/1.104, allocations: 301.1 kB / 0.5018 GB, free: 4.445 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001953/1.106, allocations: 0.5311 MB / 0.5023 GB, free: 3.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/1.109, allocations: 1.243 MB / 0.5035 GB, free: 2.328 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.005088/1.114, allocations: 2.044 MB / 0.5055 GB, free: 15.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-05/1.114, allocations: 12 kB / 0.5055 GB, free: 15.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.01677/1.131, allocations: 2.537 MB / 0.508 GB, free: 13.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/1.131, allocations: 12 kB / 0.508 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.932e-05/1.131, allocations: 24 kB / 0.5081 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009067/1.14, allocations: 0.698 MB / 0.5087 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004381/1.145, allocations: 0.5266 MB / 0.5092 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02408/1.169, allocations: 8.269 MB / 0.5173 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003592/1.173, allocations: 79.91 kB / 0.5174 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007805/1.173, allocations: 112 kB / 0.5175 GB, free: 3.078 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.001985/1.175, allocations: 381.5 kB / 0.5179 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/1.177, allocations: 134.3 kB / 0.518 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01755/1.194, allocations: 2.481 MB / 0.5204 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.48e-05/1.194, allocations: 12 kB / 0.5204 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.595e-05/1.195, allocations: 11.92 kB / 0.5204 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001256/1.195, allocations: 11.98 kB / 0.5205 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/1.207, allocations: 2.524 MB / 0.5229 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.55e-05/1.207, allocations: 4 kB / 0.5229 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002985/1.21, allocations: 312 kB / 0.5232 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01106/1.221, allocations: 0.7455 MB / 0.5239 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005685/1.222, allocations: 47.92 kB / 0.524 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02413/1.246, allocations: 9.488 MB / 0.5333 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.746e-05/1.246, allocations: 7.969 kB / 0.5333 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01784/1.264, allocations: 2.822 MB / 0.536 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/1.266, allocations: 207.2 kB / 0.5362 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/1.267, allocations: 28 kB / 0.5362 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002662/1.27, allocations: 36 kB / 0.5363 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001001/1.271, allocations: 125 kB / 0.5364 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004591/1.271, allocations: 51.97 kB / 0.5364 GB, free: 14.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002671/1.274, allocations: 0.6342 MB / 0.5371 GB, free: 14.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.11e-07/1.274, allocations: 3.938 kB / 0.5371 GB, free: 14.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.01008/1.284, allocations: 1.054 MB / 0.5381 GB, free: 13.02 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.0254/1.31, allocations: 4.346 MB / 0.5423 GB, free: 8.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01014/1.32, allocations: 2.15 MB / 0.5444 GB, free: 6.395 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-05/1.32, allocations: 4.25 kB / 0.5445 GB, free: 6.391 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004884/1.325, allocations: 1.375 MB / 0.5458 GB, free: 4.957 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005227/1.33, allocations: 320.4 kB / 0.5461 GB, free: 4.656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0651/1.396, allocations: 14.46 MB / 0.5602 GB, free: 4.887 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002715/1.398, allocations: 1.267 MB / 0.5615 GB, free: 3.594 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003894/1.402, allocations: 335.8 kB / 0.5618 GB, free: 3.262 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002523/1.405, allocations: 0.7179 MB / 0.5625 GB, free: 2.543 MB / 430.1 MB Notification: Performance of SimCode: time 3.367e-06/1.405, allocations: 3.938 kB / 0.5625 GB, free: 2.539 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7109/2.116, allocations: 50.15 MB / 0.6115 GB, free: 135.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.4/29.52, allocations: 4.5 kB / 0.6115 GB, free: 135.6 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.ExothermicReaction_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-07 Chemical_Chemical_Examples_ExothermicReaction.fmu > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)