Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TOut|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut") translateModel(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TOut|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.421/1.421, allocations: 251.9 MB / 266.9 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 180.7 kB / 326.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.795/1.795, allocations: 205.4 MB / 0.5775 GB, free: 20.57 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009947/0.0009947, allocations: 95.98 kB / 0.6821 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003094, allocations: 8.969 kB / 0.7962 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1851, allocations: 106.3 MB / 0.9001 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.226/0.4112, allocations: 133.6 MB / 1.031 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003556/0.4116, allocations: 79.95 kB / 1.031 GB, free: 10.58 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.01274/0.4244, allocations: 2.895 MB / 1.033 GB, free: 7.68 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.226e-06/0.4244, allocations: 0 / 1.033 GB, free: 7.68 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.604e-05/0.4244, allocations: 4 kB / 1.033 GB, free: 7.676 MB / 0.6823 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.0007377/0.4252, allocations: 454.4 kB / 1.034 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.4252, allocations: 15.97 kB / 1.034 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.584e-05/0.4253, allocations: 3.906 kB / 1.034 GB, free: 7.152 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.4255, allocations: 167 kB / 1.034 GB, free: 6.949 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/0.4255, allocations: 8 kB / 1.034 GB, free: 6.941 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.4256, allocations: 4 kB / 1.034 GB, free: 6.938 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000254/0.4258, allocations: 77.62 kB / 1.034 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.4258, allocations: 0 / 1.034 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.4259, allocations: 0 / 1.034 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.4259, allocations: 4 kB / 1.034 GB, free: 6.852 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002116/0.4261, allocations: 43.97 kB / 1.034 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006769/0.4268, allocations: 312.6 kB / 1.035 GB, free: 6.453 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.427, allocations: 50.55 kB / 1.035 GB, free: 6.395 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.427, allocations: 0 / 1.035 GB, free: 6.395 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002423/0.4273, allocations: 79.5 kB / 1.035 GB, free: 6.305 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 3.757e-06/0.4273, allocations: 0 / 1.035 GB, free: 6.305 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0005539/0.4279, allocations: 149.5 kB / 1.035 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.4279, allocations: 55.36 kB / 1.035 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.4281, allocations: 120.9 kB / 1.035 GB, free: 5.961 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.4281, allocations: 29.7 kB / 1.035 GB, free: 5.926 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.714e-05/0.4282, allocations: 88.39 kB / 1.035 GB, free: 5.832 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.4282, allocations: 15.81 kB / 1.035 GB, free: 5.816 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-06/0.4283, allocations: 4 kB / 1.035 GB, free: 5.812 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4284, allocations: 318.8 kB / 1.035 GB, free: 5.492 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.4285, allocations: 27.98 kB / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.4287, allocations: 65.06 kB / 1.035 GB, free: 5.383 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.4288, allocations: 35.94 kB / 1.036 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4288, allocations: 0 / 1.036 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003453/0.4292, allocations: 117.4 kB / 1.036 GB, free: 5.227 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.4292, allocations: 4 kB / 1.036 GB, free: 5.223 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.4292, allocations: 4 kB / 1.036 GB, free: 5.219 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.4293, allocations: 4.203 kB / 1.036 GB, free: 5.215 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.4294, allocations: 23.97 kB / 1.036 GB, free: 5.191 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.4294, allocations: 7.938 kB / 1.036 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.516e-05/0.4295, allocations: 11.94 kB / 1.036 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.4296, allocations: 4 kB / 1.036 GB, free: 5.168 MB / 0.6823 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 ($PRE.bli.curSeed,bli.curSeed,$PRE.bli.blindState,bli.blindState,$PRE.bli.pDown,bli.pDown,bli.occ,$whenCondition1,bli.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.4297, allocations: 113.8 kB / 1.036 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.827e-05/0.4297, allocations: 11.91 kB / 1.036 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.45e-05/0.4298, allocations: 16.31 kB / 1.036 GB, free: 5.02 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.4298, allocations: 4 kB / 1.036 GB, free: 5.016 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.4298, allocations: 0 / 1.036 GB, free: 5.016 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.4298, allocations: 3.984 kB / 1.036 GB, free: 5.012 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000658/0.4305, allocations: 388.1 kB / 1.036 GB, free: 4.578 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4305, allocations: 0 / 1.036 GB, free: 4.578 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.085e-05/0.4306, allocations: 12 kB / 1.036 GB, free: 4.566 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.4306, allocations: 0 / 1.036 GB, free: 4.566 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.4306, allocations: 4 kB / 1.036 GB, free: 4.562 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4306, allocations: 0 / 1.036 GB, free: 4.562 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.4306, allocations: 7.938 kB / 1.036 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004493/0.4311, allocations: 207.4 kB / 1.036 GB, free: 4.336 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.343e-05/0.4311, allocations: 89.02 kB / 1.037 GB, free: 4.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.4312, allocations: 0 / 1.037 GB, free: 4.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.4313, allocations: 7.984 kB / 1.037 GB, free: 4.223 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.552e-05/0.4314, allocations: 8 kB / 1.037 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.4314, allocations: 7.938 kB / 1.037 GB, free: 4.207 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.931e-05/0.4315, allocations: 95.92 kB / 1.037 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.21e-07/0.4315, allocations: 0 / 1.037 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005459/0.4321, allocations: 47.94 kB / 1.037 GB, free: 4.066 MB / 0.6823 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,bli.occ,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000504/0.4326, allocations: 166.8 kB / 1.037 GB, free: 3.91 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003297/0.4329, allocations: 76.08 kB / 1.037 GB, free: 3.836 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4329, allocations: 4.125 kB / 1.037 GB, free: 3.832 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.4331, allocations: 43.91 kB / 1.037 GB, free: 3.789 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.4334, allocations: 11.22 kB / 1.037 GB, free: 3.781 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000559/0.434, allocations: 223.7 kB / 1.037 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.4343, allocations: 0.6887 MB / 1.038 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.283e-05/0.4344, allocations: 8.266 kB / 1.038 GB, free: 2.805 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.4344, allocations: 11.44 kB / 1.038 GB, free: 2.797 MB / 0.6823 GB Notification: Performance of SimCode: time 4.21e-07/0.4345, allocations: 0 / 1.038 GB, free: 2.797 MB / 0.6823 GB Notification: Performance of Templates: time 0.005937/0.4404, allocations: 1.512 MB / 1.039 GB, free: 1.293 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut.csv","../files/Buildings_maint.7.0.x_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.freqHz,TOut.offset,TOut.phase,TOut.startTime,TOut.y,bli.A,bli.B,bli.TOut,bli.blindState,bli.occ,bli.pDown,bli.samplePeriod,bli.seed,bli.t0,occ.startTime,occ.startValue,time