Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: translateModel(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TIn|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn") translateModel(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TIn|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.01103/0.01103, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.488/1.488, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3/3, allocations: 462.7 MB / 0.7364 GB, free: 308 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003471, allocations: 8.562 kB / 0.9028 GB, free: 36.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3369, allocations: 159.6 MB / 1.059 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn): time 0.001643/0.3386, allocations: 1.217 MB / 1.06 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00123/0.3398, allocations: 0.7206 MB / 1.061 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.755e-05/0.3399, allocations: 0 / 1.061 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.919e-05/0.3399, allocations: 11.86 kB / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.404e-05/0.34, allocations: 11.94 kB / 1.061 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004806/0.3405, allocations: 95.77 kB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.977e-05/0.3406, allocations: 67.78 kB / 1.061 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.137e-05/0.3407, allocations: 7.984 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.259e-05/0.3408, allocations: 23.92 kB / 1.061 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.626e-05/0.3409, allocations: 35.84 kB / 1.061 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.3409, allocations: 8 kB / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.3411, allocations: 87.84 kB / 1.061 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.301e-05/0.3411, allocations: 11.92 kB / 1.061 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.652e-05/0.3412, allocations: 61.55 kB / 1.061 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.3414, allocations: 127.9 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.3414, allocations: 0 / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3414, allocations: 0 / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.3415, allocations: 4 kB / 1.061 GB, free: 3 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.000563/0.342, allocations: 434.8 kB / 1.061 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.3421, allocations: 11.97 kB / 1.062 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.917e-05/0.3421, allocations: 8.844 kB / 1.062 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.3422, allocations: 180.2 kB / 1.062 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.3423, allocations: 384 / 1.062 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.3423, allocations: 4.375 kB / 1.062 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.3425, allocations: 77.97 kB / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.3425, allocations: 0 / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.3425, allocations: 4 kB / 1.062 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3425, allocations: 0 / 1.062 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000143/0.3427, allocations: 43.97 kB / 1.062 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.3432, allocations: 308.6 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.3433, allocations: 54.5 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.146e-05/0.3434, allocations: 32.97 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.3434, allocations: 4 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.3436, allocations: 79.38 kB / 1.062 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3437, allocations: 0 / 1.062 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004031/0.3441, allocations: 137.6 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.3441, allocations: 63.39 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.864e-05/0.3442, allocations: 129.7 kB / 1.063 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.3443, allocations: 25.7 kB / 1.063 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.286e-05/0.3443, allocations: 96.12 kB / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.36e-05/0.3444, allocations: 15.81 kB / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.229e-05/0.3444, allocations: 17.72 kB / 1.063 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.3445, allocations: 326.8 kB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.6e-05/0.3446, allocations: 23.98 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.3447, allocations: 69.12 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.3449, allocations: 97.02 kB / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3449, allocations: 0 / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000263/0.3452, allocations: 121.5 kB / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.3452, allocations: 8 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3452, allocations: 0 / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.3452, allocations: 0 / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.679e-05/0.3453, allocations: 15.98 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3453, allocations: 4.312 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.899e-05/0.3454, allocations: 11.98 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.3454, allocations: 4 kB / 1.063 GB, free: 376 kB / 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 9.03e-05/0.3455, allocations: 132.4 kB / 1.064 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.706e-05/0.3455, allocations: 7.906 kB / 1.064 GB, free: 228 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.564e-05/0.3456, allocations: 16.36 kB / 1.064 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3456, allocations: 3.984 kB / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3456, allocations: 0 / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.3456, allocations: 0 / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004637/0.3461, allocations: 390.3 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3461, allocations: 3.984 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.161e-05/0.3461, allocations: 8 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3461, allocations: 4 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.527e-06/0.3462, allocations: 0 / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3462, allocations: 0 / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3462, allocations: 3.938 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.3465, allocations: 223.4 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.563e-05/0.3465, allocations: 81.02 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.3465, allocations: 4 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.125e-05/0.3466, allocations: 7.984 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.371e-05/0.3467, allocations: 3.938 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.3467, allocations: 11.98 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.576e-05/0.3468, allocations: 99.2 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3468, allocations: 0 / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002981/0.3471, allocations: 32 kB / 1.064 GB, free: 15.26 MB / 0.8262 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.0003029/0.3474, allocations: 155.9 kB / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000237/0.3476, allocations: 79.89 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3476, allocations: 0 / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.3477, allocations: 39.92 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.348, allocations: 12.05 kB / 1.065 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003933/0.3484, allocations: 219 kB / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.3487, allocations: 0.6887 MB / 1.066 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.476e-05/0.3487, allocations: 8 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.297e-05/0.3488, allocations: 11.42 kB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.3488, allocations: 0 / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of Templates: time 0.003904/0.3527, allocations: 1.35 MB / 1.067 GB, free: 12.66 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.sim & ./Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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,bli.t0,occ.startTime,occ.startValue,occ.y,time