Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.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.Zhang2012BlindsSolarIntensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.H|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity") translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.H|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.437/1.437, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001074/0.001073, allocations: 183.3 kB / 326.5 MB, free: 2.25 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.605/1.605, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.000788/0.0007879, allocations: 99.16 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003738/0.0003739, allocations: 8.562 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2437, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.178/0.4218, allocations: 133.8 MB / 1.031 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/0.4222, allocations: 83.94 kB / 1.031 GB, free: 9.93 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.008992/0.4312, allocations: 3.068 MB / 1.034 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.156e-06/0.4312, allocations: 7.984 kB / 1.034 GB, free: 6.848 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.4312, allocations: 0 / 1.034 GB, free: 6.848 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.0005182/0.4318, allocations: 462.3 kB / 1.034 GB, free: 6.336 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.4318, allocations: 11.97 kB / 1.034 GB, free: 6.324 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/0.4319, allocations: 7.906 kB / 1.034 GB, free: 6.316 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.432, allocations: 171 kB / 1.034 GB, free: 6.109 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.4321, allocations: 8 kB / 1.034 GB, free: 6.102 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.4321, allocations: 8 kB / 1.034 GB, free: 6.094 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.4323, allocations: 89.56 kB / 1.035 GB, free: 6 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.4323, allocations: 0 / 1.035 GB, free: 6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.4324, allocations: 4 kB / 1.035 GB, free: 5.996 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.4324, allocations: 4 kB / 1.035 GB, free: 5.992 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.4325, allocations: 51.97 kB / 1.035 GB, free: 5.941 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005599/0.4331, allocations: 332.5 kB / 1.035 GB, free: 5.566 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.4333, allocations: 70.55 kB / 1.035 GB, free: 5.488 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.4333, allocations: 4.141 kB / 1.035 GB, free: 5.484 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001902/0.4335, allocations: 95.45 kB / 1.035 GB, free: 5.379 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=9): time 1.482e-06/0.4335, allocations: 3.938 kB / 1.035 GB, free: 5.375 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9): time 0.0004716/0.434, allocations: 197.5 kB / 1.035 GB, free: 5.176 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.434, allocations: 59.3 kB / 1.035 GB, free: 5.105 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.488e-05/0.4341, allocations: 119 kB / 1.035 GB, free: 4.984 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.4342, allocations: 33.7 kB / 1.035 GB, free: 4.945 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.129e-05/0.4342, allocations: 84.38 kB / 1.036 GB, free: 4.855 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.49e-05/0.4342, allocations: 23.7 kB / 1.036 GB, free: 4.832 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.233e-06/0.4343, allocations: 4 kB / 1.036 GB, free: 4.828 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.4344, allocations: 327.2 kB / 1.036 GB, free: 4.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.689e-05/0.4345, allocations: 23.98 kB / 1.036 GB, free: 4.477 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.4346, allocations: 77.98 kB / 1.036 GB, free: 4.379 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.333e-05/0.4347, allocations: 41.86 kB / 1.036 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4347, allocations: 3.938 kB / 1.036 GB, free: 4.336 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002432/0.4349, allocations: 141.4 kB / 1.036 GB, free: 4.191 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.435, allocations: 8 kB / 1.036 GB, free: 4.184 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.435, allocations: 4 kB / 1.036 GB, free: 4.18 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.435, allocations: 4 kB / 1.036 GB, free: 4.176 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-05/0.4351, allocations: 19.98 kB / 1.036 GB, free: 4.156 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.4351, allocations: 7.938 kB / 1.036 GB, free: 4.148 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.325e-05/0.4352, allocations: 11.89 kB / 1.036 GB, free: 4.137 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.4352, allocations: 12.11 kB / 1.036 GB, free: 4.125 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.0001145/0.4354, allocations: 124.9 kB / 1.036 GB, free: 3.996 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.839e-05/0.4354, allocations: 7.906 kB / 1.036 GB, free: 3.988 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.4354, allocations: 12.38 kB / 1.036 GB, free: 3.977 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.4354, allocations: 0 / 1.036 GB, free: 3.977 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.4354, allocations: 0 / 1.036 GB, free: 3.977 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.4354, allocations: 3.984 kB / 1.036 GB, free: 3.973 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005487/0.436, allocations: 438.4 kB / 1.037 GB, free: 3.488 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.436, allocations: 3.938 kB / 1.037 GB, free: 3.484 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.849e-05/0.4361, allocations: 4 kB / 1.037 GB, free: 3.48 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.4361, allocations: 0 / 1.037 GB, free: 3.48 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.4361, allocations: 11.98 kB / 1.037 GB, free: 3.469 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.4361, allocations: 3.938 kB / 1.037 GB, free: 3.465 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4361, allocations: 3.953 kB / 1.037 GB, free: 3.461 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003507/0.4365, allocations: 251.3 kB / 1.037 GB, free: 3.199 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.608e-05/0.4365, allocations: 85 kB / 1.037 GB, free: 3.098 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.4366, allocations: 8 kB / 1.037 GB, free: 3.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.4367, allocations: 4 kB / 1.037 GB, free: 3.086 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.543e-05/0.4367, allocations: 11.98 kB / 1.037 GB, free: 3.074 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.4368, allocations: 3.953 kB / 1.037 GB, free: 3.07 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.529e-05/0.4368, allocations: 99.45 kB / 1.037 GB, free: 2.973 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4368, allocations: 0 / 1.037 GB, free: 2.973 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003029/0.4371, allocations: 59.86 kB / 1.037 GB, free: 2.914 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.0003838/0.4375, allocations: 172.7 kB / 1.037 GB, free: 2.754 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002819/0.4378, allocations: 99.83 kB / 1.038 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.4378, allocations: 0 / 1.038 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.438, allocations: 52.28 kB / 1.038 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001966/0.4382, allocations: 23.05 kB / 1.038 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000455/0.4386, allocations: 229.2 kB / 1.038 GB, free: 2.328 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.4389, allocations: 0.6965 MB / 1.039 GB, free: 1.605 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.625e-05/0.439, allocations: 7.984 kB / 1.039 GB, free: 1.598 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.552e-05/0.439, allocations: 11.44 kB / 1.039 GB, free: 1.586 MB / 0.6823 GB Notification: Performance of SimCode: time 2.5e-07/0.439, allocations: 192 / 1.039 GB, free: 1.586 MB / 0.6823 GB Notification: Performance of Templates: time 0.004525/0.4435, allocations: 1.755 MB / 1.04 GB, free: 15.87 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarIntensity.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.H,bli.occ,bli.pUp,bli.blindState Variables in the result:H.amplitude,H.freqHz,H.offset,H.phase,H.startTime,H.y,bli.ADown,bli.AUp,bli.BDown,bli.BUp,bli.H,bli.blindState,bli.occ,bli.pUp,bli.samplePeriod,bli.seed,bli.t0,occ.startTime,occ.startValue,time