Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Haldi2008BlindsTIn,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn",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.001106/0.001106, 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.001076/0.001076, allocations: 195.3 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.195/1.195, 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 9.1.3-maint.9.1.x/package.mo): time 2.066/2.066, allocations: 390.2 MB / 0.6647 GB, free: 488 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59.91 kB / 0.8126 GB, free: 14.4 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4945/0.4958, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn): time 0.001928/0.4977, allocations: 1.473 MB / 0.9512 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008317/0.4986, allocations: 0.7331 MB / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.243e-05/0.4986, allocations: 0 / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.56e-05/0.4986, allocations: 9.344 kB / 0.9519 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.43e-05/0.4987, allocations: 13.7 kB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.4991, allocations: 120.6 kB / 0.952 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.411e-05/0.4992, allocations: 69.06 kB / 0.9521 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.02e-05/0.4993, allocations: 21.45 kB / 0.9521 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.645e-05/0.4993, allocations: 33.67 kB / 0.9521 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.753e-05/0.4994, allocations: 33.47 kB / 0.9522 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.4994, allocations: 5.438 kB / 0.9522 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.4996, allocations: 93.28 kB / 0.9523 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.825e-05/0.4996, allocations: 14.83 kB / 0.9523 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.826e-05/0.4996, allocations: 40.41 kB / 0.9523 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.4998, allocations: 132.4 kB / 0.9524 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.4998, allocations: 0 / 0.9524 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.242e-06/0.4998, allocations: 1.188 kB / 0.9524 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.4998, allocations: 0 / 0.9524 GB, free: 7.074 MB / 0.7169 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.0003977/0.5002, allocations: 452.8 kB / 0.9529 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.5003, allocations: 9.719 kB / 0.9529 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.225e-05/0.5003, allocations: 31.88 kB / 0.9529 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.5003, allocations: 8.656 kB / 0.9529 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.518e-05/0.5004, allocations: 171.9 kB / 0.9531 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.5004, allocations: 11.02 kB / 0.9531 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.5004, allocations: 4.125 kB / 0.9531 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001538/0.5006, allocations: 76.11 kB / 0.9532 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.5006, allocations: 0 / 0.9532 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.5006, allocations: 5.156 kB / 0.9532 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.5006, allocations: 0 / 0.9532 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00012/0.5007, allocations: 40.91 kB / 0.9532 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003305/0.5011, allocations: 300.8 kB / 0.9535 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.5012, allocations: 53.17 kB / 0.9535 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.593e-05/0.5013, allocations: 30.78 kB / 0.9536 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.5013, allocations: 5.188 kB / 0.9536 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001398/0.5014, allocations: 78.25 kB / 0.9537 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.5015, allocations: 0 / 0.9537 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003237/0.5018, allocations: 130.9 kB / 0.9538 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.103e-05/0.5018, allocations: 57.19 kB / 0.9538 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.889e-05/0.5019, allocations: 125.7 kB / 0.954 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.427e-06/0.5019, allocations: 33.7 kB / 0.954 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.408e-05/0.5019, allocations: 86.59 kB / 0.9541 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.5019, allocations: 22.44 kB / 0.9541 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.502, allocations: 22.09 kB / 0.9541 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.346e-05/0.502, allocations: 325.6 kB / 0.9544 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.191e-05/0.5021, allocations: 25.08 kB / 0.9544 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.757e-05/0.5022, allocations: 65.22 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.5023, allocations: 87.61 kB / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.5023, allocations: 1.594 kB / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000186/0.5025, allocations: 112.5 kB / 0.9547 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.5025, allocations: 6.094 kB / 0.9547 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.5025, allocations: 2.219 kB / 0.9547 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.5025, allocations: 2.219 kB / 0.9547 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.689e-05/0.5026, allocations: 17.33 kB / 0.9547 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.5026, allocations: 6.094 kB / 0.9547 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.636e-05/0.5027, allocations: 16.83 kB / 0.9548 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.5027, allocations: 3.5 kB / 0.9548 GB, free: 4.812 MB / 0.7169 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 5.195e-05/0.5028, allocations: 122.7 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.5028, allocations: 7.391 kB / 0.9549 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.047e-05/0.5028, allocations: 13.64 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.5028, allocations: 1.219 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.5028, allocations: 0 / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.5028, allocations: 9.078 kB / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003196/0.5031, allocations: 377.5 kB / 0.9553 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.5032, allocations: 0 / 0.9553 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.677e-05/0.5032, allocations: 4 kB / 0.9553 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.5032, allocations: 3.938 kB / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.5032, allocations: 9.531 kB / 0.9553 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.5032, allocations: 5.156 kB / 0.9553 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.5032, allocations: 0 / 0.9553 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.5034, allocations: 204.8 kB / 0.9555 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.649e-05/0.5035, allocations: 86.14 kB / 0.9556 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.5035, allocations: 1.156 kB / 0.9556 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.363e-05/0.5036, allocations: 10.36 kB / 0.9556 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.438e-05/0.5036, allocations: 7.844 kB / 0.9556 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.5036, allocations: 9.266 kB / 0.9556 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.982e-05/0.5037, allocations: 98.17 kB / 0.9557 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5037, allocations: 0 / 0.9557 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002657/0.5039, allocations: 36.16 kB / 0.9557 GB, free: 3.898 MB / 0.7169 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.0005138/0.5045, allocations: 0.8035 MB / 0.9565 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001929/0.5047, allocations: 67.7 kB / 0.9566 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.5047, allocations: 1.594 kB / 0.9566 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.618e-05/0.5048, allocations: 43.62 kB / 0.9566 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.505, allocations: 8.031 kB / 0.9566 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.506, allocations: 1.501 MB / 0.9581 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.164e-05/0.5061, allocations: 0.6928 MB / 0.9588 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.824e-05/0.5062, allocations: 3.531 kB / 0.9588 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.207e-05/0.5062, allocations: 23.17 kB / 0.9588 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.5062, allocations: 0 / 0.9588 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.07/1.576, allocations: 2.596 MB / 0.9613 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.959/11.54, allocations: 8.812 kB / 0.9613 GB, free: 15.57 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn.fmu > Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.TIn,bli.occ,bli.pDown,bli.blindState Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,TIn.y,bli.A,bli.B,bli.TIn,bli.blindState,bli.occ,bli.pDown,bli.samplePeriod,bli.seed,occ.startTime,occ.startValue,occ.y,time