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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 110.6 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001878/0.001878, allocations: 220.3 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.506/3.506, allocations: 0.505 GB / 0.8101 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002187/0.002187, allocations: 66.75 kB / 1.177 GB, free: 17.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4016/0.4038, allocations: 180.2 MB / 1.353 GB, free: 8.426 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource): time 0.3236/0.7273, allocations: 229.4 MB / 1.577 GB, free: 2.172 MB / 1.264 GB Notification: Performance of NFInst.instExpressions: time 0.0253/0.7526, allocations: 12.75 MB / 1.589 GB, free: 5.391 MB / 1.279 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003337/0.756, allocations: 91.25 kB / 1.589 GB, free: 5.301 MB / 1.279 GB Notification: Performance of NFTyping.typeComponents: time 0.004007/0.76, allocations: 1.251 MB / 1.591 GB, free: 4.043 MB / 1.279 GB Notification: Performance of NFTyping.typeBindings: time 0.01114/0.7711, allocations: 3.332 MB / 1.594 GB, free: 0.6992 MB / 1.279 GB Notification: Performance of NFTyping.typeClassSections: time 0.006865/0.778, allocations: 1.891 MB / 1.596 GB, free: 14.82 MB / 1.295 GB Notification: Performance of NFFlatten.flatten: time 0.008274/0.7863, allocations: 4.222 MB / 1.6 GB, free: 10.58 MB / 1.295 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003017/0.7893, allocations: 1.121 MB / 1.601 GB, free: 9.43 MB / 1.295 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00723/0.7965, allocations: 2.206 MB / 1.603 GB, free: 7.219 MB / 1.295 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003657/0.8002, allocations: 1.461 MB / 1.605 GB, free: 5.754 MB / 1.295 GB Notification: Performance of NFPackage.collectConstants: time 0.0008641/0.801, allocations: 180 kB / 1.605 GB, free: 5.578 MB / 1.295 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007126/0.8082, allocations: 2.869 MB / 1.608 GB, free: 2.703 MB / 1.295 GB Notification: Performance of NFScalarize.scalarize: time 0.001465/0.8096, allocations: 1.008 MB / 1.609 GB, free: 1.691 MB / 1.295 GB Notification: Performance of NFVerifyModel.verify: time 0.002793/0.8124, allocations: 1.442 MB / 1.61 GB, free: 248 kB / 1.295 GB Notification: Performance of NFConvertDAE.convert: time 0.9229/1.735, allocations: 4.829 MB / 1.615 GB, free: 24.12 MB / 1.295 GB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/1.735, allocations: 1.391 kB / 1.615 GB, free: 24.12 MB / 1.295 GB Notification: Performance of FrontEnd: time 2.375e-06/1.735, allocations: 0.75 kB / 1.615 GB, free: 24.12 MB / 1.295 GB Notification: Performance of Transformations before backend: time 0.0001425/1.736, allocations: 1.094 kB / 1.615 GB, free: 24.12 MB / 1.295 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.01181/1.747, allocations: 3.399 MB / 1.618 GB, free: 22.43 MB / 1.295 GB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/1.747, allocations: 10.06 kB / 1.618 GB, free: 22.43 MB / 1.295 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003199/1.748, allocations: 175.4 kB / 1.618 GB, free: 22.39 MB / 1.295 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005701/1.753, allocations: 0.8173 MB / 1.619 GB, free: 22.22 MB / 1.295 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01189/1.765, allocations: 6.225 MB / 1.625 GB, free: 21.65 MB / 1.295 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/1.766, allocations: 144.7 kB / 1.625 GB, free: 21.59 MB / 1.295 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003682/1.766, allocations: 109.3 kB / 1.625 GB, free: 21.59 MB / 1.295 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004451/1.77, allocations: 2.06 MB / 1.627 GB, free: 21.4 MB / 1.295 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/1.77, allocations: 0 / 1.627 GB, free: 21.4 MB / 1.295 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/1.77, allocations: 47.47 kB / 1.627 GB, free: 21.4 MB / 1.295 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.384e-05/1.771, allocations: 42.19 kB / 1.627 GB, free: 21.4 MB / 1.295 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004731/1.775, allocations: 2.563 MB / 1.63 GB, free: 21.38 MB / 1.295 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.01764/1.793, allocations: 9.471 MB / 1.639 GB, free: 18.93 MB / 1.295 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004344/1.797, allocations: 1.946 MB / 1.641 GB, free: 18.9 MB / 1.295 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001827/1.799, allocations: 0.888 MB / 1.642 GB, free: 18.89 MB / 1.295 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007984/1.8, allocations: 167.2 kB / 1.642 GB, free: 18.89 MB / 1.295 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001989/1.802, allocations: 1.014 MB / 1.643 GB, free: 18.78 MB / 1.295 GB Notification: Performance of pre-optimization done (n=91): time 3.707e-06/1.802, allocations: 0.7188 kB / 1.643 GB, free: 18.78 MB / 1.295 GB Notification: Performance of matching and sorting (n=91): time 0.02369/1.826, allocations: 5.664 MB / 1.649 GB, free: 18.48 MB / 1.295 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.685e-05/1.826, allocations: 143 kB / 1.649 GB, free: 18.32 MB / 1.295 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01248/1.838, allocations: 8.89 MB / 1.657 GB, free: 18.09 MB / 1.295 GB Notification: Performance of collectPreVariables (initialization): time 0.000454/1.839, allocations: 43.17 kB / 1.657 GB, free: 18.05 MB / 1.295 GB Notification: Performance of collectInitialEqns (initialization): time 0.001364/1.84, allocations: 1.12 MB / 1.659 GB, free: 17.82 MB / 1.295 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005792/1.841, allocations: 311.8 kB / 1.659 GB, free: 17.62 MB / 1.295 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005219/1.841, allocations: 216.7 kB / 1.659 GB, free: 17.6 MB / 1.295 GB Notification: Performance of setup shared object (initialization): time 9.177e-05/1.841, allocations: 350.7 kB / 1.659 GB, free: 17.29 MB / 1.295 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/1.843, allocations: 1.092 MB / 1.66 GB, free: 17.29 MB / 1.295 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001931/1.845, allocations: 1.303 MB / 1.662 GB, free: 17.11 MB / 1.295 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003238/1.848, allocations: 2.173 MB / 1.664 GB, free: 16.82 MB / 1.295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/1.848, allocations: 0.5625 kB / 1.664 GB, free: 16.82 MB / 1.295 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.008118/1.856, allocations: 3.689 MB / 1.667 GB, free: 16.5 MB / 1.295 GB Notification: Performance of prepare postOptimizeDAE: time 6.81e-05/1.856, allocations: 73.2 kB / 1.667 GB, free: 16.44 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/1.856, allocations: 4.344 kB / 1.667 GB, free: 16.44 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004392/1.861, allocations: 1.978 MB / 1.669 GB, free: 16.36 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/1.862, allocations: 183.8 kB / 1.67 GB, free: 16.36 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00793/1.87, allocations: 6.609 MB / 1.676 GB, free: 12.77 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003364/1.873, allocations: 244 kB / 1.676 GB, free: 12.69 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003299/1.873, allocations: 48.38 kB / 1.676 GB, free: 12.69 MB / 1.295 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.001699/1.875, allocations: 0.6623 MB / 1.677 GB, free: 12.51 MB / 1.295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00128/1.876, allocations: 282.6 kB / 1.677 GB, free: 12.36 MB / 1.295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007572/1.884, allocations: 3.21 MB / 1.68 GB, free: 12.11 MB / 1.295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.668e-05/1.884, allocations: 14.2 kB / 1.68 GB, free: 12.11 MB / 1.295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/1.884, allocations: 2.125 kB / 1.68 GB, free: 12.11 MB / 1.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-05/1.884, allocations: 3 kB / 1.68 GB, free: 12.11 MB / 1.295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/1.898, allocations: 5.854 MB / 1.686 GB, free: 11.51 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/1.898, allocations: 4.75 kB / 1.686 GB, free: 11.51 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006384/1.899, allocations: 106.5 kB / 1.686 GB, free: 11.5 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004184/1.903, allocations: 1.971 MB / 1.688 GB, free: 11.41 MB / 1.295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000177/1.903, allocations: 36.95 kB / 1.688 GB, free: 11.4 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00775/1.911, allocations: 6.526 MB / 1.695 GB, free: 7.844 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.911, allocations: 9.75 kB / 1.695 GB, free: 7.84 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007736/1.919, allocations: 3.281 MB / 1.698 GB, free: 7.273 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002311/1.921, allocations: 0.5438 MB / 1.698 GB, free: 7.109 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/1.922, allocations: 25.42 kB / 1.698 GB, free: 7.109 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002004/1.924, allocations: 131 kB / 1.698 GB, free: 7.102 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/1.924, allocations: 77.3 kB / 1.699 GB, free: 7.098 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/1.924, allocations: 41.67 kB / 1.699 GB, free: 7.098 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.009114/1.934, allocations: 6.834 MB / 1.705 GB, free: 6.953 MB / 1.295 GB Notification: Performance of sort global known variables: time 3.41e-07/1.934, allocations: 0 / 1.705 GB, free: 6.953 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.004539/1.938, allocations: 0.745 MB / 1.706 GB, free: 6.867 MB / 1.295 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.008874/1.947, allocations: 4.226 MB / 1.71 GB, free: 4.961 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.004784/1.952, allocations: 2.531 MB / 1.713 GB, free: 3.996 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.952, allocations: 3.406 kB / 1.713 GB, free: 3.996 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.002302/1.954, allocations: 1.334 MB / 1.714 GB, free: 3.352 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005759/1.96, allocations: 1.024 MB / 1.715 GB, free: 3.02 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0833/2.043, allocations: 42.65 MB / 1.757 GB, free: 1.629 MB / 1.326 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001646/2.045, allocations: 1.689 MB / 1.758 GB, free: 15.91 MB / 1.342 GB Notification: Performance of simCode: alias equations: time 0.002298/2.047, allocations: 437.5 kB / 1.759 GB, free: 15.48 MB / 1.342 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001736/2.049, allocations: 0.9562 MB / 1.76 GB, free: 14.52 MB / 1.342 GB Notification: Performance of SimCode: time 1.382e-06/2.049, allocations: 0 / 1.76 GB, free: 14.52 MB / 1.342 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1708/2.22, allocations: 79.93 MB / 1.838 GB, free: 15.63 MB / 1.42 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.14/21.36, allocations: 4.062 kB / 1.838 GB, free: 15.62 MB / 1.42 GB " [Timeout remaining time 278] (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 --stepSize=0.12 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_CHPs_OrganicRankine_Validation_VariableSource.fmu > Buildings_latest_Buildings.Fluid.CHPs.OrganicRankine.Validation.VariableSource.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 28.834422630025074]