Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Sensors.Examples.EntropyFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_EntropyFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.EntropyFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_EntropyFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001605, 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.002039/0.002039, allocations: 194.2 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.814/2.814, allocations: 469.4 MB / 0.742 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 69.67 kB / 0.9083 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3039, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.EntropyFlowRate): time 0.182/0.4859, allocations: 169.4 MB / 1.229 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008831/0.4948, allocations: 7.126 MB / 1.236 GB, free: 13.24 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005321/0.4954, allocations: 19.81 kB / 1.236 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007308/0.4962, allocations: 174.7 kB / 1.236 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004257/0.5005, allocations: 1.256 MB / 1.238 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001883/0.5024, allocations: 0.6271 MB / 1.238 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00116/0.5035, allocations: 0.7563 MB / 1.239 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006501/0.5042, allocations: 299.5 kB / 1.239 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001476/0.5057, allocations: 0.5681 MB / 1.24 GB, free: 9.535 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/0.5069, allocations: 430.5 kB / 1.24 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.521e-05/0.507, allocations: 27.94 kB / 1.24 GB, free: 9.086 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002537/0.5095, allocations: 1.235 MB / 1.241 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001675/0.5097, allocations: 123.6 kB / 1.241 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002575/0.51, allocations: 179.1 kB / 1.242 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.5119, allocations: 0.8884 MB / 1.243 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.5119, allocations: 0 / 1.243 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.004e-06/0.5119, allocations: 0 / 1.243 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.415e-05/0.5119, allocations: 0 / 1.243 GB, free: 6.66 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001184/0.5131, allocations: 0.6973 MB / 1.243 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.5132, allocations: 8.031 kB / 1.243 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.474e-05/0.5133, allocations: 66.53 kB / 1.243 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.5144, allocations: 131.3 kB / 1.243 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005122/0.5149, allocations: 325.2 kB / 1.244 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.147e-05/0.515, allocations: 50.27 kB / 1.244 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.282e-05/0.515, allocations: 31.94 kB / 1.244 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007618/0.5158, allocations: 366.1 kB / 1.244 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.5158, allocations: 0 / 1.244 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.5159, allocations: 8 kB / 1.244 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.5159, allocations: 8 kB / 1.244 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000597/0.5165, allocations: 282 kB / 1.244 GB, free: 4.594 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/0.5188, allocations: 1.496 MB / 1.246 GB, free: 2.969 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004535/0.5193, allocations: 194.6 kB / 1.246 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.5195, allocations: 116.8 kB / 1.246 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001128/0.5206, allocations: 0.5014 MB / 1.247 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.5207, allocations: 34.56 kB / 1.247 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/0.5207, allocations: 0 / 1.247 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.0009381/0.5216, allocations: 358.8 kB / 1.247 GB, free: 1.66 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.5217, allocations: 55.41 kB / 1.247 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.522, allocations: 316.5 kB / 1.247 GB, free: 1.281 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.522, allocations: 25.7 kB / 1.247 GB, free: 1.25 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.5222, allocations: 188 kB / 1.248 GB, free: 1.062 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.379e-05/0.5223, allocations: 51.2 kB / 1.248 GB, free: 1.012 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.924e-05/0.5224, allocations: 45.7 kB / 1.248 GB, free: 0.9609 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.5225, allocations: 346.7 kB / 1.248 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.5227, allocations: 91.88 kB / 1.248 GB, free: 0.5234 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002507/0.523, allocations: 147.9 kB / 1.248 GB, free: 368 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004524/0.5234, allocations: 241.4 kB / 1.248 GB, free: 108 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5234, allocations: 4 kB / 1.248 GB, free: 104 kB / 0.9981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.4733/0.9967, allocations: 276.5 kB / 1.249 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.9968, allocations: 6.766 kB / 1.249 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.9968, allocations: 1.688 kB / 1.249 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.9968, allocations: 2.688 kB / 1.249 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000273/0.9971, allocations: 42.33 kB / 1.249 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.9971, allocations: 6.672 kB / 1.249 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.9974, allocations: 33.48 kB / 1.249 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.9974, allocations: 10.77 kB / 1.249 GB, free: 189.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (20): * Single equations (assignments): 20 * 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.0001665/0.9976, allocations: 156.8 kB / 1.249 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.9977, allocations: 28.91 kB / 1.249 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007699/0.9985, allocations: 311.2 kB / 1.249 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.9985, allocations: 3.719 kB / 1.249 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.9985, allocations: 0.6094 kB / 1.249 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.9985, allocations: 1.891 kB / 1.249 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.9999, allocations: 0.8086 MB / 1.25 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.9999, allocations: 5.656 kB / 1.25 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/1, allocations: 33.77 kB / 1.25 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/1, allocations: 3.094 kB / 1.25 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/1, allocations: 8.453 kB / 1.25 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/1, allocations: 14.5 kB / 1.25 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/1, allocations: 2.031 kB / 1.25 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006489/1.001, allocations: 402.4 kB / 1.251 GB, free: 188.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/1.001, allocations: 139.5 kB / 1.251 GB, free: 188.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/1.001, allocations: 4.703 kB / 1.251 GB, free: 188.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/1.001, allocations: 15.27 kB / 1.251 GB, free: 188.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.435e-05/1.001, allocations: 19.34 kB / 1.251 GB, free: 188.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/1.001, allocations: 10.88 kB / 1.251 GB, free: 188.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003009/1.002, allocations: 228.4 kB / 1.251 GB, free: 188.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.4e-07/1.002, allocations: 0.75 kB / 1.251 GB, free: 188.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005925/1.002, allocations: 117.4 kB / 1.251 GB, free: 188.7 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (16): * Single equations (assignments): 16 * 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.001473/1.004, allocations: 1.063 MB / 1.252 GB, free: 188 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005681/1.004, allocations: 224.3 kB / 1.252 GB, free: 188 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/1.004, allocations: 1.125 kB / 1.252 GB, free: 188 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002524/1.005, allocations: 123.5 kB / 1.252 GB, free: 188 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009164/1.006, allocations: 156.7 kB / 1.253 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/1.009, allocations: 3.067 MB / 1.256 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/1.01, allocations: 0.7846 MB / 1.256 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003475/1.01, allocations: 86.03 kB / 1.256 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/1.01, allocations: 103 kB / 1.257 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of SimCode: time 4.61e-07/1.01, allocations: 0 / 1.257 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03348/1.044, allocations: 10.43 MB / 1.267 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/8.837, allocations: 5.359 kB / 1.267 GB, free: 184.7 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_latest_Buildings_Fluid_Sensors_Examples_EntropyFlowRate.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_EntropyFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches