Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.HeatingOfWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 116.1 kB / 17.17 MB, free: 6 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 209.6 kB / 20.13 MB, free: 3.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.577/1.577, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1565/0.1565, allocations: 23.85 MB / 333.4 MB, free: 1.219 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_HeatingOfWater",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_HeatingOfWater",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 69.81 kB / 466.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1299, allocations: 59.83 MB / 0.5142 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.HeatingOfWater): time 0.005629/0.1355, allocations: 3.481 MB / 0.5176 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006708/0.1422, allocations: 4.779 MB / 0.5222 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003589/0.1425, allocations: 11.94 kB / 0.5222 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004251/0.143, allocations: 115.3 kB / 0.5223 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001177/0.1442, allocations: 456.9 kB / 0.5228 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001661/0.1458, allocations: 0.5243 MB / 0.5233 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009142/0.1467, allocations: 0.5844 MB / 0.5239 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004712/0.1472, allocations: 304.4 kB / 0.5242 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003758/0.1476, allocations: 299.1 kB / 0.5244 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004518/0.148, allocations: 310.8 kB / 0.5247 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.721e-05/0.1481, allocations: 52 kB / 0.5248 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.1496, allocations: 475.3 kB / 0.5252 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.1498, allocations: 115.7 kB / 0.5254 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002846/0.1501, allocations: 278.7 kB / 0.5256 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001913/0.152, allocations: 1.078 MB / 0.5267 GB, free: 108 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.547e-05/0.152, allocations: 4 kB / 0.5267 GB, free: 104 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.152, allocations: 0 / 0.5267 GB, free: 104 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.152, allocations: 0 / 0.5267 GB, free: 104 kB / 382.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.001851/0.1539, allocations: 0.8799 MB / 0.5275 GB, free: 15.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.1539, allocations: 12.03 kB / 0.5275 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.673e-05/0.1539, allocations: 13.19 kB / 0.5276 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001183/0.1541, allocations: 86.72 kB / 0.5276 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004068/0.1545, allocations: 96.31 kB / 0.5277 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006622/0.1551, allocations: 370.5 kB / 0.5281 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.1552, allocations: 33.38 kB / 0.5281 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.1553, allocations: 48.38 kB / 0.5282 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008064/0.1561, allocations: 458.3 kB / 0.5286 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.1561, allocations: 3.938 kB / 0.5286 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.037e-05/0.1561, allocations: 16 kB / 0.5286 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.1562, allocations: 15.98 kB / 0.5286 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008576/0.157, allocations: 0.5114 MB / 0.5291 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002671/0.1597, allocations: 1.542 MB / 0.5306 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008057/0.1605, allocations: 334.7 kB / 0.531 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001949/0.1607, allocations: 108.8 kB / 0.5311 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002374/0.1631, allocations: 1.569 MB / 0.5326 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.1631, allocations: 34.5 kB / 0.5326 GB, free: 9.598 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 2.224e-06/0.1631, allocations: 0 / 0.5326 GB, free: 9.598 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.01438/0.1775, allocations: 2.34 MB / 0.5349 GB, free: 7.156 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.1775, allocations: 51.41 kB / 0.535 GB, free: 7.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003602/0.1779, allocations: 308.3 kB / 0.5353 GB, free: 6.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.1779, allocations: 29.7 kB / 0.5353 GB, free: 6.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002101/0.1781, allocations: 276.1 kB / 0.5355 GB, free: 6.477 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.1782, allocations: 111.1 kB / 0.5357 GB, free: 6.367 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.1784, allocations: 86.06 kB / 0.5357 GB, free: 6.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1786, allocations: 346.8 kB / 0.5361 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.1788, allocations: 136.8 kB / 0.5362 GB, free: 5.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003653/0.1792, allocations: 260 kB / 0.5364 GB, free: 5.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006444/0.1798, allocations: 428.8 kB / 0.5369 GB, free: 5.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1798, allocations: 4 kB / 0.5369 GB, free: 5.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004098/0.1839, allocations: 0.8196 MB / 0.5377 GB, free: 4.176 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.1839, allocations: 4.531 kB / 0.5377 GB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.184, allocations: 8 kB / 0.5377 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003582/0.1875, allocations: 409.2 kB / 0.5381 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.1878, allocations: 75.91 kB / 0.5381 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007054/0.1949, allocations: 3.987 MB / 0.542 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004049/0.1953, allocations: 16 kB / 0.542 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.1953, allocations: 16 kB / 0.5421 GB, free: 15.38 MB / 414.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.0002673/0.1956, allocations: 166.6 kB / 0.5422 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.1957, allocations: 47.73 kB / 0.5423 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004963/0.2007, allocations: 0.8275 MB / 0.5431 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.2007, allocations: 4.141 kB / 0.5431 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2007, allocations: 0 / 0.5431 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.2007, allocations: 3.984 kB / 0.5431 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000946/0.2016, allocations: 0.6386 MB / 0.5437 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.2016, allocations: 4 kB / 0.5437 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.2018, allocations: 56 kB / 0.5438 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004477/0.2063, allocations: 486.1 kB / 0.5442 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/0.2064, allocations: 15.98 kB / 0.5442 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008134/0.2145, allocations: 5.303 MB / 0.5494 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.2145, allocations: 4 kB / 0.5494 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005296/0.2198, allocations: 1.124 MB / 0.5505 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.22, allocations: 112.9 kB / 0.5506 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.673e-05/0.22, allocations: 12 kB / 0.5506 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002904/0.2203, allocations: 8 kB / 0.5506 GB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.2205, allocations: 47.81 kB / 0.5507 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.12e-05/0.2205, allocations: 24.05 kB / 0.5507 GB, free: 5.906 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.2208, allocations: 199.1 kB / 0.5509 GB, free: 5.711 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2208, allocations: 0 / 0.5509 GB, free: 5.711 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001141/0.2219, allocations: 247.5 kB / 0.5511 GB, free: 5.469 MB / 414.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.006105/0.228, allocations: 1.833 MB / 0.5529 GB, free: 3.574 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.2296, allocations: 0.6777 MB / 0.5536 GB, free: 2.871 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.2296, allocations: 0 / 0.5536 GB, free: 2.871 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.2308, allocations: 0.5978 MB / 0.5542 GB, free: 2.234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000826/0.2316, allocations: 108.3 kB / 0.5543 GB, free: 2.133 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.2451, allocations: 4.596 MB / 0.5588 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006011/0.2457, allocations: 0.8274 MB / 0.5596 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003275/0.246, allocations: 79.34 kB / 0.5596 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003004/0.2463, allocations: 171.4 kB / 0.5598 GB, free: 12.19 MB / 430.1 MB Notification: Performance of SimCode: time 1.653e-06/0.2463, allocations: 0 / 0.5598 GB, free: 12.19 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04803/0.2944, allocations: 15.55 MB / 0.575 GB, free: 12.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.71, allocations: 8.047 kB / 0.575 GB, free: 12.8 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.HeatingOfWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_HeatingOfWater.fmu > Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.87309363699751] Failed to read output from testmodel.py, exit status != 0: 13.875600692001171 13.9031482 13.746130817 Calling exit ...