Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.0008162/0.0008162, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008038/0.0008038, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8628/0.8628, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.696/1.696, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 0.9996 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.773e-05/1.911e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003837/0.003856, allocations: 3.894 MB / 1.003 GB, free: 9.633 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0001097/0.003966, allocations: 139.5 kB / 1.004 GB, free: 9.496 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.698e-05/0.003993, allocations: 7.938 kB / 1.004 GB, free: 9.488 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 9.458e-05/0.004087, allocations: 3.938 kB / 1.004 GB, free: 9.484 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.968e-05/0.004157, allocations: 3.984 kB / 1.004 GB, free: 9.48 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.004438, allocations: 99.55 kB / 1.004 GB, free: 9.383 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 7.588e-05/0.004514, allocations: 35.84 kB / 1.004 GB, free: 9.348 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.186e-05/0.004556, allocations: 3.984 kB / 1.004 GB, free: 9.344 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 5.103e-05/0.004607, allocations: 19.97 kB / 1.004 GB, free: 9.324 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 6.74e-05/0.004674, allocations: 19.92 kB / 1.004 GB, free: 9.305 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.004686, allocations: 3.938 kB / 1.004 GB, free: 9.301 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.004823, allocations: 43.88 kB / 1.004 GB, free: 9.258 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 4.809e-05/0.004871, allocations: 11.92 kB / 1.004 GB, free: 9.246 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.003e-05/0.004891, allocations: 12 kB / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.005006, allocations: 63.84 kB / 1.004 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.005009, allocations: 4 kB / 1.004 GB, free: 9.168 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.32e-07/0.005009, allocations: 0 / 1.004 GB, free: 9.168 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.005013, allocations: 0 / 1.004 GB, free: 9.168 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003096/0.005323, allocations: 262.3 kB / 1.004 GB, free: 8.883 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.00536, allocations: 8.75 kB / 1.004 GB, free: 8.875 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.945e-05/0.00539, allocations: 34.69 kB / 1.004 GB, free: 8.832 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.929e-05/0.005419, allocations: 8.891 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.005569, allocations: 105.8 kB / 1.004 GB, free: 8.695 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.907e-05/0.005628, allocations: 55.97 kB / 1.004 GB, free: 8.629 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.005636, allocations: 4.375 kB / 1.004 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.005748, allocations: 67.95 kB / 1.004 GB, free: 8.547 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.005758, allocations: 3.938 kB / 1.004 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.005768, allocations: 4 kB / 1.004 GB, free: 8.539 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.005785, allocations: 0 / 1.004 GB, free: 8.539 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.806e-05/0.005823, allocations: 15.98 kB / 1.004 GB, free: 8.523 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003408/0.006164, allocations: 227.9 kB / 1.005 GB, free: 8.258 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 3.673e-05/0.006201, allocations: 18.58 kB / 1.005 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.648e-05/0.006217, allocations: 8.844 kB / 1.005 GB, free: 8.219 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 4.109e-05/0.006259, allocations: 4.062 kB / 1.005 GB, free: 8.215 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.006279, allocations: 34.56 kB / 1.005 GB, free: 8.172 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.00628, allocations: 4 kB / 1.005 GB, free: 8.168 MB / 0.9636 GB Notification: Performance of matching and sorting (n=1): time 0.000127/0.006407, allocations: 37.64 kB / 1.005 GB, free: 8.125 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.006438, allocations: 55.41 kB / 1.005 GB, free: 8.059 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.43e-05/0.006512, allocations: 109.7 kB / 1.005 GB, free: 7.941 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.006523, allocations: 25.7 kB / 1.005 GB, free: 7.91 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.668e-05/0.00656, allocations: 92.03 kB / 1.005 GB, free: 7.816 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 4.047e-06/0.006564, allocations: 0 / 1.005 GB, free: 7.816 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/0.00659, allocations: 21.7 kB / 1.005 GB, free: 7.789 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.792e-05/0.006668, allocations: 310.8 kB / 1.005 GB, free: 7.477 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.061e-05/0.006679, allocations: 4.125 kB / 1.005 GB, free: 7.473 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.05e-05/0.006699, allocations: 25.7 kB / 1.005 GB, free: 7.441 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.118e-05/0.00673, allocations: 29.59 kB / 1.005 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.006732, allocations: 0 / 1.005 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 4.793e-05/0.00678, allocations: 45.69 kB / 1.005 GB, free: 7.355 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.006791, allocations: 4 kB / 1.005 GB, free: 7.352 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.006794, allocations: 0 / 1.005 GB, free: 7.352 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.006806, allocations: 4 kB / 1.005 GB, free: 7.348 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.598e-05/0.006842, allocations: 7.938 kB / 1.005 GB, free: 7.34 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.006847, allocations: 4.062 kB / 1.005 GB, free: 7.336 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.267e-05/0.00686, allocations: 7.891 kB / 1.005 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.006868, allocations: 4 kB / 1.005 GB, free: 7.324 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.041e-05/0.006919, allocations: 113.8 kB / 1.006 GB, free: 7.203 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.006933, allocations: 8 kB / 1.006 GB, free: 7.195 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.963e-05/0.007013, allocations: 113 kB / 1.006 GB, free: 7.078 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.476e-05/0.007067, allocations: 184.2 kB / 1.006 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-05/0.007108, allocations: 180.2 kB / 1.006 GB, free: 6.707 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.25e-05/0.00715, allocations: 184.3 kB / 1.006 GB, free: 6.52 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.007287, allocations: 380.2 kB / 1.007 GB, free: 6.098 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.51e-05/0.007312, allocations: 105 kB / 1.007 GB, free: 5.988 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.32e-05/0.007335, allocations: 105.2 kB / 1.007 GB, free: 5.879 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.914e-05/0.007374, allocations: 184.3 kB / 1.007 GB, free: 5.691 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.007412, allocations: 176.3 kB / 1.007 GB, free: 5.512 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-05/0.00745, allocations: 180.2 kB / 1.007 GB, free: 5.328 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.055e-05/0.007491, allocations: 188.2 kB / 1.007 GB, free: 5.137 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001018/0.007593, allocations: 311.7 kB / 1.008 GB, free: 4.809 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.822e-05/0.007621, allocations: 108.9 kB / 1.008 GB, free: 4.695 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.638e-05/0.007667, allocations: 180.2 kB / 1.008 GB, free: 4.512 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.906e-05/0.007756, allocations: 109 kB / 1.008 GB, free: 4.398 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.378e-05/0.0078, allocations: 180.2 kB / 1.008 GB, free: 4.215 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.007821, allocations: 105 kB / 1.008 GB, free: 4.105 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.656e-05/0.007858, allocations: 95.27 kB / 1.009 GB, free: 4.012 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.007858, allocations: 0 / 1.009 GB, free: 4.012 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001626/0.008021, allocations: 15.94 kB / 1.009 GB, free: 3.996 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002798/0.0083, allocations: 0.8362 MB / 1.009 GB, free: 3.133 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 5.058e-05/0.008351, allocations: 4 kB / 1.009 GB, free: 3.129 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.008354, allocations: 4 kB / 1.009 GB, free: 3.125 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 9.22e-07/0.008355, allocations: 4.125 kB / 1.009 GB, free: 3.121 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.008636, allocations: 469.8 kB / 1.01 GB, free: 2.66 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000754/0.00939, allocations: 1.324 MB / 1.011 GB, free: 1.246 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.296e-05/0.009433, allocations: 59.34 kB / 1.011 GB, free: 1.168 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.981e-05/0.009463, allocations: 7.938 kB / 1.011 GB, free: 1.16 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.605e-05/0.009489, allocations: 12.5 kB / 1.011 GB, free: 1.148 MB / 0.9636 GB Notification: Performance of SimCode: time 4.91e-07/0.009489, allocations: 0 / 1.011 GB, free: 1.148 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01469/0.02417, allocations: 2.171 MB / 1.013 GB, free: 15.12 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.411/6.435, allocations: 2.844 kB / 1.013 GB, free: 15.12 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.286445257253945]