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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 106.1 kB / 16.45 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 196.6 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08663/0.08663, allocations: 15.54 MB / 318.2 MB, free: 10.22 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 71.89 kB / 444.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1334, allocations: 56.54 MB / 0.4897 GB, free: 4.91 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.005576/0.139, allocations: 3.453 MB / 0.4931 GB, free: 1.434 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00724/0.1462, allocations: 4.763 MB / 0.4977 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004595/0.1467, allocations: 4 kB / 0.4977 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004882/0.1471, allocations: 111.1 kB / 0.4978 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001305/0.1484, allocations: 452.8 kB / 0.4983 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.1499, allocations: 0.5283 MB / 0.4988 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008325/0.1507, allocations: 0.5805 MB / 0.4993 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004467/0.1512, allocations: 300.4 kB / 0.4996 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003914/0.1516, allocations: 287.1 kB / 0.4999 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004558/0.152, allocations: 310.9 kB / 0.5002 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.232e-05/0.1521, allocations: 52 kB / 0.5003 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001467/0.1536, allocations: 483.2 kB / 0.5007 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.1538, allocations: 131.5 kB / 0.5008 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002909/0.154, allocations: 270.8 kB / 0.5011 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00185/0.1559, allocations: 1.039 MB / 0.5021 GB, free: 8.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1559, allocations: 0 / 0.5021 GB, free: 8.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1559, allocations: 0 / 0.5021 GB, free: 8.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1559, allocations: 0 / 0.5021 GB, free: 8.133 MB / 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.001804/0.1577, allocations: 0.8837 MB / 0.503 GB, free: 7.199 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1578, allocations: 12.03 kB / 0.503 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.1579, allocations: 86.7 kB / 0.5031 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003717/0.1582, allocations: 96.33 kB / 0.5032 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006732/0.1589, allocations: 366.5 kB / 0.5035 GB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.664e-05/0.159, allocations: 41.38 kB / 0.5035 GB, free: 6.562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.468e-05/0.1591, allocations: 52.33 kB / 0.5036 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008151/0.1599, allocations: 450.5 kB / 0.504 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.1599, allocations: 4 kB / 0.504 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.51e-05/0.1599, allocations: 20 kB / 0.504 GB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.1599, allocations: 12 kB / 0.5041 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009044/0.1608, allocations: 0.5075 MB / 0.5046 GB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002791/0.1636, allocations: 1.542 MB / 0.5061 GB, free: 3.883 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008036/0.1644, allocations: 346.3 kB / 0.5064 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.1647, allocations: 108.8 kB / 0.5065 GB, free: 3.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002629/0.1673, allocations: 1.565 MB / 0.508 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.1673, allocations: 34.56 kB / 0.5081 GB, free: 1.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 2.064e-06/0.1673, allocations: 4 kB / 0.5081 GB, free: 1.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.2465/0.4138, allocations: 2.332 MB / 0.5103 GB, free: 23.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.909e-05/0.4138, allocations: 54.31 kB / 0.5104 GB, free: 23.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003193/0.4141, allocations: 299.5 kB / 0.5107 GB, free: 23.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.4142, allocations: 34.52 kB / 0.5107 GB, free: 23.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.4143, allocations: 276.4 kB / 0.511 GB, free: 23.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.753e-05/0.4144, allocations: 115.9 kB / 0.5111 GB, free: 23.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.4145, allocations: 84.72 kB / 0.5112 GB, free: 23.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.169e-05/0.4146, allocations: 343.8 kB / 0.5115 GB, free: 23.24 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.4148, allocations: 131.1 kB / 0.5116 GB, free: 23.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002817/0.4151, allocations: 266 kB / 0.5119 GB, free: 23.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005438/0.4156, allocations: 430.8 kB / 0.5123 GB, free: 22.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4156, allocations: 0.5625 kB / 0.5123 GB, free: 22.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004201/0.4198, allocations: 0.8171 MB / 0.5131 GB, free: 22.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.4198, allocations: 8.5 kB / 0.5131 GB, free: 22.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.4198, allocations: 3.938 kB / 0.5131 GB, free: 22.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003706/0.4236, allocations: 408 kB / 0.5135 GB, free: 22.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.4238, allocations: 82.34 kB / 0.5136 GB, free: 22.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006111/0.43, allocations: 3.987 MB / 0.5175 GB, free: 20.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003962/0.4304, allocations: 13.22 kB / 0.5175 GB, free: 20.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.4304, allocations: 22.75 kB / 0.5175 GB, free: 20.11 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.0002391/0.4306, allocations: 169 kB / 0.5176 GB, free: 20 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.014e-05/0.4307, allocations: 39.11 kB / 0.5177 GB, free: 19.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005065/0.4358, allocations: 0.8215 MB / 0.5185 GB, free: 19.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.4358, allocations: 3.875 kB / 0.5185 GB, free: 19.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.4358, allocations: 4.578 kB / 0.5185 GB, free: 19.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.4358, allocations: 1.406 kB / 0.5185 GB, free: 19.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008315/0.4366, allocations: 0.6324 MB / 0.5191 GB, free: 19.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.4366, allocations: 0.7031 kB / 0.5191 GB, free: 19.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.4368, allocations: 50.88 kB / 0.5192 GB, free: 19.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004885/0.4417, allocations: 483.8 kB / 0.5196 GB, free: 19.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.639e-05/0.4418, allocations: 14.06 kB / 0.5196 GB, free: 19.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0068/0.4486, allocations: 5.308 MB / 0.5248 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.4486, allocations: 6.75 kB / 0.5248 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005359/0.4539, allocations: 1.109 MB / 0.5259 GB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.4541, allocations: 116.8 kB / 0.526 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.037e-05/0.4542, allocations: 13.36 kB / 0.526 GB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/0.4545, allocations: 13.39 kB / 0.526 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.4546, allocations: 37.17 kB / 0.5261 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/0.4547, allocations: 18.97 kB / 0.5261 GB, free: 13.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002637/0.4549, allocations: 204.1 kB / 0.5263 GB, free: 13.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4549, allocations: 2.844 kB / 0.5263 GB, free: 13.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001196/0.4561, allocations: 239.7 kB / 0.5265 GB, free: 13.75 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.006235/0.4624, allocations: 1.862 MB / 0.5283 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.4639, allocations: 0.6655 MB / 0.529 GB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4639, allocations: 1.406 kB / 0.529 GB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009239/0.4648, allocations: 0.6093 MB / 0.5296 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007676/0.4656, allocations: 99.11 kB / 0.5297 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.478, allocations: 4.602 MB / 0.5342 GB, free: 8.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.4784, allocations: 0.8303 MB / 0.535 GB, free: 8.246 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003396/0.4787, allocations: 76.34 kB / 0.5351 GB, free: 8.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002533/0.479, allocations: 176 kB / 0.5352 GB, free: 8.109 MB / 382.1 MB Notification: Performance of SimCode: time 1.222e-06/0.479, allocations: 4 kB / 0.5352 GB, free: 8.105 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06794/0.5469, allocations: 15.38 MB / 0.5503 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/13.73, allocations: 19.28 kB / 0.5503 GB, free: 0.8477 MB / 382.1 MB " [Timeout remaining time 646] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.522046488244087] Failed to read output from testmodel.py, exit status != 0: 13.83554156171158 13.86314886 13.701876959 Calling exit ...