Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.918/1.918, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 173.2 kB / 487 MB, free: 5.328 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.3 MB / 0.7819 GB, free: 1.316 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009771/0.0009771, allocations: 85.59 kB / 0.9213 GB, free: 2.562 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.721e-06/5.731e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.215, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6477/0.8628, allocations: 150.3 MB / 1.352 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.863, allocations: 82.67 kB / 1.352 GB, free: 15.83 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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: time 0.008086/0.8711, allocations: 2.595 MB / 1.355 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.8711, allocations: 1 kB / 1.355 GB, free: 15.69 MB / 0.8073 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.0003778/0.8715, allocations: 440.5 kB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.8716, allocations: 9.891 kB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.659e-05/0.8716, allocations: 7.062 kB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.594e-05/0.8717, allocations: 171.7 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.8717, allocations: 9.672 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.8718, allocations: 3.375 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.074e-05/0.8718, allocations: 24.64 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.977e-05/0.8719, allocations: 54.67 kB / 1.355 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.872, allocations: 4.734 kB / 1.355 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.872, allocations: 0.8125 kB / 1.355 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.872, allocations: 0.8125 kB / 1.355 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.8723, allocations: 270.5 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.862e-05/0.8724, allocations: 36.38 kB / 1.356 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.573e-05/0.8725, allocations: 23.36 kB / 1.356 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.8725, allocations: 5.156 kB / 1.356 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.88e-05/0.8726, allocations: 73.44 kB / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.8726, allocations: 0 / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001919/0.8728, allocations: 82.17 kB / 1.356 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.052e-05/0.8728, allocations: 54.14 kB / 1.356 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.567e-05/0.8729, allocations: 111.1 kB / 1.356 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.8729, allocations: 27.38 kB / 1.356 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.406e-05/0.8729, allocations: 84.47 kB / 1.356 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.873, allocations: 19.19 kB / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.873, allocations: 0 / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.768e-05/0.873, allocations: 318.7 kB / 1.356 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.118e-05/0.8731, allocations: 17.03 kB / 1.356 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.586e-05/0.8731, allocations: 50.91 kB / 1.356 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.16e-05/0.8732, allocations: 24.84 kB / 1.356 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.8732, allocations: 1.25 kB / 1.356 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001329/0.8733, allocations: 86.2 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.277e-06/0.8733, allocations: 5 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.8733, allocations: 1.5 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.8734, allocations: 2.469 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.906e-05/0.8735, allocations: 17.39 kB / 1.357 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.8735, allocations: 2.953 kB / 1.357 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.812e-05/0.8735, allocations: 15.27 kB / 1.357 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.8736, allocations: 7.938 kB / 1.357 GB, free: 13.93 MB / 0.8073 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 () * 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 5.794e-05/0.8736, allocations: 108.2 kB / 1.357 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.688e-05/0.8736, allocations: 6.625 kB / 1.357 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.998e-05/0.8737, allocations: 11.72 kB / 1.357 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.8737, allocations: 0.8125 kB / 1.357 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.8737, allocations: 3.938 kB / 1.357 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.8737, allocations: 13.52 kB / 1.357 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000284/0.874, allocations: 316.5 kB / 1.357 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.874, allocations: 0.875 kB / 1.357 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.775e-05/0.8741, allocations: 6.031 kB / 1.357 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.8741, allocations: 5.094 kB / 1.357 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.8741, allocations: 2.406 kB / 1.357 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.8741, allocations: 4.844 kB / 1.357 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.8741, allocations: 1.812 kB / 1.357 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001415/0.8742, allocations: 179.1 kB / 1.357 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.132e-05/0.8743, allocations: 87.83 kB / 1.357 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.8743, allocations: 1.406 kB / 1.357 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.917e-05/0.8744, allocations: 6.219 kB / 1.357 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.8745, allocations: 5.906 kB / 1.357 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.8745, allocations: 2.953 kB / 1.357 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.13e-05/0.8745, allocations: 88.53 kB / 1.357 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002983/0.8748, allocations: 59 kB / 1.357 GB, free: 13.2 MB / 0.8073 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 () * 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.0003033/0.8751, allocations: 161.8 kB / 1.358 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001245/0.8752, allocations: 56.06 kB / 1.358 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.8753, allocations: 320 / 1.358 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.628e-05/0.8753, allocations: 32.77 kB / 1.358 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000182/0.8755, allocations: 12.64 kB / 1.358 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002815/0.8758, allocations: 94.78 kB / 1.358 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/0.8761, allocations: 0.7023 MB / 1.359 GB, free: 28.3 MB / 0.823 GB Notification: Performance of SimCode: time 2.3e-07/0.8761, allocations: 3.938 kB / 1.359 GB, free: 28.3 MB / 0.823 GB Notification: Performance of Templates: time 0.004263/0.8804, allocations: 1.627 MB / 1.36 GB, free: 28.14 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.sim & ./Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut.csv","../files/Buildings_9_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.f,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