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.001593/0.001593, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 196.5 kB / 16.54 MB, free: 6.664 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.4/1.4, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.869/2.869, allocations: 482.6 MB / 0.7549 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 66.39 kB / 0.9242 GB, free: 29.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.265, allocations: 162.3 MB / 1.083 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource): time 0.6762/0.9411, allocations: 224.8 MB / 1.302 GB, free: 7.359 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01559/0.9568, allocations: 12.68 MB / 1.315 GB, free: 7.109 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001752/0.9585, allocations: 70.53 kB / 1.315 GB, free: 7.109 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.9608, allocations: 1.194 MB / 1.316 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005717/0.9665, allocations: 3.147 MB / 1.319 GB, free: 6.973 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003684/0.9702, allocations: 1.806 MB / 1.321 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003689/0.9739, allocations: 4.185 MB / 1.325 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001465/0.9754, allocations: 1.401 MB / 1.326 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003411/0.9788, allocations: 2.11 MB / 1.328 GB, free: 6.48 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001363/0.9802, allocations: 1.368 MB / 1.33 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002625/0.9804, allocations: 180.1 kB / 1.33 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004234/0.9847, allocations: 2.667 MB / 1.332 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006334/0.9853, allocations: 0.9828 MB / 1.333 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001097/0.9864, allocations: 1.441 MB / 1.335 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00427/0.9907, allocations: 4.734 MB / 1.339 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.9907, allocations: 0 / 1.339 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.092e-06/0.9907, allocations: 3.531 kB / 1.339 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.452e-05/0.9908, allocations: 3.719 kB / 1.339 GB, free: 2.82 MB / 0.9981 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.004562/0.9953, allocations: 3.366 MB / 1.343 GB, free: 16.71 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.9954, allocations: 8.188 kB / 1.343 GB, free: 16.71 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001772/0.9956, allocations: 169.5 kB / 1.343 GB, free: 16.6 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004266/0.9998, allocations: 0.8014 MB / 1.344 GB, free: 16.44 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00583/1.006, allocations: 6.221 MB / 1.35 GB, free: 13.75 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006976/1.006, allocations: 228.2 kB / 1.35 GB, free: 13.67 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/1.007, allocations: 117.5 kB / 1.35 GB, free: 13.63 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003311/1.01, allocations: 2.06 MB / 1.352 GB, free: 12.84 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/1.01, allocations: 0 / 1.352 GB, free: 12.84 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/1.01, allocations: 45.97 kB / 1.352 GB, free: 12.8 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-05/1.01, allocations: 44.56 kB / 1.352 GB, free: 12.8 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004424/1.015, allocations: 2.58 MB / 1.355 GB, free: 12 MB / 1.014 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.01133/1.026, allocations: 9.555 MB / 1.364 GB, free: 7.059 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0038/1.03, allocations: 2.187 MB / 1.366 GB, free: 6.234 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00171/1.031, allocations: 0.9469 MB / 1.367 GB, free: 5.91 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001162/1.033, allocations: 1.06 MB / 1.368 GB, free: 4.727 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001819/1.034, allocations: 1.025 MB / 1.369 GB, free: 4.164 MB / 1.014 GB Notification: Performance of pre-optimization done (n=91): time 2.384e-06/1.034, allocations: 0 / 1.369 GB, free: 4.164 MB / 1.014 GB Notification: Performance of matching and sorting (n=91): time 0.02247/1.057, allocations: 5.959 MB / 1.375 GB, free: 1.195 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.73e-05/1.057, allocations: 150.3 kB / 1.375 GB, free: 1.031 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009917/1.067, allocations: 8.899 MB / 1.384 GB, free: 12.95 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 9.538e-05/1.067, allocations: 42.33 kB / 1.384 GB, free: 12.91 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001054/1.068, allocations: 1.099 MB / 1.385 GB, free: 11.95 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.000295/1.068, allocations: 298.5 kB / 1.385 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003918/1.069, allocations: 221.7 kB / 1.385 GB, free: 11.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001578/1.069, allocations: 344.1 kB / 1.386 GB, free: 11.23 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002095/1.071, allocations: 1.098 MB / 1.387 GB, free: 10.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002363/1.073, allocations: 1.316 MB / 1.388 GB, free: 8.957 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00402/1.077, allocations: 2.192 MB / 1.39 GB, free: 6.699 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/1.078, allocations: 4 kB / 1.39 GB, free: 6.695 MB / 1.029 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00854/1.086, allocations: 3.708 MB / 1.394 GB, free: 2.98 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.336e-05/1.086, allocations: 77.25 kB / 1.394 GB, free: 2.895 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/1.086, allocations: 4 kB / 1.394 GB, free: 2.891 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00465/1.091, allocations: 1.983 MB / 1.396 GB, free: 0.8984 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/1.092, allocations: 183.6 kB / 1.396 GB, free: 0.7266 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009541/1.101, allocations: 6.798 MB / 1.403 GB, free: 9.617 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/1.103, allocations: 254.5 kB / 1.403 GB, free: 9.367 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/1.104, allocations: 47.98 kB / 1.403 GB, free: 9.32 MB / 1.045 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.0009277/1.104, allocations: 0.6698 MB / 1.403 GB, free: 8.641 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004566/1.105, allocations: 264.7 kB / 1.404 GB, free: 8.379 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008324/1.113, allocations: 3.218 MB / 1.407 GB, free: 5.137 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/1.113, allocations: 15.98 kB / 1.407 GB, free: 5.121 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/1.113, allocations: 0 / 1.407 GB, free: 5.121 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/1.113, allocations: 3.984 kB / 1.407 GB, free: 5.117 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/1.126, allocations: 5.914 MB / 1.413 GB, free: 15.12 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/1.126, allocations: 4 kB / 1.413 GB, free: 15.12 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007067/1.127, allocations: 101.3 kB / 1.413 GB, free: 15.03 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004562/1.131, allocations: 1.969 MB / 1.415 GB, free: 13.05 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-05/1.131, allocations: 27.98 kB / 1.415 GB, free: 13.02 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009208/1.141, allocations: 6.731 MB / 1.421 GB, free: 5.973 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.141, allocations: 4 kB / 1.421 GB, free: 5.969 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007908/1.148, allocations: 3.283 MB / 1.424 GB, free: 2.617 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/1.15, allocations: 0.6066 MB / 1.425 GB, free: 1.988 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000401/1.15, allocations: 31.98 kB / 1.425 GB, free: 1.957 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001705/1.152, allocations: 127.9 kB / 1.425 GB, free: 1.832 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/1.152, allocations: 69.62 kB / 1.425 GB, free: 1.77 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/1.152, allocations: 52 kB / 1.425 GB, free: 1.719 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.007611/1.16, allocations: 6.835 MB / 1.432 GB, free: 10.88 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.9e-07/1.16, allocations: 0 / 1.432 GB, free: 10.88 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.001923/1.161, allocations: 0.7376 MB / 1.433 GB, free: 10.14 MB / 1.076 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.009323/1.171, allocations: 4.227 MB / 1.437 GB, free: 5.879 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.005452/1.176, allocations: 2.688 MB / 1.439 GB, free: 3.168 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/1.176, allocations: 0 / 1.439 GB, free: 3.168 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.002764/1.179, allocations: 1.423 MB / 1.441 GB, free: 1.715 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004288/1.183, allocations: 1.027 MB / 1.442 GB, free: 0.7031 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06448/1.248, allocations: 45.32 MB / 1.486 GB, free: 1.547 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/1.249, allocations: 1.68 MB / 1.488 GB, free: 15.83 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.001399/1.251, allocations: 434.8 kB / 1.488 GB, free: 15.4 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001289/1.252, allocations: 0.9561 MB / 1.489 GB, free: 14.45 MB / 1.139 GB Notification: Performance of SimCode: time 3.21e-07/1.252, allocations: 0 / 1.489 GB, free: 14.45 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.14/1.392, allocations: 80.69 MB / 1.568 GB, free: 14.69 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/14.47, allocations: 15.5 kB / 1.568 GB, free: 14.68 MB / 1.217 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