Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Fluid.Sensors.Examples.SpecificEntropy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senStr.port_a.m_flow|senStr.s|senFloSou.s",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy") translateModel(Buildings.Fluid.Sensors.Examples.SpecificEntropy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senStr.port_a.m_flow|senStr.s|senFloSou.s",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001201, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.363/1.363, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.829/2.829, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 67.12 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3271, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEntropy): time 0.1864/0.5136, allocations: 163.2 MB / 1.228 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.005955/0.5196, allocations: 4.583 MB / 1.232 GB, free: 1.973 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004164/0.52, allocations: 11.94 kB / 1.232 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005209/0.5206, allocations: 119 kB / 1.232 GB, free: 1.844 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001468/0.5221, allocations: 0.5406 MB / 1.233 GB, free: 1.301 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001788/0.5239, allocations: 0.7704 MB / 1.233 GB, free: 0.5312 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000722/0.5247, allocations: 0.5769 MB / 1.234 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003389/0.525, allocations: 209.1 kB / 1.234 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008989/0.5259, allocations: 466.2 kB / 1.235 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005194/0.5264, allocations: 286.9 kB / 1.235 GB, free: 15.01 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.538e-05/0.5265, allocations: 16 kB / 1.235 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001539/0.528, allocations: 1.002 MB / 1.236 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.5282, allocations: 87.77 kB / 1.236 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.5283, allocations: 131.3 kB / 1.236 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009947/0.5293, allocations: 0.7091 MB / 1.237 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.5293, allocations: 3.938 kB / 1.237 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.523e-06/0.5293, allocations: 4 kB / 1.237 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.5293, allocations: 0 / 1.237 GB, free: 13.05 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001049/0.5304, allocations: 0.5802 MB / 1.237 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.5305, allocations: 12.03 kB / 1.237 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007036/0.5312, allocations: 87.48 kB / 1.238 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.5315, allocations: 279.5 kB / 1.238 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.5316, allocations: 15.94 kB / 1.238 GB, free: 12 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.5316, allocations: 23.91 kB / 1.238 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005185/0.5322, allocations: 287.4 kB / 1.238 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.5322, allocations: 4 kB / 1.238 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/0.5322, allocations: 8 kB / 1.238 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.5322, allocations: 7.938 kB / 1.238 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004397/0.5327, allocations: 209.4 kB / 1.238 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.5344, allocations: 1.242 MB / 1.24 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.5347, allocations: 177 kB / 1.24 GB, free: 9.902 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.5349, allocations: 108.2 kB / 1.24 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007933/0.5357, allocations: 343.2 kB / 1.24 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.5358, allocations: 34.69 kB / 1.24 GB, free: 9.348 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 1.854e-06/0.5358, allocations: 4 kB / 1.24 GB, free: 9.344 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13): time 0.0008275/0.5366, allocations: 277.1 kB / 1.24 GB, free: 9.066 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.101e-05/0.5367, allocations: 158.6 kB / 1.241 GB, free: 8.875 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003044/0.537, allocations: 287.5 kB / 1.241 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.5371, allocations: 25.7 kB / 1.241 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.5372, allocations: 155.8 kB / 1.241 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.223e-05/0.5373, allocations: 47.38 kB / 1.241 GB, free: 8.355 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.069e-05/0.5374, allocations: 49.61 kB / 1.241 GB, free: 8.301 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.5375, allocations: 338.8 kB / 1.241 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.5377, allocations: 63.95 kB / 1.242 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.5379, allocations: 148.5 kB / 1.242 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00041/0.5384, allocations: 211.5 kB / 1.242 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.5384, allocations: 0 / 1.242 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005442/0.5389, allocations: 245.1 kB / 1.242 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.5389, allocations: 5.719 kB / 1.242 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.539, allocations: 4 kB / 1.242 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.539, allocations: 4 kB / 1.242 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.5392, allocations: 35.97 kB / 1.242 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.5392, allocations: 7.938 kB / 1.242 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.5394, allocations: 35.92 kB / 1.242 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.699e-05/0.5395, allocations: 15.94 kB / 1.242 GB, free: 7.137 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (18): * Single equations (assignments): 18 * 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.0001458/0.5396, allocations: 157.7 kB / 1.242 GB, free: 6.973 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.5398, allocations: 23.72 kB / 1.242 GB, free: 6.949 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005068/0.5403, allocations: 185.8 kB / 1.243 GB, free: 6.75 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.5403, allocations: 4 kB / 1.243 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5403, allocations: 64 / 1.243 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.5403, allocations: 11.98 kB / 1.243 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.5414, allocations: 0.8509 MB / 1.243 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5414, allocations: 0 / 1.243 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.5415, allocations: 31.97 kB / 1.243 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.5415, allocations: 4.094 kB / 1.243 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.5415, allocations: 8 kB / 1.243 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.113e-06/0.5415, allocations: 0 / 1.243 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.5415, allocations: 7.938 kB / 1.243 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/0.5421, allocations: 339.3 kB / 1.244 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.5422, allocations: 112.8 kB / 1.244 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.387e-05/0.5423, allocations: 4 kB / 1.244 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.5424, allocations: 11.98 kB / 1.244 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.5425, allocations: 4 kB / 1.244 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.5425, allocations: 12.05 kB / 1.244 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002345/0.5428, allocations: 233.9 kB / 1.244 GB, free: 5.008 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5428, allocations: 0 / 1.244 GB, free: 5.008 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004664/0.5433, allocations: 95.94 kB / 1.244 GB, free: 4.914 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (senStr.s) * 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 (10): * Single equations (assignments): 10 * 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.0005538/0.5438, allocations: 213.3 kB / 1.244 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004531/0.5443, allocations: 151.8 kB / 1.245 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5443, allocations: 0 / 1.245 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.5445, allocations: 64.64 kB / 1.245 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000806/0.5453, allocations: 147.2 kB / 1.245 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009085/0.5462, allocations: 0.5 MB / 1.245 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.5466, allocations: 0.7519 MB / 1.246 GB, free: 3.031 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002076/0.5468, allocations: 70.81 kB / 1.246 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.727e-05/0.5469, allocations: 27.44 kB / 1.246 GB, free: 2.938 MB / 0.9981 GB Notification: Performance of SimCode: time 4.3e-07/0.5469, allocations: 0 / 1.246 GB, free: 2.938 MB / 0.9981 GB Notification: Performance of Templates: time 0.5151/1.062, allocations: 5.797 MB / 1.252 GB, free: 185.3 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_SpecificEntropy.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches