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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.479/1.479, allocations: 249.3 MB / 261.9 MB, free: 5.934 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.0009687/0.0009687, allocations: 172.8 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 205.2 MB / 0.572 GB, free: 10.66 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.0008271/0.0008271, allocations: 92.17 kB / 0.6764 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.698e-05/3.701e-05, allocations: 8 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1961/0.1962, allocations: 106.3 MB / 0.8918 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7935/0.9897, allocations: 131.7 MB / 1.02 GB, free: 3 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.99, allocations: 70.33 kB / 1.02 GB, free: 2.961 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 - DAE generated: time 0.0055/0.9955, allocations: 2.028 MB / 1.022 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.887e-06/0.9955, allocations: 0 / 1.022 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.9956, allocations: 3.938 kB / 1.022 GB, free: 1.195 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.0003761/0.9959, allocations: 364 kB / 1.023 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.303e-05/0.996, allocations: 12.03 kB / 1.023 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.54e-05/0.9961, allocations: 0 / 1.023 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.9963, allocations: 167 kB / 1.023 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.9963, allocations: 4 kB / 1.023 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.317e-05/0.9963, allocations: 7.938 kB / 1.023 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001057/0.9964, allocations: 37.38 kB / 1.023 GB, free: 0.5273 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.9964, allocations: 4 kB / 1.023 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.9965, allocations: 0 / 1.023 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.9965, allocations: 0.8125 kB / 1.023 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.982e-05/0.9965, allocations: 15.86 kB / 1.023 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001838/0.9967, allocations: 156.9 kB / 1.023 GB, free: 316 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.205e-05/0.9968, allocations: 27.92 kB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.88e-05/0.9968, allocations: 15.8 kB / 1.023 GB, free: 268 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.9968, allocations: 0 / 1.023 GB, free: 268 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001232/0.997, allocations: 54.23 kB / 1.023 GB, free: 204 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.997, allocations: 3.938 kB / 1.023 GB, free: 200 kB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001933/0.9972, allocations: 60.52 kB / 1.023 GB, free: 140 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.9972, allocations: 51.41 kB / 1.023 GB, free: 76 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.475e-05/0.9973, allocations: 96.5 kB / 1.024 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.9974, allocations: 25.7 kB / 1.024 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.986e-05/0.9974, allocations: 84.12 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.493e-05/0.9974, allocations: 11.84 kB / 1.024 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.9975, allocations: 0 / 1.024 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.9976, allocations: 314.8 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.898e-05/0.9976, allocations: 7.125 kB / 1.024 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.021e-05/0.9977, allocations: 39.59 kB / 1.024 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.916e-05/0.9977, allocations: 15.92 kB / 1.024 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.9977, allocations: 0 / 1.024 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001012/0.9978, allocations: 64.56 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.9978, allocations: 4 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.9978, allocations: 4 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.9979, allocations: 4.094 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.221e-05/0.9979, allocations: 8.547 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.9979, allocations: 4 kB / 1.024 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.399e-05/0.998, allocations: 0 / 1.024 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.998, allocations: 11.59 kB / 1.024 GB, free: 15.38 MB / 0.6511 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 7.932e-05/0.9981, allocations: 114.5 kB / 1.024 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.928e-06/0.9981, allocations: 7.906 kB / 1.024 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.9981, allocations: 5.688 kB / 1.024 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.9981, allocations: 3.938 kB / 1.024 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.9981, allocations: 4 kB / 1.024 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.9982, allocations: 0 / 1.024 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.9983, allocations: 157.2 kB / 1.024 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.9983, allocations: 0 / 1.024 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.4e-05/0.9983, allocations: 7.984 kB / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.9983, allocations: 0 / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.9983, allocations: 0 / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.9983, allocations: 0 / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.9983, allocations: 0 / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001356/0.9985, allocations: 95.17 kB / 1.024 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.64e-05/0.9985, allocations: 81.06 kB / 1.025 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.9986, allocations: 3.938 kB / 1.025 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.038e-05/0.9986, allocations: 0 / 1.025 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.74e-05/0.9986, allocations: 7.375 kB / 1.025 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.9986, allocations: 0 / 1.025 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.494e-05/0.9987, allocations: 79.27 kB / 1.025 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9987, allocations: 4 kB / 1.025 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002511/0.9989, allocations: 43.34 kB / 1.025 GB, free: 14.7 MB / 0.6511 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.0003518/0.9993, allocations: 160.2 kB / 1.025 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 9.294e-05/0.9994, allocations: 34.61 kB / 1.025 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.9994, allocations: 0 / 1.025 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.609e-05/0.9994, allocations: 8 kB / 1.025 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.485e-05/0.9995, allocations: 11.44 kB / 1.025 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002179/0.9998, allocations: 76.48 kB / 1.025 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/1, allocations: 0.6809 MB / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.145e-05/1, allocations: 0 / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.341e-05/1, allocations: 11.44 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of SimCode: time 8.72e-07/1, allocations: 0 / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of Templates: time 0.003237/1.003, allocations: 1.115 MB / 1.027 GB, free: 12.59 MB / 0.6511 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