Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.SteamProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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: translateModel(Buildings.Media.Examples.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_10_Buildings.Media.Examples.SteamProperties") translateModel(Buildings.Media.Examples.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_10_Buildings.Media.Examples.SteamProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 107.1 kB / 16.36 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 193.5 kB / 17.29 MB, free: 5.863 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.546/2.546, allocations: 437.1 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 61.11 kB / 0.8707 GB, free: 1.469 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3231, allocations: 151.6 MB / 1.019 GB, free: 9.879 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.8581/1.181, allocations: 136.1 MB / 1.152 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.03062/1.212, allocations: 22.67 MB / 1.174 GB, free: 14.77 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002866/1.212, allocations: 1.062 kB / 1.174 GB, free: 14.77 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0003554/1.213, allocations: 51.22 kB / 1.174 GB, free: 14.73 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0004003/1.213, allocations: 81.88 kB / 1.174 GB, free: 14.66 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.02361/1.237, allocations: 6.961 MB / 1.181 GB, free: 9.953 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0005238/1.237, allocations: 244.9 kB / 1.181 GB, free: 9.824 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 6.792e-05/1.237, allocations: 16.97 kB / 1.181 GB, free: 9.816 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003729/1.238, allocations: 138.8 kB / 1.181 GB, free: 9.742 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/1.238, allocations: 89.47 kB / 1.181 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.847e-05/1.238, allocations: 8.625 kB / 1.181 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02883/1.267, allocations: 11.64 MB / 1.193 GB, free: 3.57 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001844/1.267, allocations: 35.42 kB / 1.193 GB, free: 3.543 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0002295/1.267, allocations: 85.08 kB / 1.193 GB, free: 3.496 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.02125/1.289, allocations: 6.484 MB / 1.199 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.395e-06/1.289, allocations: 0 / 1.199 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.675e-06/1.289, allocations: 0 / 1.199 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.368e-06/1.289, allocations: 0 / 1.199 GB, free: 15.36 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.004256/1.293, allocations: 1.197 MB / 1.2 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/1.293, allocations: 10.38 kB / 1.2 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/1.294, allocations: 84.92 kB / 1.2 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003355/1.294, allocations: 230.9 kB / 1.201 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/1.294, allocations: 9.719 kB / 1.201 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/1.295, allocations: 21.97 kB / 1.201 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/1.296, allocations: 459.6 kB / 1.201 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/1.296, allocations: 0 / 1.201 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/1.296, allocations: 7 kB / 1.201 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/1.296, allocations: 4.75 kB / 1.201 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/1.297, allocations: 0.5986 MB / 1.202 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/1.298, allocations: 0.8833 MB / 1.202 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007915/1.299, allocations: 254.3 kB / 1.203 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/1.299, allocations: 72.84 kB / 1.203 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08394/1.383, allocations: 35.41 MB / 1.237 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/1.383, allocations: 38.56 kB / 1.237 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=25): time 2.114e-06/1.383, allocations: 0 / 1.237 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25): time 0.001797/1.385, allocations: 424.1 kB / 1.238 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/1.385, allocations: 59.34 kB / 1.238 GB, free: 5.242 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/1.385, allocations: 133.8 kB / 1.238 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/1.385, allocations: 29.7 kB / 1.238 GB, free: 5.066 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/1.385, allocations: 116.4 kB / 1.238 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.861e-05/1.385, allocations: 82.75 kB / 1.238 GB, free: 4.863 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/1.385, allocations: 81.58 kB / 1.238 GB, free: 4.777 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000147/1.385, allocations: 330.8 kB / 1.239 GB, free: 4.445 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/1.386, allocations: 79.95 kB / 1.239 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002897/1.386, allocations: 134.1 kB / 1.239 GB, free: 4.219 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004417/1.386, allocations: 219.2 kB / 1.239 GB, free: 3.988 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/1.386, allocations: 4 kB / 1.239 GB, free: 3.984 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000762/1.387, allocations: 298 kB / 1.239 GB, free: 3.688 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/1.387, allocations: 10.44 kB / 1.239 GB, free: 3.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/1.387, allocations: 4 kB / 1.239 GB, free: 3.676 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/1.387, allocations: 0 / 1.239 GB, free: 3.676 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/1.387, allocations: 81.5 kB / 1.239 GB, free: 3.598 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/1.387, allocations: 4 kB / 1.239 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/1.388, allocations: 19.75 kB / 1.239 GB, free: 3.574 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/1.388, allocations: 35.91 kB / 1.239 GB, free: 3.539 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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.0001378/1.388, allocations: 125.8 kB / 1.24 GB, free: 3.406 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/1.388, allocations: 19.91 kB / 1.24 GB, free: 3.387 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002574/1.391, allocations: 2.339 MB / 1.242 GB, free: 1.035 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/1.391, allocations: 11.98 kB / 1.242 GB, free: 1.023 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/1.391, allocations: 0 / 1.242 GB, free: 1.023 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/1.391, allocations: 7.969 kB / 1.242 GB, free: 1.016 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003442/1.394, allocations: 3.427 MB / 1.245 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/1.394, allocations: 4 kB / 1.245 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000316/1.394, allocations: 55.89 kB / 1.245 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/1.394, allocations: 8 kB / 1.245 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.528e-05/1.394, allocations: 8.812 kB / 1.245 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.394, allocations: 4 kB / 1.245 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/1.394, allocations: 3.938 kB / 1.245 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008186/1.395, allocations: 0.5426 MB / 1.246 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/1.395, allocations: 140.5 kB / 1.246 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/1.396, allocations: 15.88 kB / 1.246 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/1.396, allocations: 16.81 kB / 1.246 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.155e-05/1.396, allocations: 23.97 kB / 1.246 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/1.396, allocations: 12 kB / 1.246 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.014e-05/1.396, allocations: 103.2 kB / 1.246 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/1.396, allocations: 0 / 1.246 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.005699/1.402, allocations: 1.694 MB / 1.248 GB, free: 10.82 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.009909/1.412, allocations: 1.915 MB / 1.25 GB, free: 8.895 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0007834/1.412, allocations: 327.4 kB / 1.25 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/1.412, allocations: 4 kB / 1.25 GB, free: 8.574 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003262/1.413, allocations: 252.8 kB / 1.25 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005587/1.413, allocations: 67.81 kB / 1.25 GB, free: 8.262 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/1.414, allocations: 0.6267 MB / 1.251 GB, free: 7.605 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/1.415, allocations: 0.7661 MB / 1.252 GB, free: 6.816 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0005539/1.415, allocations: 405 kB / 1.252 GB, free: 6.418 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/1.415, allocations: 43.41 kB / 1.252 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of SimCode: time 6.61e-07/1.416, allocations: 0 / 1.252 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of Templates: time 0.08262/1.498, allocations: 59.37 MB / 1.31 GB, free: 10.96 MB / 1.014 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_10_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches