Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfAlcohol.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.HeatingOfAlcohol,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfAlcohol",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfAlcohol,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfAlcohol",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.001647/0.001647, 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.002395/0.002395, allocations: 191.8 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 2.758/2.758, 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.6134/0.6134, allocations: 15.33 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002672/0.002672, allocations: 59.91 kB / 370.4 MB, free: 3.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.241, allocations: 53.61 MB / 424 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfAlcohol): time 0.01112/0.2522, allocations: 4.241 MB / 428.3 MB, free: 9.961 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01842/0.2707, allocations: 8.67 MB / 437 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001326/0.2722, allocations: 4 kB / 437 MB, free: 1.254 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.2734, allocations: 198.8 kB / 437.1 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004915/0.2784, allocations: 0.7836 MB / 437.9 MB, free: 276 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.5198/0.7983, allocations: 0.9956 MB / 438.9 MB, free: 42.4 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002503/0.8009, allocations: 0.8771 MB / 439.8 MB, free: 42.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001319/0.8022, allocations: 0.4991 MB / 440.3 MB, free: 42.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.8034, allocations: 442.1 kB / 440.7 MB, free: 42.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.8045, allocations: 480.5 kB / 441.2 MB, free: 42.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002187/0.8048, allocations: 76.62 kB / 441.3 MB, free: 42.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00637/0.8112, allocations: 0.8978 MB / 442.2 MB, free: 42.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005241/0.8118, allocations: 183.9 kB / 442.4 MB, free: 42.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001205/0.813, allocations: 409.2 kB / 442.8 MB, free: 42.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009309/0.8224, allocations: 1.761 MB / 444.5 MB, free: 42.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.532e-05/0.8225, allocations: 0 / 444.5 MB, free: 42.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.171e-06/0.8225, allocations: 0 / 444.5 MB, free: 42.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.034e-05/0.8226, allocations: 3.25 kB / 444.5 MB, free: 42.03 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.004424/0.8271, allocations: 1.15 MB / 445.7 MB, free: 41.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.456e-05/0.8272, allocations: 9.188 kB / 445.7 MB, free: 41.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001924/0.8274, allocations: 112.5 kB / 445.8 MB, free: 41.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001293/0.8287, allocations: 143.5 kB / 445.9 MB, free: 41.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.8298, allocations: 454.9 kB / 446.4 MB, free: 41.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.389e-05/0.8299, allocations: 51.28 kB / 446.4 MB, free: 41.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001858/0.8301, allocations: 67.59 kB / 446.5 MB, free: 41.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001882/0.832, allocations: 0.7588 MB / 447.2 MB, free: 40.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.832, allocations: 0 / 447.2 MB, free: 40.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.8322, allocations: 29.47 kB / 447.3 MB, free: 40.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.228e-05/0.8322, allocations: 17.38 kB / 447.3 MB, free: 40.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002041/0.8343, allocations: 0.8761 MB / 448.2 MB, free: 40.95 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.01524/0.8495, allocations: 2.358 MB / 450.5 MB, free: 40.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/0.8523, allocations: 1.026 MB / 451.6 MB, free: 39.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005772/0.8529, allocations: 294.4 kB / 451.8 MB, free: 39.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005487/0.8584, allocations: 2.863 MB / 454.7 MB, free: 37.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/0.8585, allocations: 39.91 kB / 454.7 MB, free: 37.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 3.456e-06/0.8586, allocations: 0 / 454.7 MB, free: 37.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.03241/0.891, allocations: 2.8 MB / 457.5 MB, free: 36.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.8912, allocations: 62.31 kB / 457.6 MB, free: 36.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009763/0.8922, allocations: 400.9 kB / 458 MB, free: 36.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000221/0.8924, allocations: 36.83 kB / 458 MB, free: 36.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003231/0.8927, allocations: 363.8 kB / 458.4 MB, free: 35.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002865/0.893, allocations: 201.6 kB / 458.6 MB, free: 35.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003181/0.8934, allocations: 143.7 kB / 458.7 MB, free: 35.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.8935, allocations: 368.1 kB / 459.1 MB, free: 35.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005211/0.894, allocations: 204.3 kB / 459.3 MB, free: 35.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007402/0.8948, allocations: 468.4 kB / 459.7 MB, free: 34.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.8963, allocations: 0.7197 MB / 460.5 MB, free: 34.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.8963, allocations: 4.062 kB / 460.5 MB, free: 34.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.008046/0.9044, allocations: 1.135 MB / 461.6 MB, free: 33.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.693e-05/0.9045, allocations: 7.25 kB / 461.6 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.824e-05/0.9046, allocations: 8.938 kB / 461.6 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006079/0.9107, allocations: 452.7 kB / 462.1 MB, free: 33.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.9119, allocations: 160.2 kB / 462.2 MB, free: 33.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/0.9285, allocations: 4.645 MB / 466.9 MB, free: 30.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.93, allocations: 31.81 kB / 466.9 MB, free: 30.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001603/0.9302, allocations: 38.84 kB / 466.9 MB, free: 30.03 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (81): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006919/0.9309, allocations: 210.6 kB / 467.1 MB, free: 29.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000375/0.9313, allocations: 54.81 kB / 467.2 MB, free: 29.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01806/0.9494, allocations: 1.09 MB / 468.3 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.889e-05/0.9495, allocations: 9.172 kB / 468.3 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-05/0.9495, allocations: 2.344 kB / 468.3 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.439e-05/0.9496, allocations: 3.469 kB / 468.3 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01517/0.9647, allocations: 1.823 MB / 470.1 MB, free: 28.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.863e-05/0.9649, allocations: 6.938 kB / 470.1 MB, free: 28.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008629/0.9658, allocations: 92.66 kB / 470.2 MB, free: 28.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007313/0.9731, allocations: 0.5049 MB / 470.7 MB, free: 28.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002122/0.9734, allocations: 17.22 kB / 470.7 MB, free: 28.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/0.9856, allocations: 5.971 MB / 476.7 MB, free: 23.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-05/0.9857, allocations: 5.125 kB / 476.7 MB, free: 23.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/0.9959, allocations: 1.399 MB / 478.1 MB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004944/0.9964, allocations: 131.8 kB / 478.2 MB, free: 22.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.9967, allocations: 12.44 kB / 478.3 MB, free: 22.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007757/0.9974, allocations: 14.12 kB / 478.3 MB, free: 22.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003223/0.9978, allocations: 66.7 kB / 478.3 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.9979, allocations: 25.88 kB / 478.4 MB, free: 22.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005535/0.9985, allocations: 269.2 kB / 478.6 MB, free: 22.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9985, allocations: 0 / 478.6 MB, free: 22.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002938/1.001, allocations: 399.2 kB / 479 MB, free: 22.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (Ethanol.logn,liquidWater.amountOfBonds,liquidWater.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.015/1.016, allocations: 2.297 MB / 481.3 MB, free: 20.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003765/1.02, allocations: 0.9165 MB / 482.2 MB, free: 20.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.736e-05/1.02, allocations: 0.9688 kB / 482.2 MB, free: 20.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002047/1.022, allocations: 0.7336 MB / 483 MB, free: 20.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/1.024, allocations: 146.8 kB / 483.1 MB, free: 19.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0324/1.057, allocations: 6.182 MB / 489.3 MB, free: 16.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/1.058, allocations: 0.8976 MB / 490.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001201/1.059, allocations: 128 kB / 490.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007234/1.06, allocations: 282.2 kB / 490.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of SimCode: time 1.893e-06/1.06, allocations: 0 / 490.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3686/1.428, allocations: 21.38 MB / 0.5 GB, free: 2.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.03/26.46, allocations: 64 / 0.5 GB, free: 2.32 MB / 366.1 MB (rm -f Chemical_Chemical.Examples.HeatingOfAlcohol.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfAlcohol.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfAlcohol.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfAlcohol.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.HeatingOfAlcohol_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_HeatingOfAlcohol.fmu > Chemical_Chemical.Examples.HeatingOfAlcohol.pipe 2>&1)