Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity") [: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 10.0.0-master/package.mo): time 2.025/2.025, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.001052/0.001052, allocations: 185.2 kB / 490.8 MB, free: 1.922 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.288/1.288, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008848/0.0008848, allocations: 87.75 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.504e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2352, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6553/0.8905, allocations: 151.3 MB / 1.359 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.8908, allocations: 84.05 kB / 1.359 GB, free: 17.17 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.009012/0.8998, allocations: 2.77 MB / 1.362 GB, free: 17.02 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.8998, allocations: 1.312 kB / 1.362 GB, free: 17.02 MB / 0.823 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.0004989/0.9003, allocations: 443.7 kB / 1.363 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.9004, allocations: 7.906 kB / 1.363 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.61e-05/0.9004, allocations: 10.66 kB / 1.363 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.293e-05/0.9005, allocations: 176.2 kB / 1.363 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.9006, allocations: 3.547 kB / 1.363 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.552e-05/0.9006, allocations: 5.625 kB / 1.363 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.693e-05/0.9007, allocations: 31.97 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.9008, allocations: 79.11 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.9009, allocations: 0 / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.9009, allocations: 0 / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.9009, allocations: 6.312 kB / 1.363 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004237/0.9013, allocations: 285.6 kB / 1.363 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001127/0.9014, allocations: 55.73 kB / 1.363 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.424e-05/0.9015, allocations: 34.59 kB / 1.363 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.9016, allocations: 6.016 kB / 1.363 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001116/0.9017, allocations: 87.64 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.9017, allocations: 0 / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0002731/0.902, allocations: 96.7 kB / 1.363 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.605e-05/0.902, allocations: 57.53 kB / 1.363 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.45e-05/0.9021, allocations: 119 kB / 1.364 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.9021, allocations: 26.77 kB / 1.364 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.743e-05/0.9022, allocations: 96.17 kB / 1.364 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.23e-05/0.9022, allocations: 20.94 kB / 1.364 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-06/0.9022, allocations: 0 / 1.364 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.9023, allocations: 320.8 kB / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.76e-05/0.9023, allocations: 19.62 kB / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.121e-05/0.9024, allocations: 59.3 kB / 1.364 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.158e-05/0.9025, allocations: 26.33 kB / 1.364 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.9025, allocations: 0.8438 kB / 1.364 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001657/0.9026, allocations: 107.9 kB / 1.364 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.9027, allocations: 7.375 kB / 1.364 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.9027, allocations: 2.562 kB / 1.364 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.9027, allocations: 6.469 kB / 1.364 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.9028, allocations: 22.42 kB / 1.364 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.9028, allocations: 3.797 kB / 1.364 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.856e-05/0.9029, allocations: 7.719 kB / 1.364 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.9029, allocations: 6.734 kB / 1.364 GB, free: 31.25 MB / 0.8386 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 () * 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 7.255e-05/0.903, allocations: 123.7 kB / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.903, allocations: 13.5 kB / 1.364 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.979e-05/0.903, allocations: 9.844 kB / 1.364 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.9031, allocations: 3.531 kB / 1.364 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.9031, allocations: 0 / 1.364 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.9031, allocations: 3.938 kB / 1.364 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003525/0.9034, allocations: 355.2 kB / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.9034, allocations: 0 / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.683e-05/0.9035, allocations: 11.45 kB / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.9035, allocations: 1.312 kB / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.9035, allocations: 2.562 kB / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.9035, allocations: 0 / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.9035, allocations: 2.484 kB / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002169/0.9038, allocations: 208.5 kB / 1.365 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.321e-05/0.9038, allocations: 85.64 kB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.9038, allocations: 1.156 kB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.9039, allocations: 11.09 kB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-05/0.904, allocations: 9.031 kB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.904, allocations: 5.125 kB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.091e-05/0.9041, allocations: 88.83 kB / 1.365 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003321/0.9044, allocations: 54.97 kB / 1.365 GB, free: 30.5 MB / 0.8386 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) * 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.0003263/0.9047, allocations: 178.6 kB / 1.365 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001471/0.9049, allocations: 66.91 kB / 1.365 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.9049, allocations: 1.5 kB / 1.365 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.92e-05/0.905, allocations: 41.03 kB / 1.365 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.9052, allocations: 19.31 kB / 1.365 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000308/0.9055, allocations: 120.3 kB / 1.366 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.9058, allocations: 0.7069 MB / 1.366 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/0.9058, allocations: 0 / 1.366 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of Templates: time 0.004322/0.9102, allocations: 1.883 MB / 1.368 GB, free: 29.44 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.sim & ./Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarIntensity.csv","../files/Buildings_latest_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.f,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