Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.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.Utilities.Comfort.Examples.Fanger,fileNamePrefix="Buildings_latest_Buildings_Utilities_Comfort_Examples_Fanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Comfort.Examples.Fanger,fileNamePrefix="Buildings_latest_Buildings_Utilities_Comfort_Examples_Fanger",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.001288/0.001288, allocations: 108 kB / 15.61 MB, free: 152 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.001301/0.001301, allocations: 195 kB / 16.53 MB, free: 6.664 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.622/2.622, allocations: 469.4 MB / 0.742 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 67.27 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2523, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Comfort.Examples.Fanger): time 0.003273/0.2556, allocations: 2.314 MB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1416/0.3972, allocations: 152 MB / 1.214 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.3974, allocations: 7.938 kB / 1.214 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001737/0.3976, allocations: 43.47 kB / 1.214 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003046/0.3979, allocations: 99.2 kB / 1.215 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005789/0.3985, allocations: 303 kB / 1.215 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.3989, allocations: 427.8 kB / 1.215 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.3991, allocations: 107.9 kB / 1.215 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001121/0.4002, allocations: 280.5 kB / 1.216 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002509/0.4005, allocations: 191.3 kB / 1.216 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.208e-05/0.4005, allocations: 28 kB / 1.216 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004861/0.401, allocations: 275.6 kB / 1.216 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.519e-05/0.4011, allocations: 79.72 kB / 1.216 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.4013, allocations: 171.2 kB / 1.216 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005553/0.4019, allocations: 478.6 kB / 1.217 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4019, allocations: 0 / 1.217 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.372e-06/0.4019, allocations: 0 / 1.217 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.4019, allocations: 0 / 1.217 GB, free: 1.152 MB / 0.9669 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.001412/0.4033, allocations: 0.7017 MB / 1.217 GB, free: 412 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.4033, allocations: 8.031 kB / 1.217 GB, free: 404 kB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.994e-05/0.4034, allocations: 62.72 kB / 1.218 GB, free: 332 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002856/0.4063, allocations: 263.3 kB / 1.218 GB, free: 68 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.4066, allocations: 299.2 kB / 1.218 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.4067, allocations: 24.56 kB / 1.218 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.107e-05/0.4067, allocations: 28 kB / 1.218 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.4082, allocations: 428.5 kB / 1.218 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.4082, allocations: 4 kB / 1.219 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.844e-05/0.4083, allocations: 11.94 kB / 1.219 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.4083, allocations: 8 kB / 1.219 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002322/0.4106, allocations: 0.5251 MB / 1.219 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002941/0.4135, allocations: 1.124 MB / 1.22 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.4159, allocations: 458.3 kB / 1.221 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.417, allocations: 236.6 kB / 1.221 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.705e-05/0.417, allocations: 8.375 kB / 1.221 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.4171, allocations: 38.5 kB / 1.221 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.4171, allocations: 0 / 1.221 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.01624/0.4333, allocations: 1.724 MB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.4334, allocations: 59.34 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.4336, allocations: 304.5 kB / 1.223 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.4337, allocations: 29.7 kB / 1.223 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.4338, allocations: 172.2 kB / 1.223 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.167e-05/0.4339, allocations: 86.75 kB / 1.223 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.4341, allocations: 73.92 kB / 1.223 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.4342, allocations: 342.8 kB / 1.224 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.4352, allocations: 200.4 kB / 1.224 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.4363, allocations: 262.9 kB / 1.224 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002111/0.4385, allocations: 438.8 kB / 1.224 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.4385, allocations: 4 kB / 1.224 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.00721/0.4457, allocations: 0.8927 MB / 1.225 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.4457, allocations: 4 kB / 1.225 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.4458, allocations: 11.92 kB / 1.225 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001977/0.4477, allocations: 281.4 kB / 1.226 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004965/0.4482, allocations: 71.88 kB / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01531/0.4636, allocations: 4.087 MB / 1.23 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008576/0.4644, allocations: 71.61 kB / 1.23 GB, free: 3.297 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.956e-05/0.4645, allocations: 23.95 kB / 1.23 GB, free: 3.273 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002149/0.4647, allocations: 141.7 kB / 1.23 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.665e-05/0.4648, allocations: 35.62 kB / 1.23 GB, free: 3.09 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007461/0.4723, allocations: 0.9456 MB / 1.231 GB, free: 2.137 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.4723, allocations: 7.938 kB / 1.231 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.4723, allocations: 0 / 1.231 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.4724, allocations: 0 / 1.231 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005458/0.4729, allocations: 440.6 kB / 1.231 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4729, allocations: 3.938 kB / 1.231 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004086/0.4733, allocations: 59.89 kB / 1.231 GB, free: 1.586 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/0.4752, allocations: 281.4 kB / 1.232 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.245e-05/0.4753, allocations: 11.97 kB / 1.232 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01511/0.4904, allocations: 4.089 MB / 1.236 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4904, allocations: 0 / 1.236 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007375/0.4978, allocations: 0.9492 MB / 1.236 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.4979, allocations: 108.7 kB / 1.237 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.249e-05/0.498, allocations: 7.984 kB / 1.237 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007607/0.4988, allocations: 43.95 kB / 1.237 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.481e-05/0.4989, allocations: 27.86 kB / 1.237 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.4989, allocations: 15.97 kB / 1.237 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002355/0.4992, allocations: 231 kB / 1.237 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4992, allocations: 0 / 1.237 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000579/0.4998, allocations: 108 kB / 1.237 GB, free: 11.4 MB / 0.9981 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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007726/0.5075, allocations: 1.519 MB / 1.238 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002919/0.5104, allocations: 0.7431 MB / 1.239 GB, free: 9.078 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5104, allocations: 0 / 1.239 GB, free: 9.078 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001615/0.5121, allocations: 0.4933 MB / 1.24 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006806/0.5128, allocations: 117.2 kB / 1.24 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01986/0.5326, allocations: 4.399 MB / 1.244 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.533, allocations: 0.7684 MB / 1.245 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0004953/0.5335, allocations: 78.88 kB / 1.245 GB, free: 3.086 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.5337, allocations: 103.4 kB / 1.245 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of SimCode: time 5.11e-07/0.5337, allocations: 0 / 1.245 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4384/0.9721, allocations: 16.51 MB / 1.261 GB, free: 187.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.65, allocations: 7.594 kB / 1.261 GB, free: 187.3 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.pipe >> ../files/Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Comfort_Examples_Fanger.fmu > Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Comfort_Examples_Fanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches