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.004363/0.004363, allocations: 100.6 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.001234/0.001234, allocations: 189.8 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.779/2.779, allocations: 482.4 MB / 0.7548 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 64.09 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2726, allocations: 162.2 MB / 1.241 GB, free: 9.301 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource): time 0.2471/0.5197, allocations: 224.7 MB / 1.461 GB, free: 7.742 MB / 1.186 GB Notification: Performance of NFInst.instExpressions: time 0.01885/0.5386, allocations: 12.67 MB / 1.473 GB, free: 11.05 MB / 1.201 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001146/0.5397, allocations: 75.56 kB / 1.473 GB, free: 10.97 MB / 1.201 GB Notification: Performance of NFTyping.typeComponents: time 0.00247/0.5422, allocations: 1.185 MB / 1.475 GB, free: 9.781 MB / 1.201 GB Notification: Performance of NFTyping.typeBindings: time 0.00628/0.5485, allocations: 3.149 MB / 1.478 GB, free: 6.621 MB / 1.201 GB Notification: Performance of NFTyping.typeClassSections: time 0.003883/0.5524, allocations: 1.82 MB / 1.479 GB, free: 4.812 MB / 1.201 GB Notification: Performance of NFFlatten.flatten: time 0.004633/0.5571, allocations: 4.158 MB / 1.483 GB, free: 0.6367 MB / 1.201 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001756/0.5588, allocations: 1.394 MB / 1.485 GB, free: 15.21 MB / 1.217 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003729/0.5626, allocations: 2.109 MB / 1.487 GB, free: 13.1 MB / 1.217 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001795/0.5644, allocations: 1.371 MB / 1.488 GB, free: 11.73 MB / 1.217 GB Notification: Performance of NFPackage.collectConstants: time 0.0002819/0.5647, allocations: 180 kB / 1.488 GB, free: 11.55 MB / 1.217 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004481/0.5692, allocations: 2.674 MB / 1.491 GB, free: 8.871 MB / 1.217 GB Notification: Performance of NFScalarize.scalarize: time 0.0009076/0.5701, allocations: 0.9736 MB / 1.492 GB, free: 7.895 MB / 1.217 GB Notification: Performance of NFVerifyModel.verify: time 0.001452/0.5715, allocations: 1.438 MB / 1.493 GB, free: 6.449 MB / 1.217 GB Notification: Performance of NFConvertDAE.convert: time 0.005636/0.5772, allocations: 4.776 MB / 1.498 GB, free: 1.656 MB / 1.217 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.5772, allocations: 0 / 1.498 GB, free: 1.656 MB / 1.217 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5772, allocations: 0 / 1.498 GB, free: 1.656 MB / 1.217 GB Notification: Performance of Transformations before backend: time 2.683e-05/0.5772, allocations: 4 kB / 1.498 GB, free: 1.652 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.005518/0.5828, allocations: 3.453 MB / 1.501 GB, free: 14.12 MB / 1.232 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.5828, allocations: 12.03 kB / 1.501 GB, free: 14.11 MB / 1.232 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002294/0.583, allocations: 173 kB / 1.502 GB, free: 13.93 MB / 1.232 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004512/0.5876, allocations: 0.8099 MB / 1.502 GB, free: 13.11 MB / 1.232 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007589/0.5952, allocations: 6.295 MB / 1.508 GB, free: 6.75 MB / 1.232 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.5953, allocations: 115.8 kB / 1.509 GB, free: 6.629 MB / 1.232 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001874/0.5955, allocations: 116 kB / 1.509 GB, free: 6.516 MB / 1.232 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003767/0.5993, allocations: 2.046 MB / 1.511 GB, free: 4.398 MB / 1.232 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.541e-05/0.5993, allocations: 0 / 1.511 GB, free: 4.398 MB / 1.232 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.5995, allocations: 44 kB / 1.511 GB, free: 4.355 MB / 1.232 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.368e-05/0.5995, allocations: 50.06 kB / 1.511 GB, free: 4.305 MB / 1.232 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004978/0.6045, allocations: 2.557 MB / 1.513 GB, free: 1.738 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.01277/0.6173, allocations: 9.494 MB / 1.523 GB, free: 7.934 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004214/0.6215, allocations: 2.14 MB / 1.525 GB, free: 5.75 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00193/0.6235, allocations: 0.9368 MB / 1.526 GB, free: 4.809 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001223/0.6247, allocations: 1.064 MB / 1.527 GB, free: 3.523 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002005/0.6267, allocations: 1.005 MB / 1.528 GB, free: 2.492 MB / 1.248 GB Notification: Performance of pre-optimization done (n=89): time 2.284e-06/0.6267, allocations: 0 / 1.528 GB, free: 2.492 MB / 1.248 GB Notification: Performance of matching and sorting (n=89): time 0.01967/0.6464, allocations: 5.163 MB / 1.533 GB, free: 13.27 MB / 1.264 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.6465, allocations: 149.2 kB / 1.533 GB, free: 13.09 MB / 1.264 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01139/0.6579, allocations: 8.87 MB / 1.541 GB, free: 4.203 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 9.764e-05/0.658, allocations: 45.7 kB / 1.541 GB, free: 4.152 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.001129/0.6592, allocations: 1.111 MB / 1.543 GB, free: 3.031 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003105/0.6595, allocations: 301.4 kB / 1.543 GB, free: 2.734 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004192/0.6599, allocations: 218.5 kB / 1.543 GB, free: 2.512 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.6601, allocations: 349.9 kB / 1.543 GB, free: 2.164 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/0.6622, allocations: 1.084 MB / 1.544 GB, free: 1.082 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5066/1.169, allocations: 1.283 MB / 1.546 GB, free: 301 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003834/1.173, allocations: 2.164 MB / 1.548 GB, free: 300.7 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/1.173, allocations: 2.969 kB / 1.548 GB, free: 300.7 MB / 1.264 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006543/1.179, allocations: 3.332 MB / 1.551 GB, free: 300.3 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 4.797e-05/1.179, allocations: 71.5 kB / 1.551 GB, free: 300.2 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/1.179, allocations: 4.312 kB / 1.551 GB, free: 300.2 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003418/1.183, allocations: 1.68 MB / 1.553 GB, free: 299.8 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/1.184, allocations: 214.5 kB / 1.553 GB, free: 299.8 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003818/1.188, allocations: 4.027 MB / 1.557 GB, free: 297.1 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/1.19, allocations: 251.3 kB / 1.557 GB, free: 297.1 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/1.19, allocations: 50.09 kB / 1.557 GB, free: 297.1 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 (92): * Single equations (assignments): 87 * Array equations: 1 * Algorithm blocks: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,26)} Notification: Performance of prepare postOptimizeDAE: time 0.0008274/1.191, allocations: 0.6503 MB / 1.558 GB, free: 296.7 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003618/1.191, allocations: 279.1 kB / 1.558 GB, free: 296.7 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006089/1.197, allocations: 2.933 MB / 1.561 GB, free: 295.7 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/1.197, allocations: 15.67 kB / 1.561 GB, free: 295.7 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/1.197, allocations: 1.828 kB / 1.561 GB, free: 295.7 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/1.197, allocations: 3.75 kB / 1.561 GB, free: 295.7 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009526/1.207, allocations: 5.618 MB / 1.566 GB, free: 293.5 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/1.207, allocations: 11.61 kB / 1.566 GB, free: 293.5 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008695/1.208, allocations: 130.5 kB / 1.567 GB, free: 293.5 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003231/1.211, allocations: 1.674 MB / 1.568 GB, free: 293.1 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-05/1.211, allocations: 38.89 kB / 1.568 GB, free: 293.1 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003691/1.215, allocations: 4.013 MB / 1.572 GB, free: 290.4 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.215, allocations: 6.094 kB / 1.572 GB, free: 290.4 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00555/1.22, allocations: 2.991 MB / 1.575 GB, free: 289.1 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007623/1.221, allocations: 0.6125 MB / 1.576 GB, free: 288.7 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003394/1.221, allocations: 28.38 kB / 1.576 GB, free: 288.7 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/1.223, allocations: 128.6 kB / 1.576 GB, free: 288.7 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/1.223, allocations: 66.59 kB / 1.576 GB, free: 288.7 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.376e-05/1.223, allocations: 43.19 kB / 1.576 GB, free: 288.7 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.00513/1.228, allocations: 6.823 MB / 1.583 GB, free: 285.7 MB / 1.264 GB Notification: Performance of sort global known variables: time 2.9e-07/1.228, allocations: 0 / 1.583 GB, free: 285.7 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.001369/1.23, allocations: 0.7114 MB / 1.583 GB, free: 285 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 (54): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 5 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,26)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00611/1.236, allocations: 3.945 MB / 1.587 GB, free: 281.5 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.003845/1.24, allocations: 2.483 MB / 1.59 GB, free: 279.2 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.24, allocations: 0 / 1.59 GB, free: 279.2 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.001995/1.242, allocations: 1.281 MB / 1.591 GB, free: 278 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003665/1.245, allocations: 1.017 MB / 1.592 GB, free: 277.3 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03841/1.284, allocations: 40.72 MB / 1.632 GB, free: 236.5 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008672/1.285, allocations: 1.672 MB / 1.633 GB, free: 234.8 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.001171/1.286, allocations: 451.3 kB / 1.634 GB, free: 234.3 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009562/1.287, allocations: 0.9757 MB / 1.635 GB, free: 233.4 MB / 1.264 GB Notification: Performance of SimCode: time 4.31e-07/1.287, allocations: 0 / 1.635 GB, free: 233.4 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09844/1.385, allocations: 75.53 MB / 1.708 GB, free: 158.7 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.96/18.34, allocations: 11.97 kB / 1.708 GB, free: 158.7 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource_res.csv --start-time 0 --stop-time 300 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 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.csv","/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