Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.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.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.solarAltitude|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.solarAltitude|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.4/1.4, allocations: 251.9 MB / 266.9 MB, free: 11 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.0009902/0.0009902, allocations: 182 kB / 326.5 MB, free: 2.23 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.799/1.799, allocations: 205.4 MB / 0.5775 GB, free: 20.21 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.0009073/0.0009071, allocations: 104.2 kB / 0.6821 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.0003429, allocations: 9.375 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2414, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1822/0.4237, allocations: 133.8 MB / 1.031 GB, free: 9.953 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.424, allocations: 83.94 kB / 1.031 GB, free: 9.871 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.009134/0.4331, allocations: 3.076 MB / 1.034 GB, free: 6.789 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.743e-06/0.4331, allocations: 0 / 1.034 GB, free: 6.789 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.752e-06/0.4331, allocations: 0 / 1.034 GB, free: 6.789 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005877/0.4337, allocations: 462.3 kB / 1.034 GB, free: 6.277 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.4338, allocations: 12.03 kB / 1.034 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.009e-05/0.4338, allocations: 7.906 kB / 1.034 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.434, allocations: 171 kB / 1.034 GB, free: 6.051 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.4341, allocations: 8 kB / 1.034 GB, free: 6.043 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.4341, allocations: 8 kB / 1.034 GB, free: 6.035 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002197/0.4343, allocations: 93.5 kB / 1.035 GB, free: 5.938 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.4343, allocations: 0 / 1.035 GB, free: 5.938 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.4344, allocations: 4 kB / 1.035 GB, free: 5.934 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.4344, allocations: 4 kB / 1.035 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001526/0.4345, allocations: 47.97 kB / 1.035 GB, free: 5.883 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000615/0.4351, allocations: 340.5 kB / 1.035 GB, free: 5.5 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/0.4353, allocations: 62.56 kB / 1.035 GB, free: 5.43 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.4354, allocations: 8.141 kB / 1.035 GB, free: 5.422 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00021/0.4356, allocations: 95.34 kB / 1.035 GB, free: 5.316 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=9): time 4.318e-06/0.4356, allocations: 4.094 kB / 1.035 GB, free: 5.312 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9): time 0.0004952/0.4361, allocations: 193.5 kB / 1.035 GB, free: 5.117 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.4361, allocations: 63.28 kB / 1.035 GB, free: 5.043 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.023e-05/0.4362, allocations: 116 kB / 1.035 GB, free: 4.926 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.4363, allocations: 33.7 kB / 1.035 GB, free: 4.887 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.4364, allocations: 92.36 kB / 1.036 GB, free: 4.789 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.4364, allocations: 19.72 kB / 1.036 GB, free: 4.77 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-06/0.4364, allocations: 4 kB / 1.036 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.4365, allocations: 322.8 kB / 1.036 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.184e-05/0.4366, allocations: 27.98 kB / 1.036 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.4367, allocations: 77.98 kB / 1.036 GB, free: 4.316 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.529e-05/0.4369, allocations: 37.86 kB / 1.036 GB, free: 4.281 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4369, allocations: 0 / 1.036 GB, free: 4.281 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002582/0.4371, allocations: 145.4 kB / 1.036 GB, free: 4.133 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.4372, allocations: 4 kB / 1.036 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.4372, allocations: 0 / 1.036 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.4372, allocations: 7.984 kB / 1.036 GB, free: 4.121 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.069e-05/0.4373, allocations: 16.38 kB / 1.036 GB, free: 4.105 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.4373, allocations: 12.09 kB / 1.036 GB, free: 4.094 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.949e-05/0.4374, allocations: 15.88 kB / 1.036 GB, free: 4.078 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.4374, allocations: 8 kB / 1.036 GB, free: 4.07 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.bli.curSeed,bli.curSeed,$PRE.bli.pDown,bli.pDown,$PRE.bli.pUp,bli.pUp,$PRE.bli.blindState,bli.blindState,$PRE.bli.isOpen,bli.isOpen,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 (15): * Single equations (assignments): 15 * 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.0001029/0.4375, allocations: 123.8 kB / 1.036 GB, free: 3.941 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.717e-05/0.4375, allocations: 7.906 kB / 1.036 GB, free: 3.934 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.496e-05/0.4376, allocations: 16.36 kB / 1.036 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.4376, allocations: 0 / 1.036 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.4376, allocations: 4 kB / 1.036 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.4376, allocations: 0 / 1.036 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005617/0.4382, allocations: 434.4 kB / 1.037 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4382, allocations: 0 / 1.037 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.053e-05/0.4382, allocations: 7.938 kB / 1.037 GB, free: 3.426 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.4382, allocations: 4 kB / 1.037 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.4383, allocations: 11.98 kB / 1.037 GB, free: 3.41 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.4383, allocations: 7.938 kB / 1.037 GB, free: 3.402 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4383, allocations: 3.953 kB / 1.037 GB, free: 3.398 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003661/0.4387, allocations: 251.3 kB / 1.037 GB, free: 3.137 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.908e-05/0.4387, allocations: 85.02 kB / 1.037 GB, free: 3.035 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.613e-05/0.4388, allocations: 4 kB / 1.037 GB, free: 3.031 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.4389, allocations: 11.98 kB / 1.037 GB, free: 3.02 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.708e-05/0.4389, allocations: 4 kB / 1.037 GB, free: 3.016 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.71e-05/0.439, allocations: 11.94 kB / 1.037 GB, free: 3.004 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.751e-05/0.439, allocations: 91.27 kB / 1.037 GB, free: 2.914 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1e-07/0.439, allocations: 0 / 1.037 GB, free: 2.914 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003312/0.4394, allocations: 55.92 kB / 1.037 GB, free: 2.859 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: 8 (bli.sampleTrigger,$whenCondition1,bli.occ,bli.blindState,bli.pUp,bli.pDown,bli.isOpen,bli.curSeed) * Number of discrete states: 1 (bli.isOpen) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0003989/0.4398, allocations: 179.6 kB / 1.037 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002696/0.4401, allocations: 99.83 kB / 1.038 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.4401, allocations: 4.312 kB / 1.038 GB, free: 2.59 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.4402, allocations: 43.98 kB / 1.038 GB, free: 2.547 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000209/0.4404, allocations: 11.98 kB / 1.038 GB, free: 2.535 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004419/0.4409, allocations: 223.2 kB / 1.038 GB, free: 2.281 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.4412, allocations: 0.6965 MB / 1.039 GB, free: 1.559 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.184e-05/0.4412, allocations: 4 kB / 1.039 GB, free: 1.555 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.876e-05/0.4412, allocations: 11.44 kB / 1.039 GB, free: 1.543 MB / 0.6823 GB Notification: Performance of SimCode: time 2.3e-07/0.4412, allocations: 0 / 1.039 GB, free: 1.543 MB / 0.6823 GB Notification: Performance of Templates: time 0.004402/0.4457, allocations: 1.751 MB / 1.04 GB, free: 15.81 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.solarAltitude,bli.occ,bli.pUp,bli.blindState Variables in the result:SA.amplitude,SA.freqHz,SA.offset,SA.phase,SA.startTime,SA.y,bli.ADown,bli.AUp,bli.BDown,bli.BUp,bli.blindState,bli.occ,bli.pUp,bli.samplePeriod,bli.seed,bli.solarAltitude,bli.t0,occ.startTime,occ.startValue,time