Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.SkyTemperature.Examples.BlackBody,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SkyTemperature_Examples_BlackBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SkyTemperature_Examples_BlackBody",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.004314/0.004314, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001066/0.001066, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.684/2.684, allocations: 469.4 MB / 0.7421 GB, free: 7.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 67.89 kB / 1.064 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2378, allocations: 159.1 MB / 1.22 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody): time 0.005606/0.2435, allocations: 4.939 MB / 1.225 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.6476/0.8911, allocations: 150.6 MB / 1.372 GB, free: 11.48 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006921/0.8919, allocations: 16.53 kB / 1.372 GB, free: 11.48 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0006416/0.8925, allocations: 196.6 kB / 1.372 GB, free: 11.35 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.001778/0.8943, allocations: 0.5601 MB / 1.372 GB, free: 11.02 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.001906/0.8963, allocations: 0.8529 MB / 1.373 GB, free: 10.58 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.001569/0.8978, allocations: 1.422 MB / 1.375 GB, free: 9.852 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009291/0.8988, allocations: 0.6129 MB / 1.375 GB, free: 9.523 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007579/0.8996, allocations: 0.5001 MB / 1.376 GB, free: 9.273 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007192/0.9003, allocations: 0.511 MB / 1.376 GB, free: 9.008 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0002553/0.9006, allocations: 117.3 kB / 1.376 GB, free: 9.008 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009643/0.9015, allocations: 488.4 kB / 1.377 GB, free: 8.891 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0003069/0.9018, allocations: 300.4 kB / 1.377 GB, free: 8.703 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.000688/0.9025, allocations: 0.5789 MB / 1.378 GB, free: 8.316 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.002034/0.9046, allocations: 1.665 MB / 1.379 GB, free: 7.469 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.9046, allocations: 3.938 kB / 1.379 GB, free: 7.465 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.222e-06/0.9046, allocations: 0 / 1.379 GB, free: 7.465 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.27e-05/0.9047, allocations: 1.062 kB / 1.379 GB, free: 7.465 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.003041/0.9077, allocations: 1.493 MB / 1.381 GB, free: 6.289 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.9078, allocations: 13.78 kB / 1.381 GB, free: 6.285 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001899/0.908, allocations: 146.6 kB / 1.381 GB, free: 6.164 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/0.9093, allocations: 231.7 kB / 1.381 GB, free: 6.055 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.9106, allocations: 0.7774 MB / 1.382 GB, free: 5.414 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.786e-05/0.9107, allocations: 66.91 kB / 1.382 GB, free: 5.387 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.9109, allocations: 92.55 kB / 1.382 GB, free: 5.352 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001829/0.9127, allocations: 0.9824 MB / 1.383 GB, free: 4.707 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.9127, allocations: 0.8125 kB / 1.383 GB, free: 4.707 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.55e-05/0.9128, allocations: 37.41 kB / 1.383 GB, free: 4.68 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.9129, allocations: 21.44 kB / 1.383 GB, free: 4.68 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002039/0.9149, allocations: 1.171 MB / 1.384 GB, free: 4.121 MB / 1.076 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.004467/0.9194, allocations: 3.011 MB / 1.387 GB, free: 1.656 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.9213, allocations: 0.945 MB / 1.388 GB, free: 1.129 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005712/0.9219, allocations: 314.2 kB / 1.388 GB, free: 0.9727 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 7.892e-05/0.922, allocations: 30.88 kB / 1.388 GB, free: 0.9531 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008939/0.9229, allocations: 0.5053 MB / 1.389 GB, free: 0.625 MB / 1.076 GB Notification: Performance of pre-optimization done (n=83): time 3.376e-06/0.9229, allocations: 0 / 1.389 GB, free: 0.625 MB / 1.076 GB Notification: Performance of matching and sorting (n=83): time 0.003324/0.9262, allocations: 1.238 MB / 1.39 GB, free: 15.95 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.629e-05/0.9263, allocations: 190.8 kB / 1.39 GB, free: 15.73 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008538/0.9272, allocations: 0.6266 MB / 1.391 GB, free: 15.37 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 9.665e-05/0.9273, allocations: 42.45 kB / 1.391 GB, free: 15.32 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003041/0.9276, allocations: 427 kB / 1.391 GB, free: 14.95 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.00023/0.9278, allocations: 280.4 kB / 1.392 GB, free: 14.71 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002477/0.9281, allocations: 157.5 kB / 1.392 GB, free: 14.61 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.9283, allocations: 389.8 kB / 1.392 GB, free: 14.24 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005272/0.9288, allocations: 253.4 kB / 1.392 GB, free: 14.12 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006371/0.9294, allocations: 388.2 kB / 1.393 GB, free: 13.86 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.9306, allocations: 0.6214 MB / 1.393 GB, free: 13.5 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.9306, allocations: 1.344 kB / 1.393 GB, free: 13.5 MB / 1.092 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001997/0.9326, allocations: 0.8472 MB / 1.394 GB, free: 13.06 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.9327, allocations: 8.656 kB / 1.394 GB, free: 13.06 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.9327, allocations: 2.844 kB / 1.394 GB, free: 13.06 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005871/0.9333, allocations: 80.56 kB / 1.394 GB, free: 13.02 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006702/0.9339, allocations: 159.7 kB / 1.394 GB, free: 12.98 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001984/0.9359, allocations: 1.633 MB / 1.396 GB, free: 11.38 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007984/0.9368, allocations: 106.7 kB / 1.396 GB, free: 11.3 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.568e-05/0.9368, allocations: 36.83 kB / 1.396 GB, free: 11.29 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 (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,$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 (92): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004266/0.9373, allocations: 264.4 kB / 1.396 GB, free: 11.08 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.9375, allocations: 86.84 kB / 1.396 GB, free: 11.04 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002447/0.9399, allocations: 1.09 MB / 1.397 GB, free: 10.43 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.94, allocations: 9.969 kB / 1.397 GB, free: 10.43 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.94, allocations: 4 kB / 1.398 GB, free: 10.42 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.94, allocations: 13.09 kB / 1.398 GB, free: 10.41 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003655/0.9437, allocations: 2.095 MB / 1.4 GB, free: 8.996 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.9437, allocations: 1.375 kB / 1.4 GB, free: 8.996 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006072/0.9443, allocations: 155.5 kB / 1.4 GB, free: 8.957 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004404/0.9447, allocations: 70.3 kB / 1.4 GB, free: 8.922 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.08e-05/0.9448, allocations: 27.47 kB / 1.4 GB, free: 8.902 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001798/0.9466, allocations: 1.657 MB / 1.401 GB, free: 7.289 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.9467, allocations: 1.125 kB / 1.401 GB, free: 7.289 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.9487, allocations: 1.024 MB / 1.402 GB, free: 6.707 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004369/0.9492, allocations: 279.7 kB / 1.403 GB, free: 6.461 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.9493, allocations: 20.77 kB / 1.403 GB, free: 6.445 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007157/0.9501, allocations: 64.77 kB / 1.403 GB, free: 6.414 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.9502, allocations: 79 kB / 1.403 GB, free: 6.371 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.878e-05/0.9503, allocations: 36.36 kB / 1.403 GB, free: 6.359 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0005678/0.9509, allocations: 462 kB / 1.403 GB, free: 6.094 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.4e-07/0.9509, allocations: 0 / 1.403 GB, free: 6.094 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0008985/0.9518, allocations: 329.4 kB / 1.404 GB, free: 6 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003455/0.9552, allocations: 2.072 MB / 1.406 GB, free: 4.691 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.001655/0.9569, allocations: 0.8181 MB / 1.406 GB, free: 4.27 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.9569, allocations: 7.938 kB / 1.406 GB, free: 4.262 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.000908/0.9579, allocations: 0.5301 MB / 1.407 GB, free: 3.961 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/0.9593, allocations: 329.5 kB / 1.407 GB, free: 3.793 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009954/0.9692, allocations: 6.361 MB / 1.414 GB, free: 14.75 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005586/0.9698, allocations: 1.031 MB / 1.415 GB, free: 13.69 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0008518/0.9707, allocations: 263 kB / 1.415 GB, free: 13.43 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000552/0.9713, allocations: 387.3 kB / 1.415 GB, free: 13.05 MB / 1.107 GB Notification: Performance of SimCode: time 4.2e-07/0.9713, allocations: 4 kB / 1.415 GB, free: 13.05 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04525/1.017, allocations: 22.32 MB / 1.437 GB, free: 7.055 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/13.43, allocations: 7.734 kB / 1.437 GB, free: 7.051 MB / 1.123 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_BoundaryConditions_SkyTemperature_Examples_BlackBody.fmu > Buildings_latest_Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SkyTemperature_Examples_BlackBody.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SkyTemperature.Examples.BlackBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=86400.000000 File[27]=1002.240000 " Variables in the reference:time,TBlaSky.TBlaSky,TBlaSkyIrr.TBlaSky Variables in the result:time,TBlaSky.TBlaSky,TBlaSkyIrr.TBlaSky,weaBus.HDifHor,weaBus.HDirNor,weaBus.HGloHor