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.001798/0.001798, 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.001991/0.001991, allocations: 195.9 kB / 16.53 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.514/1.514, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.883/2.883, allocations: 482.3 MB / 0.7546 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 63.08 kB / 0.9238 GB, free: 29.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.304, allocations: 162.2 MB / 1.082 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource): time 0.7644/1.068, allocations: 224.7 MB / 1.302 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01713/1.086, allocations: 12.66 MB / 1.314 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003025/1.089, allocations: 66.53 kB / 1.314 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002863/1.092, allocations: 1.198 MB / 1.315 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.008274/1.1, allocations: 3.147 MB / 1.318 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004948/1.105, allocations: 1.801 MB / 1.32 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.006077/1.111, allocations: 4.154 MB / 1.324 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002424/1.113, allocations: 1.401 MB / 1.326 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005128/1.118, allocations: 2.104 MB / 1.328 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002236/1.121, allocations: 1.362 MB / 1.329 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000343/1.121, allocations: 179.2 kB / 1.329 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005281/1.126, allocations: 2.664 MB / 1.332 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007914/1.127, allocations: 0.982 MB / 1.333 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001658/1.129, allocations: 1.435 MB / 1.334 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.007603/1.136, allocations: 4.703 MB / 1.339 GB, free: 2.996 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/1.136, allocations: 7.359 kB / 1.339 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.913e-06/1.136, allocations: 6.469 kB / 1.339 GB, free: 2.988 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.172e-05/1.137, allocations: 3.188 kB / 1.339 GB, free: 2.988 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.006936/1.144, allocations: 3.346 MB / 1.342 GB, free: 16.89 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/1.144, allocations: 9.438 kB / 1.342 GB, free: 16.89 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002319/1.144, allocations: 171.2 kB / 1.342 GB, free: 16.78 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004622/1.148, allocations: 0.8045 MB / 1.343 GB, free: 16.61 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006831/1.155, allocations: 6.209 MB / 1.349 GB, free: 13.93 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006905/1.156, allocations: 230.3 kB / 1.349 GB, free: 13.85 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/1.156, allocations: 110.7 kB / 1.349 GB, free: 13.82 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003681/1.16, allocations: 2.063 MB / 1.351 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.555e-05/1.16, allocations: 2.75 kB / 1.351 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/1.16, allocations: 42.66 kB / 1.351 GB, free: 12.98 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.584e-05/1.16, allocations: 45.92 kB / 1.351 GB, free: 12.98 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00478/1.165, allocations: 2.573 MB / 1.354 GB, free: 12.19 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.01439/1.179, allocations: 9.523 MB / 1.363 GB, free: 7.254 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004079/1.183, allocations: 2.163 MB / 1.365 GB, free: 6.445 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/1.185, allocations: 0.9335 MB / 1.366 GB, free: 6.152 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001356/1.187, allocations: 1.063 MB / 1.367 GB, free: 5.004 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002117/1.189, allocations: 1.014 MB / 1.368 GB, free: 4.457 MB / 1.014 GB Notification: Performance of pre-optimization done (n=89): time 3.096e-06/1.189, allocations: 0 / 1.368 GB, free: 4.457 MB / 1.014 GB Notification: Performance of matching and sorting (n=89): time 0.02028/1.209, allocations: 5.169 MB / 1.373 GB, free: 1.949 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/1.209, allocations: 146.4 kB / 1.373 GB, free: 1.789 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01283/1.222, allocations: 8.876 MB / 1.382 GB, free: 13.73 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0002613/1.222, allocations: 49.94 kB / 1.382 GB, free: 13.68 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001398/1.224, allocations: 1.087 MB / 1.383 GB, free: 12.73 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005098/1.224, allocations: 297 kB / 1.383 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006282/1.225, allocations: 209.8 kB / 1.384 GB, free: 12.37 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001768/1.225, allocations: 351.4 kB / 1.384 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/1.227, allocations: 1.088 MB / 1.385 GB, free: 11.57 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002503/1.23, allocations: 1.304 MB / 1.386 GB, free: 10.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004282/1.234, allocations: 2.177 MB / 1.388 GB, free: 8.055 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/1.234, allocations: 0 / 1.388 GB, free: 8.055 MB / 1.029 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.007211/1.241, allocations: 3.331 MB / 1.392 GB, free: 4.719 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.918e-05/1.241, allocations: 75.42 kB / 1.392 GB, free: 4.633 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/1.241, allocations: 4 kB / 1.392 GB, free: 4.629 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004208/1.246, allocations: 1.687 MB / 1.393 GB, free: 2.938 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/1.247, allocations: 214.1 kB / 1.394 GB, free: 2.738 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005814/1.253, allocations: 4.039 MB / 1.398 GB, free: 14.54 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002874/1.256, allocations: 250.7 kB / 1.398 GB, free: 14.29 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002282/1.256, allocations: 55.92 kB / 1.398 GB, free: 14.24 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 (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.001424/1.257, allocations: 0.6593 MB / 1.399 GB, free: 13.57 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/1.258, allocations: 268.7 kB / 1.399 GB, free: 13.3 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007698/1.266, allocations: 2.94 MB / 1.402 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-05/1.266, allocations: 11.98 kB / 1.402 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/1.266, allocations: 4 kB / 1.402 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/1.266, allocations: 11.92 kB / 1.402 GB, free: 10.32 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/1.28, allocations: 5.616 MB / 1.407 GB, free: 4.629 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/1.28, allocations: 4 kB / 1.407 GB, free: 4.625 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009227/1.281, allocations: 133.4 kB / 1.407 GB, free: 4.5 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003826/1.285, allocations: 1.669 MB / 1.409 GB, free: 2.824 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000146/1.285, allocations: 35.98 kB / 1.409 GB, free: 2.789 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005446/1.29, allocations: 4.022 MB / 1.413 GB, free: 14.61 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.29, allocations: 0 / 1.413 GB, free: 14.61 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007385/1.298, allocations: 2.99 MB / 1.416 GB, free: 11.55 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/1.299, allocations: 0.5989 MB / 1.416 GB, free: 10.93 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007989/1.3, allocations: 31.98 kB / 1.416 GB, free: 10.9 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002092/1.302, allocations: 127.9 kB / 1.417 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/1.302, allocations: 75.03 kB / 1.417 GB, free: 10.71 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/1.302, allocations: 39.97 kB / 1.417 GB, free: 10.67 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.009092/1.312, allocations: 6.83 MB / 1.423 GB, free: 3.836 MB / 1.061 GB Notification: Performance of sort global known variables: time 3.81e-07/1.312, allocations: 0 / 1.423 GB, free: 3.836 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002839/1.314, allocations: 0.6986 MB / 1.424 GB, free: 3.137 MB / 1.061 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.009016/1.323, allocations: 3.949 MB / 1.428 GB, free: 15.15 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.005742/1.329, allocations: 2.523 MB / 1.43 GB, free: 12.62 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/1.329, allocations: 0 / 1.43 GB, free: 12.62 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.002685/1.332, allocations: 1.284 MB / 1.432 GB, free: 11.31 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006071/1.338, allocations: 1.017 MB / 1.433 GB, free: 10.3 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07188/1.41, allocations: 44.48 MB / 1.476 GB, free: 12.02 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00183/1.412, allocations: 1.672 MB / 1.478 GB, free: 10.31 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.001984/1.414, allocations: 446.8 kB / 1.478 GB, free: 9.871 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00163/1.415, allocations: 0.9718 MB / 1.479 GB, free: 8.898 MB / 1.123 GB Notification: Performance of SimCode: time 3.076e-06/1.415, allocations: 0 / 1.479 GB, free: 8.898 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1543/1.57, allocations: 77.85 MB / 1.555 GB, free: 11.97 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/15.15, allocations: 10.23 kB / 1.555 GB, free: 11.96 MB / 1.201 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=50 --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