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.005686/0.005686, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001298/0.001298, allocations: 194.2 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.7407/0.7407, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 63.89 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1269, allocations: 53.6 MB / 478.3 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004851/0.1318, allocations: 3.436 MB / 481.7 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005839/0.1377, allocations: 4.732 MB / 486.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002399/0.1379, allocations: 7.938 kB / 486.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000417/0.1383, allocations: 111.2 kB / 486.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009954/0.1394, allocations: 441.1 kB / 487 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.1406, allocations: 0.5321 MB / 487.5 MB, free: 13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006903/0.1413, allocations: 0.5883 MB / 488.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004619/0.1418, allocations: 364.4 kB / 488.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003093/0.1421, allocations: 287.1 kB / 488.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000424/0.1425, allocations: 298.9 kB / 489 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.395e-05/0.1426, allocations: 59.94 kB / 489.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.1438, allocations: 471.4 kB / 489.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.144, allocations: 123.6 kB / 489.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003178/0.1443, allocations: 286.7 kB / 490 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.1461, allocations: 1.039 MB / 491 MB, free: 9.508 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1461, allocations: 0 / 491 MB, free: 9.508 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1461, allocations: 0 / 491 MB, free: 9.508 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.1461, allocations: 0 / 491 MB, free: 9.508 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.001589/0.1477, allocations: 0.8721 MB / 491.9 MB, free: 8.586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.1478, allocations: 12.03 kB / 491.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.1479, allocations: 82.72 kB / 492 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003807/0.1483, allocations: 100.2 kB / 492.1 MB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005889/0.1489, allocations: 370.5 kB / 492.4 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.269e-05/0.1489, allocations: 37.38 kB / 492.5 MB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-05/0.149, allocations: 52.33 kB / 492.5 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007567/0.1498, allocations: 450.5 kB / 493 MB, free: 7.453 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.1498, allocations: 3.938 kB / 493 MB, free: 7.449 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.714e-05/0.1499, allocations: 20 kB / 493 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.1499, allocations: 16 kB / 493 MB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008416/0.1507, allocations: 0.5114 MB / 493.5 MB, free: 6.902 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.1531, allocations: 1.534 MB / 495 MB, free: 5.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007471/0.1539, allocations: 370.3 kB / 495.4 MB, free: 4.902 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.1541, allocations: 124.8 kB / 495.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002215/0.1563, allocations: 1.569 MB / 497.1 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.1564, allocations: 38.5 kB / 497.1 MB, free: 2.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.512e-06/0.1564, allocations: 0 / 497.1 MB, free: 2.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01327/0.1697, allocations: 2.344 MB / 499.5 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.1697, allocations: 55.41 kB / 499.5 MB, free: 480 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003435/0.1701, allocations: 300.4 kB / 499.8 MB, free: 164 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.1701, allocations: 33.7 kB / 499.9 MB, free: 124 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/0.1703, allocations: 280.2 kB / 0.4884 GB, free: 15.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.1704, allocations: 114.9 kB / 0.4885 GB, free: 15.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.1706, allocations: 86.12 kB / 0.4886 GB, free: 15.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1708, allocations: 342.8 kB / 0.4889 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.171, allocations: 128.8 kB / 0.489 GB, free: 15.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000336/0.1713, allocations: 260 kB / 0.4893 GB, free: 14.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006318/0.172, allocations: 428.8 kB / 0.4897 GB, free: 14.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.172, allocations: 0 / 0.4897 GB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003702/0.1757, allocations: 0.8277 MB / 0.4905 GB, free: 13.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1757, allocations: 4 kB / 0.4905 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.1757, allocations: 4 kB / 0.4905 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003213/0.179, allocations: 409.5 kB / 0.4909 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002546/0.1792, allocations: 79.89 kB / 0.491 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006529/0.1858, allocations: 3.996 MB / 0.4949 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003146/0.1861, allocations: 12 kB / 0.4949 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.632e-05/0.1862, allocations: 20 kB / 0.4949 GB, free: 8.75 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.0002483/0.1864, allocations: 173.8 kB / 0.4951 GB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.83e-05/0.1865, allocations: 39.7 kB / 0.4951 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004529/0.191, allocations: 0.8349 MB / 0.4959 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1911, allocations: 4 kB / 0.4959 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1911, allocations: 0 / 0.4959 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.1911, allocations: 0 / 0.4959 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008439/0.1919, allocations: 0.6193 MB / 0.4965 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1919, allocations: 0 / 0.4965 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.1921, allocations: 55.91 kB / 0.4966 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004158/0.1963, allocations: 486.2 kB / 0.4971 GB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.1963, allocations: 23.92 kB / 0.4971 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007284/0.2036, allocations: 5.307 MB / 0.5023 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2037, allocations: 0 / 0.5023 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2363/0.4399, allocations: 1.119 MB / 0.5034 GB, free: 33.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.4401, allocations: 116.2 kB / 0.5035 GB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.897e-05/0.4402, allocations: 10.97 kB / 0.5035 GB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002767/0.4405, allocations: 11.56 kB / 0.5035 GB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.4407, allocations: 45.84 kB / 0.5035 GB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-05/0.4407, allocations: 17.81 kB / 0.5036 GB, free: 33.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000236/0.441, allocations: 211.3 kB / 0.5038 GB, free: 33.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.441, allocations: 0 / 0.5038 GB, free: 33.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009112/0.4419, allocations: 238.1 kB / 0.504 GB, free: 33.76 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.005689/0.4476, allocations: 1.854 MB / 0.5058 GB, free: 33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.4491, allocations: 0.6912 MB / 0.5065 GB, free: 32.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4492, allocations: 1.438 kB / 0.5065 GB, free: 32.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009616/0.4501, allocations: 0.6191 MB / 0.5071 GB, free: 32.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007129/0.4509, allocations: 105.2 kB / 0.5072 GB, free: 32.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.4616, allocations: 4.613 MB / 0.5117 GB, free: 30.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.462, allocations: 0.8335 MB / 0.5125 GB, free: 29.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002839/0.4623, allocations: 75.33 kB / 0.5126 GB, free: 29.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/0.4625, allocations: 174.7 kB / 0.5127 GB, free: 29.35 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4625, allocations: 1.406 kB / 0.5127 GB, free: 29.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.896/1.358, allocations: 15.32 MB / 0.5277 GB, free: 24.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/16.39, allocations: 11.53 kB / 0.5277 GB, free: 24.12 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)