Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource.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.Fluid.CHPs.OrganicRankine.Validation.VariableSource,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_OrganicRankine_Validation_VariableSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_OrganicRankine_Validation_VariableSource",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.00676/0.00676, allocations: 98.66 kB / 15.73 MB, free: 6.066 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.001791/0.001791, allocations: 195.4 kB / 16.67 MB, free: 5.973 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.673/2.673, allocations: 482.6 MB / 0.7551 GB, free: 6.656 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.003074/0.003074, allocations: 74.64 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2959, allocations: 162.3 MB / 1.242 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource): time 0.2226/0.5186, allocations: 224.8 MB / 1.461 GB, free: 7.324 MB / 1.186 GB Notification: Performance of NFInst.instExpressions: time 0.01754/0.5362, allocations: 12.7 MB / 1.474 GB, free: 10.6 MB / 1.201 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.5379, allocations: 67.62 kB / 1.474 GB, free: 10.54 MB / 1.201 GB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.5405, allocations: 1.197 MB / 1.475 GB, free: 9.332 MB / 1.201 GB Notification: Performance of NFTyping.typeBindings: time 0.006847/0.5473, allocations: 3.149 MB / 1.478 GB, free: 6.172 MB / 1.201 GB Notification: Performance of NFTyping.typeClassSections: time 0.00403/0.5514, allocations: 1.822 MB / 1.48 GB, free: 4.359 MB / 1.201 GB Notification: Performance of NFFlatten.flatten: time 0.004862/0.5562, allocations: 4.179 MB / 1.484 GB, free: 168 kB / 1.201 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001716/0.558, allocations: 1.398 MB / 1.485 GB, free: 14.73 MB / 1.217 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003972/0.5619, allocations: 2.119 MB / 1.487 GB, free: 12.61 MB / 1.217 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001798/0.5638, allocations: 1.373 MB / 1.489 GB, free: 11.23 MB / 1.217 GB Notification: Performance of NFPackage.collectConstants: time 0.0002653/0.564, allocations: 180 kB / 1.489 GB, free: 11.06 MB / 1.217 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004535/0.5686, allocations: 2.678 MB / 1.491 GB, free: 8.375 MB / 1.217 GB Notification: Performance of NFScalarize.scalarize: time 0.0008183/0.5694, allocations: 0.9775 MB / 1.492 GB, free: 7.395 MB / 1.217 GB Notification: Performance of NFVerifyModel.verify: time 0.001405/0.5708, allocations: 1.446 MB / 1.494 GB, free: 5.941 MB / 1.217 GB Notification: Performance of NFConvertDAE.convert: time 0.005784/0.5766, allocations: 4.803 MB / 1.499 GB, free: 1.121 MB / 1.217 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.5766, allocations: 0 / 1.499 GB, free: 1.121 MB / 1.217 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5766, allocations: 0 / 1.499 GB, free: 1.121 MB / 1.217 GB Notification: Performance of Transformations before backend: time 3.006e-05/0.5767, allocations: 0 / 1.499 GB, free: 1.121 MB / 1.217 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.005169/0.5818, allocations: 3.461 MB / 1.502 GB, free: 13.58 MB / 1.232 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.5819, allocations: 8.031 kB / 1.502 GB, free: 13.57 MB / 1.232 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002184/0.5821, allocations: 181 kB / 1.502 GB, free: 13.38 MB / 1.232 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004313/0.5864, allocations: 0.8138 MB / 1.503 GB, free: 12.57 MB / 1.232 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008281/0.5947, allocations: 6.303 MB / 1.509 GB, free: 6.195 MB / 1.232 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.5949, allocations: 123.8 kB / 1.509 GB, free: 6.066 MB / 1.232 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001821/0.5951, allocations: 104 kB / 1.509 GB, free: 5.965 MB / 1.232 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003583/0.5987, allocations: 2.062 MB / 1.511 GB, free: 3.832 MB / 1.232 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.5987, allocations: 3.938 kB / 1.511 GB, free: 3.828 MB / 1.232 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.5989, allocations: 44 kB / 1.511 GB, free: 3.785 MB / 1.232 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.714e-05/0.5989, allocations: 38.08 kB / 1.511 GB, free: 3.746 MB / 1.232 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00441/0.6033, allocations: 2.565 MB / 1.514 GB, free: 1.172 MB / 1.232 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.01161/0.615, allocations: 9.514 MB / 1.523 GB, free: 7.352 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003779/0.6187, allocations: 2.168 MB / 1.525 GB, free: 5.141 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/0.6205, allocations: 0.9444 MB / 1.526 GB, free: 4.188 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001092/0.6216, allocations: 1.056 MB / 1.527 GB, free: 2.91 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001794/0.6234, allocations: 1.02 MB / 1.528 GB, free: 1.867 MB / 1.248 GB Notification: Performance of pre-optimization done (n=91): time 2.415e-06/0.6234, allocations: 4 kB / 1.528 GB, free: 1.863 MB / 1.248 GB Notification: Performance of matching and sorting (n=91): time 0.02158/0.645, allocations: 5.963 MB / 1.534 GB, free: 11.79 MB / 1.264 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.875e-05/0.6452, allocations: 149.2 kB / 1.534 GB, free: 11.61 MB / 1.264 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01059/0.6558, allocations: 8.887 MB / 1.543 GB, free: 2.711 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 0.0001774/0.656, allocations: 45.7 kB / 1.543 GB, free: 2.66 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009975/0.657, allocations: 1.115 MB / 1.544 GB, free: 1.535 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.000309/0.6573, allocations: 309.4 kB / 1.544 GB, free: 1.23 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003779/0.6577, allocations: 214.5 kB / 1.545 GB, free: 1.012 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.6578, allocations: 357.9 kB / 1.545 GB, free: 0.6562 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5033/1.161, allocations: 1.084 MB / 1.546 GB, free: 301.7 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002116/1.163, allocations: 1.297 MB / 1.547 GB, free: 301.5 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003353/1.167, allocations: 2.182 MB / 1.549 GB, free: 301.1 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/1.167, allocations: 1.594 kB / 1.549 GB, free: 301.1 MB / 1.264 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.007814/1.174, allocations: 3.7 MB / 1.553 GB, free: 300.1 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/1.175, allocations: 75.58 kB / 1.553 GB, free: 300 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/1.175, allocations: 4.406 kB / 1.553 GB, free: 300 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003964/1.179, allocations: 1.98 MB / 1.555 GB, free: 299.5 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008321/1.179, allocations: 183.5 kB / 1.555 GB, free: 299.5 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006906/1.186, allocations: 6.794 MB / 1.562 GB, free: 294.6 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/1.188, allocations: 241.2 kB / 1.562 GB, free: 294.6 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/1.188, allocations: 51.7 kB / 1.562 GB, free: 294.6 MB / 1.264 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 17 (THotIn_set.nextEventScaled,THotIn_set.nextEvent,$PRE.THotIn_set.nextEvent,THotIn_set.last,THotIn_set.b,THotIn_set.a,mHot_flow_set.nextEventScaled,mHot_flow_set.nextEvent,$PRE.mHot_flow_set.nextEvent,mHot_flow_set.last,mHot_flow_set.b,mHot_flow_set.a,orc.cyc.hys.y,$PRE.orc.cyc.hys.y,orc.on_actual,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 79 * Array equations: 1 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (4,26)} Notification: Performance of prepare postOptimizeDAE: time 0.0008157/1.189, allocations: 0.6677 MB / 1.563 GB, free: 294.2 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003481/1.189, allocations: 281.5 kB / 1.563 GB, free: 294.1 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006832/1.196, allocations: 3.21 MB / 1.566 GB, free: 293.1 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/1.196, allocations: 17.56 kB / 1.566 GB, free: 293.1 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/1.196, allocations: 0.9688 kB / 1.566 GB, free: 293.1 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/1.196, allocations: 5.016 kB / 1.566 GB, free: 293.1 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/1.206, allocations: 5.894 MB / 1.572 GB, free: 290.8 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/1.206, allocations: 3.562 kB / 1.572 GB, free: 290.8 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/1.207, allocations: 99.16 kB / 1.572 GB, free: 290.8 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003667/1.211, allocations: 1.97 MB / 1.574 GB, free: 290.3 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-05/1.211, allocations: 39.17 kB / 1.574 GB, free: 290.3 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006074/1.217, allocations: 6.72 MB / 1.58 GB, free: 285.3 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.217, allocations: 7.875 kB / 1.58 GB, free: 285.3 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006122/1.223, allocations: 3.291 MB / 1.584 GB, free: 284 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006793/1.224, allocations: 0.618 MB / 1.584 GB, free: 283.6 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002949/1.224, allocations: 40.03 kB / 1.584 GB, free: 283.6 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/1.225, allocations: 126 kB / 1.584 GB, free: 283.6 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/1.226, allocations: 72.42 kB / 1.585 GB, free: 283.6 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.93e-05/1.226, allocations: 47.23 kB / 1.585 GB, free: 283.6 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.004237/1.23, allocations: 6.832 MB / 1.591 GB, free: 278 MB / 1.264 GB Notification: Performance of sort global known variables: time 6.51e-07/1.23, allocations: 0 / 1.591 GB, free: 278 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.001368/1.231, allocations: 0.7328 MB / 1.592 GB, free: 277.3 MB / 1.264 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,orc.on_actual,orc.cyc.hys.y,mHot_flow_set.a,mHot_flow_set.b,mHot_flow_set.last,mHot_flow_set.nextEvent,mHot_flow_set.nextEventScaled,THotIn_set.a,THotIn_set.b,THotIn_set.last,THotIn_set.nextEvent,THotIn_set.nextEventScaled) * Number of discrete states: 13 (THotIn_set.nextEvent,THotIn_set.last,THotIn_set.nextEventScaled,THotIn_set.b,THotIn_set.a,$whenCondition2,mHot_flow_set.nextEvent,mHot_flow_set.last,mHot_flow_set.nextEventScaled,mHot_flow_set.b,mHot_flow_set.a,$whenCondition1,orc.cyc.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (4,26)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006467/1.238, allocations: 4.254 MB / 1.596 GB, free: 273.4 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.003656/1.241, allocations: 2.641 MB / 1.599 GB, free: 270.7 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.241, allocations: 0 / 1.599 GB, free: 270.7 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.001881/1.243, allocations: 1.425 MB / 1.6 GB, free: 269.3 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003303/1.247, allocations: 1.017 MB / 1.601 GB, free: 268.3 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03792/1.285, allocations: 41.51 MB / 1.642 GB, free: 226.4 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007898/1.285, allocations: 1.692 MB / 1.643 GB, free: 224.7 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.001084/1.286, allocations: 430.9 kB / 1.644 GB, free: 224.2 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008077/1.287, allocations: 0.9561 MB / 1.645 GB, free: 223.3 MB / 1.264 GB Notification: Performance of SimCode: time 5.31e-07/1.287, allocations: 0 / 1.645 GB, free: 223.3 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.68/3.967, allocations: 78.41 MB / 1.721 GB, free: 145.8 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.79/26.76, allocations: 7.922 kB / 1.721 GB, free: 145.8 MB / 1.264 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_OrganicRankine_Validation_VariableSource_fmu --startTime=0 --stopTime=300 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_CHPs_OrganicRankine_Validation_VariableSource.fmu > Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_OrganicRankine_Validation_VariableSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches