Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.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.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") [: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 7.0.3-maint.7.0.x/package.mo): time 1.191/1.191, allocations: 249.4 MB / 256.7 MB, free: 7.004 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009576/0.0009575, allocations: 196.5 kB / 316 MB, free: 3.48 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.045/1.045, allocations: 205.2 MB / 0.5667 GB, free: 15.64 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.0007783/0.0007783, allocations: 87.34 kB / 0.671 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.33e-06/5.35e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1361, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3993/0.5355, allocations: 132 MB / 1.013 GB, free: 6.895 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001719/0.5357, allocations: 67.47 kB / 1.014 GB, free: 6.859 MB / 0.6355 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: time 0.004887/0.5406, allocations: 1.708 MB / 1.015 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.5406, allocations: 3.938 kB / 1.015 GB, free: 5.445 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000297/0.5409, allocations: 370.7 kB / 1.016 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.5409, allocations: 12.03 kB / 1.016 GB, free: 5.027 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.514e-05/0.541, allocations: 7.938 kB / 1.016 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.994e-05/0.5411, allocations: 163.1 kB / 1.016 GB, free: 4.82 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.5411, allocations: 0 / 1.016 GB, free: 4.82 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.5411, allocations: 7.906 kB / 1.016 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.326e-05/0.5412, allocations: 0 / 1.016 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.595e-05/0.5412, allocations: 33.69 kB / 1.016 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.5412, allocations: 3.938 kB / 1.016 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.5412, allocations: 4 kB / 1.016 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.5413, allocations: 0 / 1.016 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001174/0.5414, allocations: 133.5 kB / 1.016 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.31e-05/0.5414, allocations: 30.2 kB / 1.016 GB, free: 4.566 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.039e-05/0.5415, allocations: 8.859 kB / 1.016 GB, free: 4.555 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 8.786e-06/0.5415, allocations: 3.906 kB / 1.016 GB, free: 4.551 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.943e-05/0.5416, allocations: 55.23 kB / 1.016 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.5416, allocations: 0.9375 kB / 1.016 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001228/0.5417, allocations: 48.8 kB / 1.016 GB, free: 4.438 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/0.5417, allocations: 51.41 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.518e-05/0.5418, allocations: 92.5 kB / 1.016 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.5418, allocations: 25.7 kB / 1.016 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.566e-05/0.5418, allocations: 80.14 kB / 1.016 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.5419, allocations: 15.25 kB / 1.016 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.5419, allocations: 4.125 kB / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.548e-05/0.542, allocations: 321.2 kB / 1.017 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.426e-05/0.542, allocations: 7.812 kB / 1.017 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.491e-05/0.542, allocations: 31.38 kB / 1.017 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.993e-05/0.5421, allocations: 7.125 kB / 1.017 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.5421, allocations: 0 / 1.017 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.193e-05/0.5422, allocations: 65.17 kB / 1.017 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.216e-06/0.5422, allocations: 4 kB / 1.017 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.5422, allocations: 4 kB / 1.017 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.5422, allocations: 0 / 1.017 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.249e-05/0.5422, allocations: 11.91 kB / 1.017 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.5423, allocations: 3.938 kB / 1.017 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.117e-05/0.5423, allocations: 0 / 1.017 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.5423, allocations: 8.094 kB / 1.017 GB, free: 3.684 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y,y,$PRE.curSeed,curSeed,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 6.23e-05/0.5424, allocations: 113.5 kB / 1.017 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.5424, allocations: 15.88 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.144e-05/0.5424, allocations: 3.688 kB / 1.017 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.5424, allocations: 0 / 1.017 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.5424, allocations: 0 / 1.017 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.5424, allocations: 0 / 1.017 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.404e-05/0.5425, allocations: 134.2 kB / 1.017 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.5425, allocations: 0 / 1.017 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.308e-05/0.5426, allocations: 7.906 kB / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.5426, allocations: 0 / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.5426, allocations: 4 kB / 1.017 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.5426, allocations: 0 / 1.017 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.5426, allocations: 0 / 1.017 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.857e-05/0.5427, allocations: 83.77 kB / 1.017 GB, free: 3.277 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.71e-05/0.5427, allocations: 77.11 kB / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.5427, allocations: 0 / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.069e-05/0.5428, allocations: 0 / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.5428, allocations: 4 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.5428, allocations: 4 kB / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.32e-05/0.5428, allocations: 75.28 kB / 1.017 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002317/0.543, allocations: 42.8 kB / 1.017 GB, free: 3.062 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,y,curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002783/0.5433, allocations: 168.5 kB / 1.017 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.239e-05/0.5434, allocations: 31.83 kB / 1.018 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.5434, allocations: 4 kB / 1.018 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.959e-05/0.5434, allocations: 4 kB / 1.018 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.01e-05/0.5435, allocations: 7.906 kB / 1.018 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001731/0.5437, allocations: 67.66 kB / 1.018 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.5439, allocations: 0.6953 MB / 1.018 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of SimCode: time 2.61e-07/0.5439, allocations: 0 / 1.018 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of Templates: time 0.002908/0.5469, allocations: 1.147 MB / 1.019 GB, free: 0.9258 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:seed,t0,time,y