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.001829/0.001829, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00197/0.00197, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.424/1.424, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.888/2.888, allocations: 482.4 MB / 0.7543 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 62.31 kB / 0.9233 GB, free: 29.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3442, allocations: 162.2 MB / 1.082 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource): time 0.9369/1.281, allocations: 221.9 MB / 1.298 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02101/1.302, allocations: 12.6 MB / 1.311 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003964/1.306, allocations: 60.59 kB / 1.311 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003834/1.31, allocations: 1.091 MB / 1.312 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.009428/1.32, allocations: 2.943 MB / 1.315 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005804/1.325, allocations: 1.654 MB / 1.316 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.007188/1.333, allocations: 4.176 MB / 1.32 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002731/1.335, allocations: 1.388 MB / 1.322 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005782/1.341, allocations: 2.11 MB / 1.324 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003282/1.344, allocations: 1.491 MB / 1.325 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004915/1.345, allocations: 181.8 kB / 1.325 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006663/1.352, allocations: 2.748 MB / 1.328 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001224/1.353, allocations: 0.9745 MB / 1.329 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002325/1.355, allocations: 1.328 MB / 1.33 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.008637/1.364, allocations: 4.441 MB / 1.335 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/1.364, allocations: 0.8125 kB / 1.335 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.372e-06/1.364, allocations: 0 / 1.335 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.066e-05/1.364, allocations: 2.406 kB / 1.335 GB, free: 3.84 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.006024/1.37, allocations: 3.049 MB / 1.338 GB, free: 17.91 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/1.37, allocations: 8.781 kB / 1.338 GB, free: 17.91 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004305/1.374, allocations: 0.7803 MB / 1.338 GB, free: 17.75 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003818/1.378, allocations: 2.477 MB / 1.341 GB, free: 16.54 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006826/1.379, allocations: 231.9 kB / 1.341 GB, free: 16.46 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001798/1.379, allocations: 110.7 kB / 1.341 GB, free: 16.43 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003162/1.382, allocations: 2.055 MB / 1.343 GB, free: 15.63 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/1.382, allocations: 7.5 kB / 1.343 GB, free: 15.63 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/1.382, allocations: 48.53 kB / 1.343 GB, free: 15.59 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.024e-05/1.383, allocations: 42.39 kB / 1.343 GB, free: 15.59 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004147/1.387, allocations: 2.572 MB / 1.346 GB, free: 14.8 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.01377/1.4, allocations: 8.113 MB / 1.354 GB, free: 10.3 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003967/1.404, allocations: 2.164 MB / 1.356 GB, free: 9.488 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00169/1.406, allocations: 0.9396 MB / 1.357 GB, free: 9.191 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001356/1.408, allocations: 1.061 MB / 1.358 GB, free: 8.047 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001872/1.409, allocations: 1.022 MB / 1.359 GB, free: 7.656 MB / 1.014 GB Notification: Performance of pre-optimization done (n=89): time 3.286e-06/1.409, allocations: 0 / 1.359 GB, free: 7.656 MB / 1.014 GB Notification: Performance of matching and sorting (n=89): time 0.01876/1.428, allocations: 5.141 MB / 1.364 GB, free: 6.219 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/1.428, allocations: 144.9 kB / 1.364 GB, free: 6.062 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006135/1.435, allocations: 3.961 MB / 1.368 GB, free: 4.293 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0003311/1.435, allocations: 44.55 kB / 1.368 GB, free: 4.25 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001092/1.436, allocations: 1.008 MB / 1.369 GB, free: 3.367 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005217/1.437, allocations: 292.5 kB / 1.369 GB, free: 3.121 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004512/1.437, allocations: 216.9 kB / 1.369 GB, free: 3 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001884/1.437, allocations: 342.6 kB / 1.37 GB, free: 2.668 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001883/1.439, allocations: 1.095 MB / 1.371 GB, free: 2.199 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002158/1.441, allocations: 1.301 MB / 1.372 GB, free: 1.504 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00352/1.445, allocations: 2.177 MB / 1.374 GB, free: 376 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/1.445, allocations: 0 / 1.374 GB, free: 376 kB / 1.014 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00629/1.451, allocations: 3.31 MB / 1.377 GB, free: 14.89 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.965e-05/1.451, allocations: 77.84 kB / 1.377 GB, free: 14.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/1.451, allocations: 5.281 kB / 1.377 GB, free: 14.82 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003445/1.455, allocations: 1.622 MB / 1.379 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/1.456, allocations: 220.5 kB / 1.379 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004816/1.461, allocations: 3.879 MB / 1.383 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002865/1.463, allocations: 267.4 kB / 1.383 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001834/1.464, allocations: 57 kB / 1.383 GB, free: 11.1 MB / 1.029 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.001206/1.465, allocations: 0.653 MB / 1.384 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006579/1.466, allocations: 241.3 kB / 1.384 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006824/1.472, allocations: 2.926 MB / 1.387 GB, free: 7.516 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.366e-05/1.472, allocations: 11.94 kB / 1.387 GB, free: 7.504 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/1.472, allocations: 4 kB / 1.387 GB, free: 7.5 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/1.472, allocations: 4.078 kB / 1.387 GB, free: 7.496 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/1.485, allocations: 5.319 MB / 1.392 GB, free: 2.113 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/1.485, allocations: 4.344 kB / 1.392 GB, free: 2.109 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008869/1.486, allocations: 137 kB / 1.392 GB, free: 1.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003632/1.49, allocations: 1.602 MB / 1.394 GB, free: 380 kB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001769/1.49, allocations: 35.97 kB / 1.394 GB, free: 344 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004934/1.495, allocations: 3.878 MB / 1.398 GB, free: 12.3 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.301e-06/1.495, allocations: 6.625 kB / 1.398 GB, free: 12.3 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006959/1.502, allocations: 2.96 MB / 1.401 GB, free: 9.27 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001952/1.504, allocations: 0.4977 MB / 1.401 GB, free: 8.75 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004922/1.504, allocations: 27.98 kB / 1.401 GB, free: 8.723 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/1.506, allocations: 143.8 kB / 1.401 GB, free: 8.582 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/1.506, allocations: 74.94 kB / 1.401 GB, free: 8.512 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/1.506, allocations: 43.97 kB / 1.401 GB, free: 8.469 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.004243/1.511, allocations: 2.899 MB / 1.404 GB, free: 5.562 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.31e-07/1.511, allocations: 10.56 kB / 1.404 GB, free: 5.555 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.002537/1.513, allocations: 0.6829 MB / 1.405 GB, free: 4.871 MB / 1.045 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.001306/1.515, allocations: 0.4898 MB / 1.405 GB, free: 4.406 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.005258/1.52, allocations: 2.527 MB / 1.408 GB, free: 1.871 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/1.52, allocations: 0 / 1.408 GB, free: 1.871 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.002441/1.522, allocations: 1.27 MB / 1.409 GB, free: 0.5742 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005002/1.527, allocations: 1.002 MB / 1.41 GB, free: 15.58 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/1.537, allocations: 5.4 MB / 1.415 GB, free: 10.14 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001523/1.539, allocations: 1.676 MB / 1.417 GB, free: 8.43 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001876/1.541, allocations: 388 kB / 1.417 GB, free: 8.051 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004296/1.541, allocations: 143.4 kB / 1.418 GB, free: 7.91 MB / 1.061 GB Notification: Performance of SimCode: time 1.212e-06/1.541, allocations: 3.938 kB / 1.418 GB, free: 7.906 MB / 1.061 GB Notification: Performance of Templates: time 0.09201/1.633, allocations: 49.89 MB / 1.466 GB, free: 6.711 MB / 1.107 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/jenkins/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