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: translateModel(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mHot_flow_set.y|souHot.T_in|orc.cyc.TWorEva|orc.cyc.mWor_flow|orc.cyc.mWor_flow_max|orc.cyc.mWor_flow_min|orc.cyc.dTPinEva|orc.cyc.dTPinEva_set|orc.ena|orc.on_actual",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource") translateModel(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mHot_flow_set.y|souHot.T_in|orc.cyc.TWorEva|orc.cyc.mWor_flow|orc.cyc.mWor_flow_max|orc.cyc.mWor_flow_min|orc.cyc.dTPinEva|orc.cyc.dTPinEva_set|orc.ena|orc.on_actual",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001224/0.001224, allocations: 187.6 kB / 17.2 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.345/1.345, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.668/2.668, allocations: 482.4 MB / 0.7553 GB, free: 6.992 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 68.53 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8028/0.8048, allocations: 162.2 MB / 1.083 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource): time 0.2766/1.081, allocations: 224.7 MB / 1.302 GB, free: 13.49 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0208/1.102, allocations: 12.67 MB / 1.315 GB, free: 0.793 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003286/1.106, allocations: 75.62 kB / 1.315 GB, free: 0.7188 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.003769/1.109, allocations: 1.193 MB / 1.316 GB, free: 15.52 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.008901/1.118, allocations: 3.142 MB / 1.319 GB, free: 12.37 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.005054/1.123, allocations: 1.799 MB / 1.321 GB, free: 10.58 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.006641/1.13, allocations: 4.152 MB / 1.325 GB, free: 6.414 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002223/1.132, allocations: 1.405 MB / 1.326 GB, free: 4.98 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005198/1.138, allocations: 2.095 MB / 1.328 GB, free: 2.883 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002743/1.14, allocations: 1.373 MB / 1.33 GB, free: 1.504 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.000416/1.141, allocations: 180 kB / 1.33 GB, free: 1.328 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00593/1.147, allocations: 2.667 MB / 1.332 GB, free: 14.66 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.001146/1.148, allocations: 0.9659 MB / 1.333 GB, free: 13.69 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.001807/1.15, allocations: 1.321 MB / 1.335 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.006902/1.157, allocations: 4.319 MB / 1.339 GB, free: 8.027 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/1.157, allocations: 0 / 1.339 GB, free: 8.027 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.233e-06/1.157, allocations: 0 / 1.339 GB, free: 8.027 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.992e-05/1.157, allocations: 0 / 1.339 GB, free: 8.027 MB / 1.061 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.005688/1.162, allocations: 3.062 MB / 1.342 GB, free: 4.887 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/1.162, allocations: 12.03 kB / 1.342 GB, free: 4.875 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004384/1.167, allocations: 0.7773 MB / 1.343 GB, free: 4.094 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004021/1.171, allocations: 2.447 MB / 1.345 GB, free: 1.574 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007161/1.172, allocations: 235.6 kB / 1.345 GB, free: 1.336 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/1.172, allocations: 112 kB / 1.345 GB, free: 1.227 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003735/1.176, allocations: 2.058 MB / 1.347 GB, free: 15.1 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/1.176, allocations: 4 kB / 1.347 GB, free: 15.09 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/1.176, allocations: 44 kB / 1.347 GB, free: 15.05 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.198e-05/1.176, allocations: 46.06 kB / 1.347 GB, free: 15 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004783/1.181, allocations: 2.569 MB / 1.35 GB, free: 12.43 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.01262/1.193, allocations: 8.151 MB / 1.358 GB, free: 3.957 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004154/1.197, allocations: 2.16 MB / 1.36 GB, free: 1.754 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001858/1.199, allocations: 0.9366 MB / 1.361 GB, free: 0.8164 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001325/1.201, allocations: 1.068 MB / 1.362 GB, free: 15.52 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001992/1.203, allocations: 1.008 MB / 1.363 GB, free: 14.49 MB / 1.092 GB Notification: Performance of pre-optimization done (n=89): time 3.176e-06/1.203, allocations: 0 / 1.363 GB, free: 14.49 MB / 1.092 GB Notification: Performance of matching and sorting (n=89): time 0.01888/1.221, allocations: 5.143 MB / 1.368 GB, free: 9.281 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/1.222, allocations: 145.2 kB / 1.368 GB, free: 9.105 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005825/1.227, allocations: 3.964 MB / 1.372 GB, free: 5.129 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0002137/1.228, allocations: 49.69 kB / 1.372 GB, free: 5.074 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.001021/1.229, allocations: 1.003 MB / 1.373 GB, free: 4.062 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003719/1.229, allocations: 295.8 kB / 1.373 GB, free: 3.77 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004002/1.23, allocations: 214.5 kB / 1.373 GB, free: 3.555 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001668/1.23, allocations: 345.9 kB / 1.374 GB, free: 3.211 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/1.232, allocations: 1.088 MB / 1.375 GB, free: 2.121 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002283/1.234, allocations: 1.305 MB / 1.376 GB, free: 0.75 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003904/1.238, allocations: 2.182 MB / 1.378 GB, free: 14.48 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/1.238, allocations: 0 / 1.378 GB, free: 14.48 MB / 1.107 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006371/1.244, allocations: 3.311 MB / 1.382 GB, free: 11.14 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 7.821e-05/1.244, allocations: 75.64 kB / 1.382 GB, free: 11.05 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/1.244, allocations: 8 kB / 1.382 GB, free: 11.05 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003574/1.248, allocations: 1.626 MB / 1.383 GB, free: 9.414 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/1.249, allocations: 211.7 kB / 1.383 GB, free: 9.207 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004815/1.254, allocations: 3.892 MB / 1.387 GB, free: 5.148 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002249/1.256, allocations: 246.6 kB / 1.387 GB, free: 4.906 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/1.257, allocations: 51.97 kB / 1.387 GB, free: 4.855 MB / 1.107 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.001114/1.258, allocations: 0.6501 MB / 1.388 GB, free: 4.184 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005786/1.258, allocations: 245 kB / 1.388 GB, free: 3.941 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00658/1.265, allocations: 2.924 MB / 1.391 GB, free: 0.9883 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/1.265, allocations: 11.94 kB / 1.391 GB, free: 0.9766 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.265, allocations: 0 / 1.391 GB, free: 0.9766 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/1.265, allocations: 11.92 kB / 1.391 GB, free: 0.9648 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/1.276, allocations: 5.311 MB / 1.396 GB, free: 11.54 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/1.276, allocations: 0 / 1.396 GB, free: 11.54 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000852/1.277, allocations: 136.1 kB / 1.397 GB, free: 11.41 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003361/1.28, allocations: 1.61 MB / 1.398 GB, free: 9.793 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/1.28, allocations: 31.98 kB / 1.398 GB, free: 9.762 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004662/1.285, allocations: 3.872 MB / 1.402 GB, free: 5.723 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/1.285, allocations: 7.938 kB / 1.402 GB, free: 5.715 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006647/1.291, allocations: 2.959 MB / 1.405 GB, free: 2.684 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/1.293, allocations: 0.4978 MB / 1.405 GB, free: 2.164 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003674/1.293, allocations: 28 kB / 1.405 GB, free: 2.137 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/1.295, allocations: 123.8 kB / 1.405 GB, free: 2.016 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/1.295, allocations: 72.45 kB / 1.406 GB, free: 1.945 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/1.295, allocations: 47.97 kB / 1.406 GB, free: 1.898 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.004073/1.299, allocations: 2.915 MB / 1.408 GB, free: 14.98 MB / 1.139 GB Notification: Performance of sort global known variables: time 3.01e-07/1.299, allocations: 0 / 1.408 GB, free: 14.98 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.002125/1.301, allocations: 0.6791 MB / 1.409 GB, free: 14.3 MB / 1.139 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.001189/1.302, allocations: 0.5069 MB / 1.41 GB, free: 13.79 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.005198/1.308, allocations: 2.523 MB / 1.412 GB, free: 11.23 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/1.308, allocations: 4.375 kB / 1.412 GB, free: 11.23 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.002507/1.31, allocations: 1.286 MB / 1.413 GB, free: 9.902 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004632/1.315, allocations: 0.9925 MB / 1.414 GB, free: 8.922 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009267/1.324, allocations: 4.569 MB / 1.419 GB, free: 4.289 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/1.326, allocations: 1.594 MB / 1.42 GB, free: 2.664 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006686/1.326, allocations: 147.4 kB / 1.42 GB, free: 2.52 MB / 1.139 GB Notification: Performance of SimCode: time 6.21e-07/1.326, allocations: 0 / 1.42 GB, free: 2.52 MB / 1.139 GB Notification: Performance of Templates: time 0.07457/1.401, allocations: 53.96 MB / 1.473 GB, free: 12.8 MB / 1.201 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource.makefile (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 & ./Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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) "" Variables in the reference:time,mHot_flow_set.y,souHot.T_in,orc.cyc.TWorEva,orc.cyc.mWor_flow,orc.cyc.mWor_flow_max,orc.cyc.mWor_flow_min,orc.cyc.dTPinEva,orc.cyc.dTPinEva_set,orc.ena,orc.on_actual Variables in the result:mHot_flow_set.y,orc.cyc.TWorEva,orc.cyc.dTPinEva,orc.cyc.dTPinEva_set,orc.cyc.mWor_flow,orc.cyc.mWor_flow_max,orc.cyc.mWor_flow_min,orc.ena,orc.on_actual,souHot.T_in,time