Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfWater.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.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",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.004931/0.004932, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001158/0.001158, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08015/0.08015, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.91 kB / 424.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09907, allocations: 53.6 MB / 478.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.005333/0.1044, allocations: 3.439 MB / 481.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005793/0.1103, allocations: 4.736 MB / 486.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00034/0.1106, allocations: 7.938 kB / 486.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004351/0.1111, allocations: 111.1 kB / 486.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001141/0.1123, allocations: 453.1 kB / 487 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.1134, allocations: 0.5322 MB / 487.5 MB, free: 13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006475/0.1141, allocations: 0.5844 MB / 488.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004036/0.1145, allocations: 368.3 kB / 488.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.1148, allocations: 283.2 kB / 488.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003449/0.1151, allocations: 306.8 kB / 489.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.206e-05/0.1152, allocations: 56 kB / 489.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009399/0.1162, allocations: 471.4 kB / 489.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.1163, allocations: 123.6 kB / 489.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002791/0.1166, allocations: 282.7 kB / 490 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001548/0.1182, allocations: 1.043 MB / 491 MB, free: 9.512 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.1182, allocations: 0 / 491 MB, free: 9.512 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1182, allocations: 0 / 491 MB, free: 9.512 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.1182, allocations: 0 / 491 MB, free: 9.512 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001574/0.1198, allocations: 0.8721 MB / 491.9 MB, free: 8.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1198, allocations: 8.031 kB / 491.9 MB, free: 8.582 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.1199, allocations: 90.66 kB / 492 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003632/0.1203, allocations: 96.31 kB / 492.1 MB, free: 8.391 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005589/0.1209, allocations: 370.5 kB / 492.4 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.1209, allocations: 33.38 kB / 492.5 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.7e-05/0.121, allocations: 52.33 kB / 492.5 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007249/0.1217, allocations: 454.5 kB / 493 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1218, allocations: 0 / 493 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.1218, allocations: 20 kB / 493 MB, free: 7.438 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.1218, allocations: 12 kB / 493 MB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007749/0.1226, allocations: 0.5114 MB / 493.5 MB, free: 6.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00229/0.1249, allocations: 1.53 MB / 495 MB, free: 5.285 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007597/0.1257, allocations: 366.7 kB / 495.4 MB, free: 4.918 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001969/0.1259, allocations: 128.8 kB / 495.5 MB, free: 4.789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002121/0.128, allocations: 1.569 MB / 497.1 MB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.1281, allocations: 42.56 kB / 497.1 MB, free: 2.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.583e-06/0.1281, allocations: 0 / 497.1 MB, free: 2.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01404/0.1421, allocations: 2.34 MB / 499.5 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.1422, allocations: 55.41 kB / 499.5 MB, free: 492 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.1426, allocations: 308.4 kB / 499.8 MB, free: 168 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.021e-05/0.1426, allocations: 29.7 kB / 499.9 MB, free: 132 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.1428, allocations: 276.1 kB / 0.4884 GB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.1429, allocations: 119 kB / 0.4885 GB, free: 15.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/0.1431, allocations: 82.11 kB / 0.4886 GB, free: 15.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1432, allocations: 338.8 kB / 0.4889 GB, free: 15.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/0.1435, allocations: 132.8 kB / 0.4891 GB, free: 15.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003465/0.1439, allocations: 264 kB / 0.4893 GB, free: 14.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006103/0.1445, allocations: 432.8 kB / 0.4897 GB, free: 14.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1445, allocations: 8 kB / 0.4897 GB, free: 14.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003969/0.1485, allocations: 0.8158 MB / 0.4905 GB, free: 13.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.1485, allocations: 8 kB / 0.4905 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.1485, allocations: 4 kB / 0.4905 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00342/0.1519, allocations: 409.8 kB / 0.4909 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00028/0.1522, allocations: 83.83 kB / 0.491 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006477/0.1587, allocations: 3.973 MB / 0.4949 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003918/0.1591, allocations: 23.94 kB / 0.4949 GB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.1592, allocations: 16 kB / 0.4949 GB, free: 8.762 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (42): * Single equations (assignments): 40 * 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 {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002763/0.1595, allocations: 173.7 kB / 0.4951 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.1596, allocations: 39.7 kB / 0.4951 GB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004759/0.1644, allocations: 0.8391 MB / 0.4959 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.1644, allocations: 4 kB / 0.4959 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1644, allocations: 4 kB / 0.496 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1644, allocations: 0 / 0.496 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008424/0.1653, allocations: 0.6154 MB / 0.4966 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.1653, allocations: 4.25 kB / 0.4966 GB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.1655, allocations: 59.91 kB / 0.4966 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004474/0.17, allocations: 482 kB / 0.4971 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.952e-05/0.1701, allocations: 19.92 kB / 0.4971 GB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007448/0.1775, allocations: 5.311 MB / 0.5023 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1775, allocations: 0 / 0.5023 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2343/0.4119, allocations: 1.121 MB / 0.5034 GB, free: 33.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.4121, allocations: 110.9 kB / 0.5035 GB, free: 33.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.487e-05/0.4122, allocations: 12.45 kB / 0.5035 GB, free: 33.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.4125, allocations: 11.28 kB / 0.5035 GB, free: 33.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.4126, allocations: 44.31 kB / 0.5035 GB, free: 33.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-05/0.4127, allocations: 17.48 kB / 0.5036 GB, free: 33.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002646/0.413, allocations: 206.5 kB / 0.5038 GB, free: 33.74 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.72e-07/0.413, allocations: 0 / 0.5038 GB, free: 33.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001005/0.414, allocations: 241.6 kB / 0.504 GB, free: 33.74 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (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 (29): * Single equations (assignments): 26 * 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 {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005735/0.4197, allocations: 1.855 MB / 0.5058 GB, free: 32.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.4212, allocations: 0.6949 MB / 0.5065 GB, free: 32.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4213, allocations: 1.125 kB / 0.5065 GB, free: 32.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009035/0.4222, allocations: 0.616 MB / 0.5071 GB, free: 32.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006931/0.4229, allocations: 101 kB / 0.5072 GB, free: 32.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.4338, allocations: 4.609 MB / 0.5117 GB, free: 30.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.4341, allocations: 0.8327 MB / 0.5125 GB, free: 29.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002547/0.4343, allocations: 78.83 kB / 0.5126 GB, free: 29.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.4346, allocations: 173.7 kB / 0.5127 GB, free: 29.34 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4346, allocations: 3.391 kB / 0.5127 GB, free: 29.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05417/0.4887, allocations: 15.32 MB / 0.5277 GB, free: 24.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.82, allocations: 11.55 kB / 0.5277 GB, free: 24.13 MB / 382.1 MB (rm -f Chemical_Chemical.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfWater.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.HeatingOfWater_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_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)