Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut",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.002225/0.002225, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001958/0.001958, allocations: 192.1 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.336/2.336, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.27/4.27, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 68.3 kB / 0.8987 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4422/0.4446, allocations: 157.4 MB / 1.052 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut): time 0.006352/0.451, allocations: 1.548 MB / 1.054 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002278/0.4533, allocations: 0.7321 MB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.409e-05/0.4534, allocations: 0 / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.02e-05/0.4535, allocations: 7.938 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.957e-05/0.4537, allocations: 3.938 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009538/0.4546, allocations: 107.8 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001897/0.4549, allocations: 67.78 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.455, allocations: 19.97 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.4552, allocations: 27.92 kB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.575e-05/0.4553, allocations: 35.84 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.091e-05/0.4553, allocations: 4 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003174/0.4557, allocations: 95.84 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.295e-05/0.4557, allocations: 19.92 kB / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.968e-05/0.4558, allocations: 31.84 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004136/0.4563, allocations: 135.9 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4563, allocations: 0 / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.915e-06/0.4563, allocations: 0 / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.4563, allocations: 0 / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.001111/0.4574, allocations: 446.7 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.098e-05/0.4575, allocations: 8.625 kB / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.775e-05/0.4576, allocations: 34.75 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.149e-05/0.4577, allocations: 8.844 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/0.4579, allocations: 180.2 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.4579, allocations: 4.375 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.083e-05/0.4579, allocations: 12.36 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.4583, allocations: 69.77 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.4583, allocations: 8 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.4583, allocations: 3.938 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.4583, allocations: 0 / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.4586, allocations: 35.97 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008578/0.4595, allocations: 296.8 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002747/0.4598, allocations: 58.5 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003133/0.4601, allocations: 28.97 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.845e-05/0.4602, allocations: 4 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004915/0.4607, allocations: 71.38 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 3.086e-06/0.4607, allocations: 0 / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.000819/0.4615, allocations: 145.5 kB / 1.057 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.01e-05/0.4616, allocations: 55.39 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003716/0.462, allocations: 117.8 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.4621, allocations: 25.7 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.353e-05/0.4622, allocations: 108 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.4622, allocations: 7.891 kB / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.563e-05/0.4623, allocations: 29.7 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002992/0.4626, allocations: 322.8 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.4628, allocations: 23.98 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.4629, allocations: 61.56 kB / 1.057 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.4632, allocations: 93.02 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.4632, allocations: 0 / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004188/0.4637, allocations: 113.4 kB / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.4637, allocations: 12.14 kB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.4637, allocations: 4 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.13e-05/0.4638, allocations: 0 / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.464, allocations: 16 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.464, allocations: 3.938 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.4641, allocations: 11.89 kB / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.95e-05/0.4642, allocations: 8 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (bli.curSeed,$PRE.bli.curSeed,bli.blindState,$PRE.bli.blindState,bli.pDown,$PRE.bli.pDown,occ.y,bli.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002533/0.4644, allocations: 132.4 kB / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.543e-05/0.4645, allocations: 11.91 kB / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.373e-05/0.4646, allocations: 8.375 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.4646, allocations: 3.984 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.4646, allocations: 0 / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4646, allocations: 0 / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008453/0.4654, allocations: 378.4 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4655, allocations: 0 / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.377e-05/0.4655, allocations: 4 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.4656, allocations: 4 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.782e-05/0.4656, allocations: 7.984 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.4656, allocations: 3.938 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4656, allocations: 0 / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004727/0.4661, allocations: 203.4 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.102e-05/0.4662, allocations: 81.16 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.4662, allocations: 7.969 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.4664, allocations: 11.94 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/0.4665, allocations: 3.984 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.4665, allocations: 4 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001134/0.4666, allocations: 99.42 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4666, allocations: 3.938 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005785/0.4672, allocations: 35.91 kB / 1.058 GB, free: 2.074 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (bli.sampleTrigger,$whenCondition1,occ.y,bli.blindState,bli.pDown,bli.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001464/0.4687, allocations: 0.8037 MB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004184/0.4691, allocations: 71.88 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.4692, allocations: 320 / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.4693, allocations: 39.92 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005502/0.4699, allocations: 11.94 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003343/0.4733, allocations: 1.521 MB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.4737, allocations: 0.6883 MB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.765e-05/0.4738, allocations: 7.984 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.905e-05/0.4739, allocations: 15.44 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of SimCode: time 5.51e-07/0.4739, allocations: 4 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2739/0.7479, allocations: 2.494 MB / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004956/0.7484, allocations: 262.8 kB / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.204/4.952, allocations: 4 kB / 1.064 GB, free: 12.09 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut.fmu > Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.TOut,bli.occ,bli.pDown,bli.blindState Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,TOut.y,bli.A,bli.B,bli.TOut,bli.blindState,bli.occ,bli.pDown,bli.samplePeriod,bli.seed,occ.startTime,occ.startValue,occ.y,time