Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: "" <> buildModelFMU(Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3,fileNamePrefix="Buildings_latest_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.004266/0.004266, allocations: 99.69 kB / 15.73 MB, free: 6.039 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.001244/0.001244, allocations: 192.3 kB / 16.67 MB, free: 5.949 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.917/2.917, allocations: 482.4 MB / 0.7548 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 64.12 kB / 1.083 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.283, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.00947/0.2925, allocations: 7.193 MB / 1.248 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6882/0.9807, allocations: 153.5 MB / 1.398 GB, free: 13.69 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000916/0.9817, allocations: 38.44 kB / 1.398 GB, free: 13.67 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.0008186/0.9825, allocations: 343.2 kB / 1.399 GB, free: 13.37 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.002066/0.9846, allocations: 0.7587 MB / 1.399 GB, free: 12.78 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.002867/0.9875, allocations: 1.383 MB / 1.401 GB, free: 11.71 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.002727/0.9902, allocations: 2.667 MB / 1.403 GB, free: 10.05 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.9916, allocations: 1.036 MB / 1.404 GB, free: 9.41 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001149/0.9928, allocations: 0.8762 MB / 1.405 GB, free: 8.879 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001092/0.9939, allocations: 0.9082 MB / 1.406 GB, free: 8.234 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0002896/0.9942, allocations: 212.1 kB / 1.406 GB, free: 8.234 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00165/0.9958, allocations: 0.9762 MB / 1.407 GB, free: 7.812 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0005315/0.9964, allocations: 0.5384 MB / 1.408 GB, free: 7.383 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0009877/0.9974, allocations: 1.02 MB / 1.409 GB, free: 6.621 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.003412/1.001, allocations: 3.02 MB / 1.412 GB, free: 4.445 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/1.001, allocations: 1 kB / 1.412 GB, free: 4.445 MB / 1.107 GB Notification: Performance of FrontEnd: time 3.486e-06/1.001, allocations: 0 / 1.412 GB, free: 4.445 MB / 1.107 GB Notification: Performance of Transformations before backend: time 2.849e-05/1.001, allocations: 3.938 kB / 1.412 GB, free: 4.441 MB / 1.107 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.00445/1.005, allocations: 2.442 MB / 1.414 GB, free: 2.582 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/1.005, allocations: 12.66 kB / 1.414 GB, free: 2.578 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002787/1.006, allocations: 218.6 kB / 1.414 GB, free: 2.402 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002045/1.008, allocations: 382.2 kB / 1.415 GB, free: 2.219 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002134/1.01, allocations: 1.326 MB / 1.416 GB, free: 1.184 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.274e-05/1.01, allocations: 110.8 kB / 1.416 GB, free: 1.133 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/1.01, allocations: 140.4 kB / 1.416 GB, free: 1.086 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003035/1.013, allocations: 1.66 MB / 1.418 GB, free: 16 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/1.013, allocations: 1.344 kB / 1.418 GB, free: 16 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001536/1.013, allocations: 59.25 kB / 1.418 GB, free: 15.95 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.585e-05/1.013, allocations: 34.97 kB / 1.418 GB, free: 15.95 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003704/1.017, allocations: 2.15 MB / 1.42 GB, free: 14.92 MB / 1.123 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007582/1.025, allocations: 4.921 MB / 1.425 GB, free: 11.07 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003471/1.028, allocations: 1.61 MB / 1.426 GB, free: 9.742 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/1.029, allocations: 0.595 MB / 1.427 GB, free: 9.137 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001295/1.03, allocations: 61.22 kB / 1.427 GB, free: 9.078 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001838/1.031, allocations: 0.9434 MB / 1.428 GB, free: 8.113 MB / 1.123 GB Notification: Performance of pre-optimization done (n=154): time 3.086e-06/1.031, allocations: 0 / 1.428 GB, free: 8.113 MB / 1.123 GB Notification: Performance of matching and sorting (n=154): time 0.006904/1.038, allocations: 2.379 MB / 1.43 GB, free: 5.688 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002035/1.039, allocations: 355.4 kB / 1.431 GB, free: 5.258 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/1.04, allocations: 1.169 MB / 1.432 GB, free: 4.07 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0001206/1.04, allocations: 61.7 kB / 1.432 GB, free: 4.004 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006222/1.041, allocations: 0.6711 MB / 1.433 GB, free: 3.324 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.000455/1.041, allocations: 0.5074 MB / 1.433 GB, free: 2.812 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004684/1.042, allocations: 287.4 kB / 1.433 GB, free: 2.527 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001677/1.042, allocations: 353.9 kB / 1.434 GB, free: 2.176 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/1.043, allocations: 0.4919 MB / 1.434 GB, free: 1.684 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/1.045, allocations: 0.7282 MB / 1.435 GB, free: 0.8906 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002533/1.047, allocations: 1.18 MB / 1.436 GB, free: 15.68 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/1.047, allocations: 8 kB / 1.436 GB, free: 15.68 MB / 1.139 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.004291/1.052, allocations: 1.591 MB / 1.438 GB, free: 14.07 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/1.052, allocations: 5.719 kB / 1.438 GB, free: 14.07 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/1.052, allocations: 7.938 kB / 1.438 GB, free: 14.06 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/1.053, allocations: 173.8 kB / 1.438 GB, free: 13.88 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/1.054, allocations: 307.5 kB / 1.438 GB, free: 13.58 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004368/1.059, allocations: 3.286 MB / 1.441 GB, free: 10.01 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/1.06, allocations: 179 kB / 1.441 GB, free: 9.832 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/1.06, allocations: 65.61 kB / 1.441 GB, free: 9.77 MB / 1.139 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.0007876/1.061, allocations: 414.1 kB / 1.442 GB, free: 9.355 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003606/1.061, allocations: 174.9 kB / 1.442 GB, free: 9.184 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005384/1.067, allocations: 2.17 MB / 1.444 GB, free: 6.996 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/1.067, allocations: 19.98 kB / 1.444 GB, free: 6.977 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/1.067, allocations: 0 / 1.444 GB, free: 6.977 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.22e-05/1.067, allocations: 15.89 kB / 1.444 GB, free: 6.961 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/1.069, allocations: 1.621 MB / 1.446 GB, free: 5.285 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/1.069, allocations: 0 / 1.446 GB, free: 5.285 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/1.07, allocations: 295.6 kB / 1.446 GB, free: 4.996 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009205/1.071, allocations: 141.6 kB / 1.446 GB, free: 4.852 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/1.071, allocations: 51.95 kB / 1.446 GB, free: 4.801 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00415/1.076, allocations: 3.352 MB / 1.449 GB, free: 1.148 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/1.076, allocations: 4.062 kB / 1.449 GB, free: 1.145 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004326/1.08, allocations: 1.832 MB / 1.451 GB, free: 15.28 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007441/1.081, allocations: 483.3 kB / 1.452 GB, free: 14.79 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002302/1.081, allocations: 32 kB / 1.452 GB, free: 14.76 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/1.082, allocations: 134.5 kB / 1.452 GB, free: 14.63 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002703/1.082, allocations: 145.7 kB / 1.452 GB, free: 14.48 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/1.083, allocations: 67.95 kB / 1.452 GB, free: 14.42 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.001166/1.084, allocations: 0.8108 MB / 1.453 GB, free: 13.61 MB / 1.154 GB Notification: Performance of sort global known variables: time 2.074e-06/1.084, allocations: 0 / 1.453 GB, free: 13.61 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.001321/1.085, allocations: 0.5222 MB / 1.453 GB, free: 13.08 MB / 1.154 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.006545/1.092, allocations: 2.932 MB / 1.456 GB, free: 10.3 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.003668/1.095, allocations: 1.61 MB / 1.458 GB, free: 8.668 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.095, allocations: 0 / 1.458 GB, free: 8.668 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.002083/1.097, allocations: 1.043 MB / 1.459 GB, free: 7.602 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/1.1, allocations: 0.5915 MB / 1.459 GB, free: 7.051 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02195/1.122, allocations: 11.24 MB / 1.47 GB, free: 11.6 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/1.123, allocations: 1.333 MB / 1.472 GB, free: 10.24 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.001723/1.125, allocations: 0.5127 MB / 1.472 GB, free: 9.719 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/1.126, allocations: 0.7374 MB / 1.473 GB, free: 8.98 MB / 1.17 GB Notification: Performance of SimCode: time 5.51e-07/1.126, allocations: 0 / 1.473 GB, free: 8.98 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0857/1.212, allocations: 39.75 MB / 1.512 GB, free: 1.68 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.31/15.53, allocations: 7.625 kB / 1.512 GB, free: 1.676 MB / 1.201 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3_res.csv --start-time 0 --stop-time 8.64e+06 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3456 Buildings_latest_Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3.fmu > Buildings_latest_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches