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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.09871/0.09871, allocations: 15.26 MB / 30.21 MB, free: 3.301 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 169.9 kB / 35.29 MB, free: 2.379 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.608/1.608, allocations: 223.2 MB / 263.4 MB, free: 6.855 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009863/0.0009864, allocations: 96.27 kB / 318.8 MB, free: 3.855 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.000348, allocations: 8.469 kB / 384 MB, free: 50.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1123, allocations: 54.64 MB / 438.6 MB, free: 400 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3536/0.466, allocations: 99.68 MB / 0.5257 GB, free: 15.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.4662, allocations: 71.66 kB / 0.5258 GB, free: 15.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03649/0.5027, allocations: 15.58 MB / 0.541 GB, free: 30.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5028, allocations: 0 / 0.541 GB, free: 30.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.741e-05/0.5028, allocations: 11.75 kB / 0.541 GB, free: 30.11 MB / 394.7 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.001317/0.5042, allocations: 0.7756 MB / 0.5418 GB, free: 29.56 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.5042, allocations: 7.719 kB / 0.5418 GB, free: 29.56 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.097e-05/0.5043, allocations: 88.94 kB / 0.5419 GB, free: 29.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003421/0.5047, allocations: 96.3 kB / 0.5419 GB, free: 29.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.5052, allocations: 391 kB / 0.5423 GB, free: 29.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.5052, allocations: 38.58 kB / 0.5424 GB, free: 29.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-05/0.5053, allocations: 45.5 kB / 0.5424 GB, free: 29.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007566/0.5061, allocations: 0.604 MB / 0.543 GB, free: 29.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.5061, allocations: 4 kB / 0.543 GB, free: 29.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.375e-05/0.5061, allocations: 21.59 kB / 0.543 GB, free: 29.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.5062, allocations: 11.59 kB / 0.543 GB, free: 29.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008373/0.507, allocations: 0.8068 MB / 0.5438 GB, free: 29.19 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.5096, allocations: 1.905 MB / 0.5457 GB, free: 28.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006671/0.5103, allocations: 0.5586 MB / 0.5462 GB, free: 28.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001243/0.5104, allocations: 81.73 kB / 0.5463 GB, free: 28.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.5105, allocations: 41.72 kB / 0.5463 GB, free: 28.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 2.645e-06/0.5105, allocations: 0 / 0.5463 GB, free: 28.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=46): time 0.01704/0.5275, allocations: 3.513 MB / 0.5498 GB, free: 27.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.871e-05/0.5276, allocations: 58.94 kB / 0.5498 GB, free: 27.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.5279, allocations: 272.3 kB / 0.5501 GB, free: 27.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.143e-05/0.528, allocations: 29.58 kB / 0.5501 GB, free: 27.69 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.5281, allocations: 249.8 kB / 0.5503 GB, free: 27.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.5282, allocations: 158.7 kB / 0.5505 GB, free: 27.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-05/0.5283, allocations: 10.88 kB / 0.5505 GB, free: 27.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5284, allocations: 345.5 kB / 0.5508 GB, free: 27.12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003786/0.5288, allocations: 321.3 kB / 0.5511 GB, free: 27.12 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004064/0.5292, allocations: 400.5 kB / 0.5515 GB, free: 27.04 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004268/0.5297, allocations: 352 kB / 0.5519 GB, free: 27.03 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.5297, allocations: 0 / 0.5519 GB, free: 27.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00581/0.5355, allocations: 1.259 MB / 0.5531 GB, free: 26.69 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.5355, allocations: 11.81 kB / 0.5531 GB, free: 26.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.5356, allocations: 3.953 kB / 0.5531 GB, free: 26.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005031/0.5406, allocations: 0.576 MB / 0.5537 GB, free: 26.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003934/0.541, allocations: 89.27 kB / 0.5538 GB, free: 26.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007876/0.5489, allocations: 4.857 MB / 0.5585 GB, free: 22.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000617/0.5496, allocations: 26.45 kB / 0.5585 GB, free: 22.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.835e-05/0.5496, allocations: 18.75 kB / 0.5585 GB, free: 22.97 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 5} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000316/0.5499, allocations: 177.2 kB / 0.5587 GB, free: 22.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.67e-05/0.55, allocations: 37.02 kB / 0.5587 GB, free: 22.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006133/0.5562, allocations: 1.248 MB / 0.56 GB, free: 22.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.5562, allocations: 7.781 kB / 0.56 GB, free: 22.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.5562, allocations: 3.844 kB / 0.56 GB, free: 22.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.5562, allocations: 0 / 0.56 GB, free: 22.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007329/0.5636, allocations: 2.169 MB / 0.5621 GB, free: 21.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/0.5636, allocations: 3.875 kB / 0.5621 GB, free: 21.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002586/0.5639, allocations: 66.47 kB / 0.5622 GB, free: 21.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005875/0.5698, allocations: 0.5787 MB / 0.5627 GB, free: 21.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.922e-05/0.5699, allocations: 15 kB / 0.5627 GB, free: 21.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008246/0.5781, allocations: 5.645 MB / 0.5683 GB, free: 16.6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5782, allocations: 7.906 kB / 0.5683 GB, free: 16.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006487/0.5847, allocations: 1.859 MB / 0.5701 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/0.5849, allocations: 116.1 kB / 0.5702 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.614e-05/0.585, allocations: 18.89 kB / 0.5702 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.5854, allocations: 27.33 kB / 0.5702 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.5856, allocations: 54.83 kB / 0.5703 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.5856, allocations: 15.22 kB / 0.5703 GB, free: 15.67 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002146/0.5858, allocations: 212.7 kB / 0.5705 GB, free: 15.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5858, allocations: 3.719 kB / 0.5705 GB, free: 15.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009096/0.5867, allocations: 268.1 kB / 0.5708 GB, free: 15.53 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 5} * Non-linear torn systems: 3 {1 1,1 1,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.007617/0.5944, allocations: 3.376 MB / 0.5741 GB, free: 13.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.5959, allocations: 1.023 MB / 0.5751 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5959, allocations: 0 / 0.5751 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009628/0.5969, allocations: 0.7798 MB / 0.5758 GB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005578/0.5975, allocations: 84.8 kB / 0.5759 GB, free: 12.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.6, allocations: 3.099 MB / 0.5789 GB, free: 10.09 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.6004, allocations: 0.8472 MB / 0.5797 GB, free: 9.316 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002527/0.6007, allocations: 62.19 kB / 0.5798 GB, free: 9.277 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.6009, allocations: 165.9 kB / 0.58 GB, free: 9.258 MB / 394.7 MB Notification: Performance of SimCode: time 7.31e-07/0.6009, allocations: 0 / 0.58 GB, free: 9.258 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.6287, allocations: 15.96 MB / 0.5955 GB, free: 1.387 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.629, allocations: 185.7 kB / 0.5957 GB, free: 1.148 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.474/3.103, allocations: 0 / 0.5957 GB, free: 1.148 MB / 394.7 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/linux/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)