Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3",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.007755/0.007755, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001817/0.001817, allocations: 198.7 kB / 16.67 MB, free: 5.934 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.22/2.22, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 65.3 kB / 0.9504 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2355, allocations: 140.4 MB / 1.087 GB, free: 2.191 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.007944/0.2434, allocations: 6.694 MB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1463/0.3898, allocations: 153.4 MB / 1.244 GB, free: 1.465 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.3912, allocations: 35.81 kB / 1.244 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.3923, allocations: 332.8 kB / 1.244 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002562/0.3949, allocations: 0.738 MB / 1.245 GB, free: 376 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003115/0.398, allocations: 1.37 MB / 1.246 GB, free: 15.01 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.002762/0.4008, allocations: 2.589 MB / 1.249 GB, free: 12.41 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001634/0.4024, allocations: 1.084 MB / 1.25 GB, free: 11.28 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001233/0.4036, allocations: 0.8798 MB / 1.251 GB, free: 10.39 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001204/0.4049, allocations: 0.9023 MB / 1.252 GB, free: 9.488 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0004985/0.4054, allocations: 212 kB / 1.252 GB, free: 9.281 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001727/0.4071, allocations: 0.9715 MB / 1.253 GB, free: 8.309 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0005972/0.4077, allocations: 0.5374 MB / 1.253 GB, free: 7.77 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0009204/0.4086, allocations: 0.9987 MB / 1.254 GB, free: 6.766 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.003029/0.4117, allocations: 2.988 MB / 1.257 GB, free: 3.766 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4117, allocations: 0 / 1.257 GB, free: 3.766 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.383e-06/0.4117, allocations: 0 / 1.257 GB, free: 3.766 MB / 1.014 GB Notification: Performance of Transformations before backend: time 3.104e-05/0.4117, allocations: 0 / 1.257 GB, free: 3.766 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 367 * Number of variables: 367 Notification: Performance of Generate backend data structure: time 0.004001/0.4158, allocations: 2.445 MB / 1.259 GB, free: 1.254 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.4158, allocations: 8.031 kB / 1.259 GB, free: 1.246 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002437/0.416, allocations: 215.4 kB / 1.26 GB, free: 1.023 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00189/0.4179, allocations: 391 kB / 1.26 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4977/0.9157, allocations: 1.319 MB / 1.261 GB, free: 172.8 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.9158, allocations: 110 kB / 1.261 GB, free: 172.8 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002211/0.916, allocations: 136.6 kB / 1.262 GB, free: 172.8 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003289/0.9193, allocations: 1.654 MB / 1.263 GB, free: 172.4 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.9194, allocations: 0.9062 kB / 1.263 GB, free: 172.4 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001503/0.9196, allocations: 74.88 kB / 1.263 GB, free: 172.3 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.884e-05/0.9196, allocations: 35.66 kB / 1.263 GB, free: 172.3 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003996/0.9236, allocations: 2.148 MB / 1.265 GB, free: 171.8 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007877/0.9315, allocations: 4.697 MB / 1.27 GB, free: 169.4 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003473/0.935, allocations: 1.606 MB / 1.272 GB, free: 168.8 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001368/0.9364, allocations: 0.5894 MB / 1.272 GB, free: 168.6 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001482/0.9366, allocations: 58.52 kB / 1.272 GB, free: 168.6 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002116/0.9387, allocations: 0.9442 MB / 1.273 GB, free: 168.2 MB / 1.014 GB Notification: Performance of pre-optimization done (n=154): time 5.831e-06/0.9387, allocations: 0.625 kB / 1.273 GB, free: 168.2 MB / 1.014 GB Notification: Performance of matching and sorting (n=154): time 0.006507/0.9452, allocations: 2.382 MB / 1.275 GB, free: 167.2 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.856e-05/0.9453, allocations: 354 kB / 1.276 GB, free: 166.8 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/0.9472, allocations: 1.16 MB / 1.277 GB, free: 166.4 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002019/0.9474, allocations: 59.44 kB / 1.277 GB, free: 166.3 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004802/0.9479, allocations: 0.6681 MB / 1.278 GB, free: 165.8 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.00038/0.9483, allocations: 0.5183 MB / 1.278 GB, free: 165.5 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004308/0.9488, allocations: 280 kB / 1.278 GB, free: 165.4 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 8.721e-05/0.9488, allocations: 360.4 kB / 1.279 GB, free: 165 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.95, allocations: 500 kB / 1.279 GB, free: 164.9 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.9512, allocations: 0.7363 MB / 1.28 GB, free: 164.5 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002244/0.9535, allocations: 1.181 MB / 1.281 GB, free: 163.9 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.9535, allocations: 1.156 kB / 1.281 GB, free: 163.9 MB / 1.014 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.004086/0.9576, allocations: 1.597 MB / 1.283 GB, free: 163.3 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.9577, allocations: 12.89 kB / 1.283 GB, free: 163.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.9577, allocations: 2.25 kB / 1.283 GB, free: 163.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/0.9588, allocations: 166.5 kB / 1.283 GB, free: 163.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.9601, allocations: 303.6 kB / 1.283 GB, free: 163.2 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003296/0.9634, allocations: 3.295 MB / 1.286 GB, free: 160.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/0.9651, allocations: 181 kB / 1.286 GB, free: 160.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.9652, allocations: 62.91 kB / 1.287 GB, free: 160 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 30 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,weaDatInpCon.decAng.tNext,$PRE.weaDatInpCon.decAng.tNext,weaDatInpCon.eqnTim.tNext,$PRE.weaDatInpCon.eqnTim.tNext,weaDatInpCon.conTim.tNext,$PRE.weaDatInpCon.conTim.tNext,weaDatInpCon.conTimMin.tNext,$PRE.weaDatInpCon.conTimMin.tNext,weaDatInpCon.locTim.tNext,$PRE.weaDatInpCon.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 167 * 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,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0008619/0.9661, allocations: 409.4 kB / 1.287 GB, free: 159.8 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003552/0.9665, allocations: 174.1 kB / 1.287 GB, free: 159.7 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004909/0.9714, allocations: 2.169 MB / 1.289 GB, free: 158.9 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.9714, allocations: 22.78 kB / 1.289 GB, free: 158.9 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.9714, allocations: 1.156 kB / 1.289 GB, free: 158.9 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.449e-05/0.9715, allocations: 11.73 kB / 1.289 GB, free: 158.9 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002229/0.9737, allocations: 1.626 MB / 1.291 GB, free: 158.1 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.9737, allocations: 5.438 kB / 1.291 GB, free: 158.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.9749, allocations: 288.3 kB / 1.291 GB, free: 158.1 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000841/0.9757, allocations: 145.3 kB / 1.291 GB, free: 158.1 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.9759, allocations: 52.52 kB / 1.291 GB, free: 158 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003022/0.9789, allocations: 3.349 MB / 1.295 GB, free: 154.9 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.165e-06/0.9789, allocations: 1.156 kB / 1.295 GB, free: 154.9 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004146/0.9831, allocations: 1.826 MB / 1.296 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000852/0.9839, allocations: 477.3 kB / 1.297 GB, free: 153.9 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002706/0.9842, allocations: 39.66 kB / 1.297 GB, free: 153.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/0.9855, allocations: 138.3 kB / 1.297 GB, free: 153.8 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002973/0.9858, allocations: 142.4 kB / 1.297 GB, free: 153.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/0.9859, allocations: 72.62 kB / 1.297 GB, free: 153.8 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0012/0.9872, allocations: 0.8055 MB / 1.298 GB, free: 153.5 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9872, allocations: 4 kB / 1.298 GB, free: 153.5 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001606/0.9888, allocations: 0.5031 MB / 1.298 GB, free: 153.3 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDatInpCon.locTim.tNext,weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext,weaDatInpCon.eqnTim.tNext,weaDatInpCon.decAng.tNext) * Number of discrete states: 10 (weaDatInpCon.locTim.tNext,weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext,weaDatInpCon.eqnTim.tNext,weaDatInpCon.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005542/0.9943, allocations: 2.943 MB / 1.301 GB, free: 151.9 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.003381/0.9977, allocations: 1.61 MB / 1.303 GB, free: 151.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.423e-06/0.9978, allocations: 2.594 kB / 1.303 GB, free: 151.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001798/0.9996, allocations: 1.039 MB / 1.304 GB, free: 150.6 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/1.002, allocations: 0.5777 MB / 1.305 GB, free: 150.3 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01838/1.02, allocations: 11.45 MB / 1.316 GB, free: 143 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/1.021, allocations: 1.336 MB / 1.317 GB, free: 141.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001475/1.022, allocations: 0.5166 MB / 1.318 GB, free: 141.1 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007985/1.023, allocations: 0.7335 MB / 1.318 GB, free: 140.4 MB / 1.014 GB Notification: Performance of SimCode: time 6.11e-07/1.023, allocations: 0 / 1.318 GB, free: 140.4 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0621/1.085, allocations: 39.17 MB / 1.356 GB, free: 101.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/14.29, allocations: 0 / 1.356 GB, free: 101.6 MB / 1.014 GB (rm -f Buildings_9_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3_res.csv --start-time 0 --stop-time 8.64e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3456 Buildings_9_Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3.fmu > Buildings_9_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches