Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001656/0.001656, allocations: 80.53 kB / 19.18 MB, free: 2.52 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.002131/0.002131, allocations: 159.2 kB / 22.45 MB, free: 5.375 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.541/1.541, allocations: 177.2 MB / 202.8 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.87/2.87, allocations: 377.8 MB / 0.6221 GB, free: 12.59 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|T|h",fileNamePrefix="Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|T|h",fileNamePrefix="Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 0.9814 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.388e-05/3.563e-05, allocations: 2.281 kB / 0.9814 GB, free: 10.95 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006342/0.006378, allocations: 3.913 MB / 0.9852 GB, free: 7.012 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0002183/0.006596, allocations: 135.5 kB / 0.9853 GB, free: 6.879 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.597e-05/0.006622, allocations: 3.938 kB / 0.9853 GB, free: 6.875 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.006749, allocations: 7.938 kB / 0.9854 GB, free: 6.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.083e-05/0.00684, allocations: 11.91 kB / 0.9854 GB, free: 6.855 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003889/0.007229, allocations: 90.62 kB / 0.9855 GB, free: 6.77 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.832e-05/0.007327, allocations: 35.84 kB / 0.9855 GB, free: 6.734 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.607e-05/0.007373, allocations: 3.984 kB / 0.9855 GB, free: 6.73 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.599e-05/0.007439, allocations: 19.98 kB / 0.9855 GB, free: 6.711 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.082e-05/0.00752, allocations: 15.92 kB / 0.9855 GB, free: 6.695 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.007537, allocations: 0 / 0.9855 GB, free: 6.695 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.00774, allocations: 51.75 kB / 0.9856 GB, free: 6.645 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.277e-05/0.007803, allocations: 15.97 kB / 0.9856 GB, free: 6.629 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.007831, allocations: 7.938 kB / 0.9856 GB, free: 6.621 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001776/0.008008, allocations: 59.86 kB / 0.9857 GB, free: 6.562 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.008014, allocations: 0 / 0.9857 GB, free: 6.562 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.132e-06/0.008015, allocations: 8 kB / 0.9857 GB, free: 6.555 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.008019, allocations: 0 / 0.9857 GB, free: 6.555 MB / 0.8887 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.0004482/0.008467, allocations: 258.3 kB / 0.9859 GB, free: 6.273 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.008509, allocations: 8.031 kB / 0.9859 GB, free: 6.266 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.316e-05/0.008563, allocations: 4.938 kB / 0.9859 GB, free: 6.262 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.008693, allocations: 113.7 kB / 0.986 GB, free: 6.125 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.517e-05/0.008779, allocations: 55.97 kB / 0.9861 GB, free: 6.059 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.003e-05/0.008789, allocations: 4.375 kB / 0.9861 GB, free: 6.055 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001689/0.008958, allocations: 67.94 kB / 0.9862 GB, free: 5.977 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.008966, allocations: 192 / 0.9862 GB, free: 5.977 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.008982, allocations: 7.938 kB / 0.9862 GB, free: 5.969 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.486e-05/0.009007, allocations: 7.938 kB / 0.9862 GB, free: 5.961 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.547e-05/0.009063, allocations: 15.98 kB / 0.9862 GB, free: 5.945 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005275/0.00959, allocations: 204.6 kB / 0.9864 GB, free: 5.715 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 6.127e-05/0.009651, allocations: 22.52 kB / 0.9864 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.374e-05/0.009685, allocations: 12.78 kB / 0.9864 GB, free: 5.668 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 6.142e-05/0.009747, allocations: 4.062 kB / 0.9864 GB, free: 5.664 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.089e-05/0.009797, allocations: 38.56 kB / 0.9865 GB, free: 5.617 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=1): time 1.183e-06/0.009799, allocations: 0 / 0.9865 GB, free: 5.617 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1): time 0.0001733/0.009972, allocations: 37.69 kB / 0.9865 GB, free: 5.574 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.01003, allocations: 55.34 kB / 0.9865 GB, free: 5.508 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.01014, allocations: 105.8 kB / 0.9866 GB, free: 5.395 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.01016, allocations: 25.7 kB / 0.9867 GB, free: 5.363 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 6.587e-05/0.01023, allocations: 88.09 kB / 0.9867 GB, free: 5.273 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 6.172e-06/0.01024, allocations: 0 / 0.9867 GB, free: 5.273 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.849e-05/0.01027, allocations: 21.67 kB / 0.9868 GB, free: 5.246 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001875/0.01046, allocations: 314.8 kB / 0.9871 GB, free: 4.93 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.644e-05/0.01049, allocations: 4 kB / 0.9871 GB, free: 4.926 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.139e-05/0.01052, allocations: 21.66 kB / 0.9871 GB, free: 4.898 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.356e-05/0.01056, allocations: 17.84 kB / 0.9871 GB, free: 4.875 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.01057, allocations: 4 kB / 0.9871 GB, free: 4.871 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001015/0.01067, allocations: 53.56 kB / 0.9872 GB, free: 4.812 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.01069, allocations: 4 kB / 0.9872 GB, free: 4.809 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.01069, allocations: 0 / 0.9872 GB, free: 4.809 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.01071, allocations: 4 kB / 0.9872 GB, free: 4.805 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.091e-05/0.01077, allocations: 7.984 kB / 0.9872 GB, free: 4.797 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.01078, allocations: 0 / 0.9872 GB, free: 4.797 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.416e-05/0.0108, allocations: 3.938 kB / 0.9872 GB, free: 4.793 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.01081, allocations: 8.062 kB / 0.9872 GB, free: 4.785 MB / 0.8887 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 0.000102/0.01092, allocations: 113.8 kB / 0.9873 GB, free: 4.664 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.475e-05/0.01095, allocations: 7.938 kB / 0.9873 GB, free: 4.656 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001502/0.0111, allocations: 117 kB / 0.9874 GB, free: 4.527 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-05/0.0112, allocations: 180.3 kB / 0.9876 GB, free: 4.344 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.893e-05/0.0113, allocations: 180.2 kB / 0.9878 GB, free: 4.16 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001099/0.01141, allocations: 184.3 kB / 0.9879 GB, free: 3.973 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002859/0.01169, allocations: 356.8 kB / 0.9883 GB, free: 3.586 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.634e-05/0.01176, allocations: 101 kB / 0.9884 GB, free: 3.48 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.161e-05/0.01182, allocations: 116.9 kB / 0.9885 GB, free: 3.359 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001086/0.01193, allocations: 180.2 kB / 0.9887 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.01206, allocations: 184.2 kB / 0.9888 GB, free: 2.988 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.768e-05/0.01215, allocations: 180.2 kB / 0.989 GB, free: 2.805 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.847e-05/0.01225, allocations: 176.3 kB / 0.9892 GB, free: 2.625 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000224/0.01248, allocations: 311.7 kB / 0.9895 GB, free: 2.297 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 8.709e-05/0.01256, allocations: 108.9 kB / 0.9896 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.01269, allocations: 188.2 kB / 0.9898 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.01288, allocations: 105 kB / 0.9899 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.01301, allocations: 188.2 kB / 0.99 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.798e-05/0.01306, allocations: 105 kB / 0.9901 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 7.73e-05/0.01314, allocations: 87.28 kB / 0.9902 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of sort global known variables: time 8e-08/0.01314, allocations: 0 / 0.9902 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002939/0.01343, allocations: 15.94 kB / 0.9902 GB, free: 1.48 MB / 0.8887 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.0002695/0.0137, allocations: 195 kB / 0.9904 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 9.332e-05/0.01379, allocations: 11.94 kB / 0.9904 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.0138, allocations: 0 / 0.9904 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 2.034e-06/0.0138, allocations: 0 / 0.9904 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005777/0.01438, allocations: 458.3 kB / 0.9909 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000355/0.01473, allocations: 184.3 kB / 0.991 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.702e-05/0.01481, allocations: 59.34 kB / 0.9911 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 4.177e-05/0.01485, allocations: 7.938 kB / 0.9911 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.94e-05/0.01488, allocations: 16.44 kB / 0.9911 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of SimCode: time 3.91e-07/0.01488, allocations: 0 / 0.9911 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of Templates: time 0.003601/0.01848, allocations: 0.6725 MB / 0.9918 GB, free: 15.85 MB / 0.9044 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.01831829175353]