Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.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.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.397/2.397, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001147/0.001147, allocations: 171.3 kB / 498.1 MB, free: 5.742 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.511/1.511, allocations: 223.2 MB / 0.7949 GB, free: 17.98 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.001202/0.001202, allocations: 105.2 kB / 0.9346 GB, free: 6.262 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003971/0.0003974, allocations: 6.906 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.338, allocations: 142.3 MB / 1.223 GB, free: 114.4 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.5369, allocations: 149.4 MB / 1.369 GB, free: 12.77 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.5373, allocations: 79.89 kB / 1.369 GB, free: 12.69 MB / 0.8698 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 - DAE generated: time 0.006006/0.5433, allocations: 2.042 MB / 1.371 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.824e-06/0.5433, allocations: 0 / 1.371 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.5433, allocations: 0 / 1.371 GB, free: 10.64 MB / 0.8698 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.0004397/0.5438, allocations: 377.5 kB / 1.371 GB, free: 10.22 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.5438, allocations: 12.03 kB / 1.371 GB, free: 10.21 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.499e-05/0.5439, allocations: 3.906 kB / 1.371 GB, free: 10.21 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.544, allocations: 170.9 kB / 1.371 GB, free: 10 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.171e-05/0.544, allocations: 8 kB / 1.371 GB, free: 9.992 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.5441, allocations: 0 / 1.371 GB, free: 9.992 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/0.5442, allocations: 33.69 kB / 1.371 GB, free: 9.953 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.5442, allocations: 0 / 1.371 GB, free: 9.953 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.5442, allocations: 0 / 1.371 GB, free: 9.953 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.5443, allocations: 4 kB / 1.371 GB, free: 9.949 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.052e-05/0.5443, allocations: 7.984 kB / 1.371 GB, free: 9.941 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001899/0.5445, allocations: 157.6 kB / 1.372 GB, free: 9.738 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.06e-05/0.5446, allocations: 30.52 kB / 1.372 GB, free: 9.699 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.116e-05/0.5446, allocations: 144 / 1.372 GB, free: 9.699 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000146/0.5448, allocations: 59.38 kB / 1.372 GB, free: 9.629 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.5448, allocations: 4 kB / 1.372 GB, free: 9.625 MB / 0.8698 GB Notification: Performance of matching and sorting (n=4): time 0.0002422/0.545, allocations: 69.61 kB / 1.372 GB, free: 9.551 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.5451, allocations: 55.34 kB / 1.372 GB, free: 9.484 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.237e-05/0.5451, allocations: 93 kB / 1.372 GB, free: 9.387 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.5452, allocations: 25.7 kB / 1.372 GB, free: 9.355 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.569e-05/0.5452, allocations: 80.14 kB / 1.372 GB, free: 9.273 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.5453, allocations: 23.81 kB / 1.372 GB, free: 9.25 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-06/0.5453, allocations: 0 / 1.372 GB, free: 9.25 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.5454, allocations: 318.9 kB / 1.372 GB, free: 8.93 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.082e-05/0.5454, allocations: 8 kB / 1.372 GB, free: 8.922 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.322e-05/0.5455, allocations: 35.42 kB / 1.372 GB, free: 8.875 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.785e-05/0.5455, allocations: 8 kB / 1.372 GB, free: 8.867 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5455, allocations: 0 / 1.372 GB, free: 8.867 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.617e-05/0.5456, allocations: 73.47 kB / 1.372 GB, free: 8.789 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.5456, allocations: 8 kB / 1.372 GB, free: 8.781 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.5456, allocations: 0 / 1.372 GB, free: 8.781 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.5457, allocations: 0 / 1.372 GB, free: 8.781 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.794e-05/0.5457, allocations: 15.98 kB / 1.372 GB, free: 8.766 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.5458, allocations: 0 / 1.372 GB, free: 8.766 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.846e-05/0.5458, allocations: 8 kB / 1.372 GB, free: 8.758 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.5458, allocations: 0 / 1.372 GB, free: 8.758 MB / 0.8698 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 () * Number of clocked 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 9.255e-05/0.5459, allocations: 113.8 kB / 1.373 GB, free: 8.637 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-06/0.5459, allocations: 4.094 kB / 1.373 GB, free: 8.633 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.278e-05/0.546, allocations: 15.44 kB / 1.373 GB, free: 8.613 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.546, allocations: 0 / 1.373 GB, free: 8.613 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.546, allocations: 3.984 kB / 1.373 GB, free: 8.609 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.546, allocations: 0 / 1.373 GB, free: 8.609 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.5461, allocations: 153.6 kB / 1.373 GB, free: 8.41 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.5461, allocations: 0 / 1.373 GB, free: 8.41 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.019e-05/0.5461, allocations: 0 / 1.373 GB, free: 8.41 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.5462, allocations: 7.938 kB / 1.373 GB, free: 8.402 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.5462, allocations: 0 / 1.373 GB, free: 8.402 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5462, allocations: 4.156 kB / 1.373 GB, free: 8.398 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.5462, allocations: 0 / 1.373 GB, free: 8.398 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001257/0.5463, allocations: 89.02 kB / 1.373 GB, free: 8.293 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/0.5464, allocations: 81.06 kB / 1.373 GB, free: 8.195 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.5464, allocations: 4 kB / 1.373 GB, free: 8.191 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.018e-05/0.5464, allocations: 3.938 kB / 1.373 GB, free: 8.188 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.434e-05/0.5464, allocations: 0 / 1.373 GB, free: 8.188 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.5465, allocations: 3.984 kB / 1.373 GB, free: 8.184 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.472e-05/0.5465, allocations: 87.22 kB / 1.373 GB, free: 8.098 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5465, allocations: 0 / 1.373 GB, free: 8.098 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002533/0.5468, allocations: 36 kB / 1.373 GB, free: 8.062 MB / 0.8698 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 () * Number of clocked 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.0003704/0.5471, allocations: 181.5 kB / 1.373 GB, free: 7.895 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000107/0.5472, allocations: 28.14 kB / 1.373 GB, free: 7.867 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.5473, allocations: 3.938 kB / 1.373 GB, free: 7.863 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 3.547e-05/0.5473, allocations: 15.98 kB / 1.373 GB, free: 7.848 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.666e-05/0.5474, allocations: 0.6875 kB / 1.373 GB, free: 7.848 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00028/0.5477, allocations: 112.7 kB / 1.373 GB, free: 7.703 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/0.5479, allocations: 0.6809 MB / 1.374 GB, free: 6.996 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 2.348e-05/0.548, allocations: 4 kB / 1.374 GB, free: 6.992 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.548e-05/0.548, allocations: 15.5 kB / 1.374 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of SimCode: time 2.1e-07/0.548, allocations: 0 / 1.374 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of Templates: time 0.003339/0.5513, allocations: 1.105 MB / 1.375 GB, free: 5.871 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","../files/Buildings_9_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