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.004524/0.004524, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001064/0.001064, allocations: 193.8 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09142/0.09142, allocations: 15.3 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.84 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09171/0.09288, allocations: 53.61 MB / 478.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfAlcohol): time 0.005252/0.09818, allocations: 4.23 MB / 482.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00939/0.1076, allocations: 8.685 MB / 491.2 MB, free: 9.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004644/0.1081, allocations: 4 kB / 491.2 MB, free: 9.305 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005669/0.1087, allocations: 198.8 kB / 491.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001888/0.1106, allocations: 0.7876 MB / 492.2 MB, free: 8.316 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002374/0.113, allocations: 1.01 MB / 493.2 MB, free: 7.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001103/0.1141, allocations: 0.885 MB / 494.1 MB, free: 6.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005675/0.1147, allocations: 0.4961 MB / 494.6 MB, free: 5.906 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004764/0.1152, allocations: 450.8 kB / 495 MB, free: 5.465 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005483/0.1158, allocations: 474.4 kB / 495.5 MB, free: 5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.1159, allocations: 80 kB / 495.6 MB, free: 4.922 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002602/0.1185, allocations: 0.901 MB / 496.5 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.1187, allocations: 183.4 kB / 496.6 MB, free: 3.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003847/0.1191, allocations: 406.2 kB / 497 MB, free: 3.441 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002591/0.1217, allocations: 1.786 MB / 498.8 MB, free: 1.648 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1217, allocations: 3.938 kB / 498.8 MB, free: 1.645 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1217, allocations: 0 / 498.8 MB, free: 1.645 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.1217, allocations: 4 kB / 498.8 MB, free: 1.641 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.001926/0.1236, allocations: 1.168 MB / 0.4883 GB, free: 428 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.1237, allocations: 12.02 kB / 0.4883 GB, free: 416 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001469/0.1239, allocations: 114.7 kB / 0.4884 GB, free: 292 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006102/0.1245, allocations: 152.1 kB / 0.4886 GB, free: 140 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007613/0.1252, allocations: 467.6 kB / 0.489 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.1253, allocations: 50.38 kB / 0.489 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.1254, allocations: 76.31 kB / 0.4891 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.1266, allocations: 0.7587 MB / 0.4899 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.1267, allocations: 4 kB / 0.4899 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/0.1267, allocations: 28 kB / 0.4899 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.1268, allocations: 16 kB / 0.4899 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.1281, allocations: 0.8745 MB / 0.4908 GB, free: 13.83 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.003338/0.1314, allocations: 2.335 MB / 0.493 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.133, allocations: 1.02 MB / 0.494 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004028/0.1335, allocations: 299.7 kB / 0.4943 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003736/0.1372, allocations: 2.86 MB / 0.4971 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.1372, allocations: 38.56 kB / 0.4971 GB, free: 6.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 1.673e-06/0.1372, allocations: 4 kB / 0.4972 GB, free: 6.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.01415/0.1514, allocations: 2.82 MB / 0.4999 GB, free: 3.859 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.1515, allocations: 55.97 kB / 0.5 GB, free: 3.793 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004286/0.1519, allocations: 405.7 kB / 0.5003 GB, free: 3.391 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.1519, allocations: 37.7 kB / 0.5004 GB, free: 3.348 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/0.1522, allocations: 376.1 kB / 0.5007 GB, free: 2.977 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.1523, allocations: 202.3 kB / 0.5009 GB, free: 2.777 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.1525, allocations: 146.6 kB / 0.5011 GB, free: 2.629 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1527, allocations: 362.8 kB / 0.5014 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.153, allocations: 209.9 kB / 0.5016 GB, free: 2.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004916/0.1535, allocations: 454.2 kB / 0.5021 GB, free: 1.504 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009091/0.1544, allocations: 0.7251 MB / 0.5028 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.391e-06/0.1544, allocations: 0 / 0.5028 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.1896/0.3441, allocations: 1.142 MB / 0.5039 GB, free: 34.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.3442, allocations: 9.844 kB / 0.5039 GB, free: 34.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.3442, allocations: 7.781 kB / 0.5039 GB, free: 34.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003587/0.3478, allocations: 443.7 kB / 0.5043 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005653/0.3484, allocations: 163 kB / 0.5045 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006992/0.3554, allocations: 4.637 MB / 0.509 GB, free: 31.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/0.356, allocations: 29.67 kB / 0.509 GB, free: 31.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.022e-05/0.3561, allocations: 43.23 kB / 0.5091 GB, free: 31.13 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.0003401/0.3565, allocations: 206.9 kB / 0.5093 GB, free: 30.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.3566, allocations: 53.53 kB / 0.5093 GB, free: 30.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005037/0.3617, allocations: 1.105 MB / 0.5104 GB, free: 30.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.3617, allocations: 6.656 kB / 0.5104 GB, free: 30.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.3617, allocations: 1.469 kB / 0.5104 GB, free: 30.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.3617, allocations: 4.062 kB / 0.5104 GB, free: 30.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005878/0.3676, allocations: 1.811 MB / 0.5122 GB, free: 29.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.3676, allocations: 1.438 kB / 0.5122 GB, free: 29.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003343/0.368, allocations: 90.02 kB / 0.5123 GB, free: 29.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00437/0.3724, allocations: 0.5079 MB / 0.5128 GB, free: 29.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.258e-05/0.3724, allocations: 24.27 kB / 0.5128 GB, free: 29.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007393/0.3798, allocations: 5.966 MB / 0.5186 GB, free: 24.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3799, allocations: 1.969 kB / 0.5186 GB, free: 24.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005678/0.3856, allocations: 1.407 MB / 0.52 GB, free: 23.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.3857, allocations: 126.6 kB / 0.5201 GB, free: 23.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.597e-05/0.3858, allocations: 18.16 kB / 0.5201 GB, free: 23.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003772/0.3862, allocations: 14.16 kB / 0.5201 GB, free: 23.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.3864, allocations: 67.05 kB / 0.5202 GB, free: 23.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-05/0.3864, allocations: 25.38 kB / 0.5202 GB, free: 23.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003121/0.3868, allocations: 269.2 kB / 0.5205 GB, free: 23.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3868, allocations: 0 / 0.5205 GB, free: 23.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001614/0.3884, allocations: 404.5 kB / 0.5209 GB, free: 23.47 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.006599/0.395, allocations: 2.311 MB / 0.5231 GB, free: 22.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.3968, allocations: 0.9037 MB / 0.524 GB, free: 21.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3968, allocations: 0 / 0.524 GB, free: 21.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.3979, allocations: 0.7315 MB / 0.5247 GB, free: 21.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008429/0.3987, allocations: 147.6 kB / 0.5249 GB, free: 21.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/0.4117, allocations: 6.115 MB / 0.5308 GB, free: 17.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.412, allocations: 0.8949 MB / 0.5317 GB, free: 16.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004451/0.4125, allocations: 129.9 kB / 0.5318 GB, free: 16.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000314/0.4128, allocations: 279.6 kB / 0.5321 GB, free: 16.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4128, allocations: 0 / 0.5321 GB, free: 16.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05517/0.468, allocations: 21.64 MB / 0.5532 GB, free: 14.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/13.95, allocations: 14.75 kB / 0.5532 GB, free: 14.66 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)