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.006761/0.006761, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001318/0.001318, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07791/0.07791, allocations: 15.29 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.84 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1024, allocations: 53.61 MB / 478.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfAlcohol): time 0.005447/0.1079, allocations: 4.239 MB / 482.5 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.1185, allocations: 8.678 MB / 491.2 MB, free: 9.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006659/0.1192, allocations: 7.938 kB / 491.2 MB, free: 9.316 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008451/0.1201, allocations: 186.8 kB / 491.4 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002499/0.1227, allocations: 0.7915 MB / 492.2 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002614/0.1253, allocations: 1.006 MB / 493.2 MB, free: 7.324 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001242/0.1266, allocations: 0.8811 MB / 494.1 MB, free: 6.438 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000689/0.1273, allocations: 0.5 MB / 494.6 MB, free: 5.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006134/0.1279, allocations: 450.8 kB / 495 MB, free: 5.488 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007996/0.1287, allocations: 478.3 kB / 495.5 MB, free: 5.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001888/0.1289, allocations: 76 kB / 495.6 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00278/0.1317, allocations: 0.9011 MB / 496.5 MB, free: 4.043 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002307/0.132, allocations: 179.4 kB / 496.6 MB, free: 3.867 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000497/0.1325, allocations: 410.2 kB / 497 MB, free: 3.465 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003466/0.1359, allocations: 1.79 MB / 498.8 MB, free: 1.668 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.136, allocations: 3.938 kB / 498.8 MB, free: 1.664 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.136, allocations: 0 / 498.8 MB, free: 1.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.719e-05/0.136, allocations: 4 kB / 498.8 MB, free: 1.66 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.002168/0.1382, allocations: 1.168 MB / 500 MB, free: 448 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1382, allocations: 8.031 kB / 0.4883 GB, free: 440 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.1384, allocations: 114.7 kB / 0.4884 GB, free: 316 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006429/0.139, allocations: 156.1 kB / 0.4885 GB, free: 160 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007437/0.1398, allocations: 463.7 kB / 0.489 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/0.1398, allocations: 62.3 kB / 0.489 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.14, allocations: 72.33 kB / 0.4891 GB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.1412, allocations: 0.7549 MB / 0.4899 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1413, allocations: 0 / 0.4899 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-05/0.1413, allocations: 36 kB / 0.4899 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.1413, allocations: 16 kB / 0.4899 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.1428, allocations: 0.8745 MB / 0.4908 GB, free: 13.84 MB / 382.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.003706/0.1465, allocations: 2.331 MB / 0.493 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.1482, allocations: 1.023 MB / 0.494 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000436/0.1486, allocations: 299.8 kB / 0.4943 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003992/0.1526, allocations: 2.856 MB / 0.4971 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.1527, allocations: 38.56 kB / 0.4971 GB, free: 6.789 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.054e-06/0.1527, allocations: 0 / 0.4971 GB, free: 6.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.01496/0.1676, allocations: 2.823 MB / 0.4999 GB, free: 3.879 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.1677, allocations: 55.97 kB / 0.5 GB, free: 3.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005291/0.1683, allocations: 409.7 kB / 0.5003 GB, free: 3.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.03e-05/0.1683, allocations: 37.7 kB / 0.5004 GB, free: 3.363 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002703/0.1686, allocations: 372.1 kB / 0.5007 GB, free: 2.996 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.1688, allocations: 206.3 kB / 0.5009 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.169, allocations: 142.6 kB / 0.5011 GB, free: 2.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.1692, allocations: 362.8 kB / 0.5014 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004141/0.1696, allocations: 209.9 kB / 0.5016 GB, free: 2.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006135/0.1702, allocations: 458.2 kB / 0.5021 GB, free: 1.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.1713, allocations: 0.7251 MB / 0.5028 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.1713, allocations: 0 / 0.5028 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.1917/0.363, allocations: 1.142 MB / 0.5039 GB, free: 34.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.3631, allocations: 8.344 kB / 0.5039 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.3631, allocations: 11.88 kB / 0.5039 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003453/0.3666, allocations: 441 kB / 0.5043 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005551/0.3671, allocations: 164.5 kB / 0.5045 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006638/0.3738, allocations: 4.644 MB / 0.509 GB, free: 31.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005638/0.3744, allocations: 34.34 kB / 0.509 GB, free: 31.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-05/0.3745, allocations: 43.08 kB / 0.5091 GB, free: 31.17 MB / 382.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.0002865/0.3748, allocations: 208.5 kB / 0.5093 GB, free: 31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.3749, allocations: 53.11 kB / 0.5093 GB, free: 31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005028/0.3799, allocations: 1.089 MB / 0.5104 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.38, allocations: 5.531 kB / 0.5104 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.709e-06/0.38, allocations: 2.75 kB / 0.5104 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.38, allocations: 6.141 kB / 0.5104 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005971/0.386, allocations: 1.817 MB / 0.5122 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.386, allocations: 2.141 kB / 0.5122 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003476/0.3864, allocations: 89.84 kB / 0.5123 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004292/0.3907, allocations: 0.5013 MB / 0.5128 GB, free: 29.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.017e-05/0.3908, allocations: 25.84 kB / 0.5128 GB, free: 29.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007051/0.3978, allocations: 5.965 MB / 0.5186 GB, free: 24.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.3979, allocations: 4.062 kB / 0.5186 GB, free: 24.49 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00578/0.4037, allocations: 1.408 MB / 0.52 GB, free: 23.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002259/0.4039, allocations: 126.5 kB / 0.5201 GB, free: 23.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.159e-05/0.404, allocations: 13.88 kB / 0.5201 GB, free: 23.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003441/0.4044, allocations: 18.62 kB / 0.5201 GB, free: 23.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.4046, allocations: 66.94 kB / 0.5202 GB, free: 23.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.185e-05/0.4046, allocations: 25.11 kB / 0.5202 GB, free: 23.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003793/0.405, allocations: 269.5 kB / 0.5205 GB, free: 23.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.405, allocations: 0 / 0.5205 GB, free: 23.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001491/0.4065, allocations: 403.3 kB / 0.5209 GB, free: 23.51 MB / 382.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.006302/0.4128, allocations: 2.311 MB / 0.5231 GB, free: 22.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.4147, allocations: 0.9019 MB / 0.524 GB, free: 21.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4147, allocations: 1.156 kB / 0.524 GB, free: 21.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.4158, allocations: 0.733 MB / 0.5247 GB, free: 21.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009149/0.4168, allocations: 148.7 kB / 0.5249 GB, free: 21.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/0.4309, allocations: 6.114 MB / 0.5308 GB, free: 17.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.4313, allocations: 0.8941 MB / 0.5317 GB, free: 16.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004527/0.4317, allocations: 134.4 kB / 0.5318 GB, free: 16.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003196/0.4321, allocations: 282.3 kB / 0.5321 GB, free: 16.67 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4321, allocations: 0 / 0.5321 GB, free: 16.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05004/0.4821, allocations: 21.63 MB / 0.5532 GB, free: 14.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.31, allocations: 18.16 kB / 0.5532 GB, free: 14.71 MB / 398.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)