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.383/1.383, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001006/0.001006, allocations: 182.4 kB / 326.5 MB, free: 2.246 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.726/1.726, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.0009097/0.0009096, allocations: 96.12 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003288, allocations: 10.06 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2378, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1647/0.4026, allocations: 131.8 MB / 1.029 GB, free: 11.99 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.4029, allocations: 71.95 kB / 1.029 GB, free: 11.92 MB / 0.6823 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.00545/0.4083, allocations: 2.041 MB / 1.031 GB, free: 9.871 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.252e-06/0.4083, allocations: 0 / 1.031 GB, free: 9.871 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.266e-05/0.4084, allocations: 4 kB / 1.031 GB, free: 9.867 MB / 0.6823 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.0003881/0.4088, allocations: 372.9 kB / 1.031 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.4088, allocations: 8.031 kB / 1.031 GB, free: 9.441 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.285e-05/0.4089, allocations: 12 kB / 1.031 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.409, allocations: 167 kB / 1.031 GB, free: 9.227 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.409, allocations: 0 / 1.031 GB, free: 9.227 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.409, allocations: 7.984 kB / 1.031 GB, free: 9.219 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.841e-05/0.4091, allocations: 33.69 kB / 1.031 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.4091, allocations: 0 / 1.031 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.4092, allocations: 0 / 1.031 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.4092, allocations: 0 / 1.031 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.242e-05/0.4092, allocations: 11.94 kB / 1.031 GB, free: 9.168 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001662/0.4094, allocations: 161.6 kB / 1.032 GB, free: 8.961 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.452e-05/0.4095, allocations: 26.61 kB / 1.032 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-06/0.4095, allocations: 0 / 1.032 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001152/0.4096, allocations: 52.17 kB / 1.032 GB, free: 8.863 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.362e-06/0.4096, allocations: 0 / 1.032 GB, free: 8.863 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0002198/0.4098, allocations: 69.61 kB / 1.032 GB, free: 8.789 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.4099, allocations: 55.41 kB / 1.032 GB, free: 8.723 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.125e-05/0.41, allocations: 100.9 kB / 1.032 GB, free: 8.617 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.41, allocations: 25.7 kB / 1.032 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.841e-05/0.41, allocations: 80.14 kB / 1.032 GB, free: 8.504 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.4101, allocations: 11.89 kB / 1.032 GB, free: 8.492 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-06/0.4101, allocations: 0 / 1.032 GB, free: 8.492 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4102, allocations: 318.8 kB / 1.032 GB, free: 8.172 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.033e-05/0.4102, allocations: 11.98 kB / 1.032 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.112e-05/0.4103, allocations: 35.56 kB / 1.032 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.828e-05/0.4103, allocations: 11.89 kB / 1.032 GB, free: 8.102 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4103, allocations: 0 / 1.032 GB, free: 8.102 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.938e-05/0.4104, allocations: 69.61 kB / 1.032 GB, free: 8.027 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.4104, allocations: 4 kB / 1.032 GB, free: 8.023 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4105, allocations: 8.094 kB / 1.032 GB, free: 8.016 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.4105, allocations: 0 / 1.032 GB, free: 8.016 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.329e-05/0.4105, allocations: 12 kB / 1.032 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.4105, allocations: 0 / 1.032 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.329e-05/0.4106, allocations: 7.875 kB / 1.032 GB, free: 7.996 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.4106, allocations: 4.234 kB / 1.032 GB, free: 7.992 MB / 0.6823 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 8.604e-05/0.4107, allocations: 122.3 kB / 1.033 GB, free: 7.863 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.926e-06/0.4107, allocations: 3.906 kB / 1.033 GB, free: 7.859 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.628e-05/0.4107, allocations: 11.42 kB / 1.033 GB, free: 7.844 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.4107, allocations: 4 kB / 1.033 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.4108, allocations: 0 / 1.033 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.4108, allocations: 0 / 1.033 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.4109, allocations: 149.7 kB / 1.033 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4109, allocations: 3.953 kB / 1.033 GB, free: 7.641 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.137e-05/0.4109, allocations: 4 kB / 1.033 GB, free: 7.637 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4109, allocations: 0 / 1.033 GB, free: 7.637 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-06/0.4109, allocations: 4 kB / 1.033 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.4109, allocations: 0 / 1.033 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.4109, allocations: 4 kB / 1.033 GB, free: 7.629 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/0.4111, allocations: 89.05 kB / 1.033 GB, free: 7.523 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.289e-05/0.4111, allocations: 81.06 kB / 1.033 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.4112, allocations: 3.984 kB / 1.033 GB, free: 7.422 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.443e-05/0.4112, allocations: 4 kB / 1.033 GB, free: 7.418 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.048e-05/0.4112, allocations: 4 kB / 1.033 GB, free: 7.414 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.4112, allocations: 0 / 1.033 GB, free: 7.414 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 2.859e-05/0.4113, allocations: 75.28 kB / 1.033 GB, free: 7.34 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4113, allocations: 4.094 kB / 1.033 GB, free: 7.336 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002218/0.4115, allocations: 47.92 kB / 1.033 GB, free: 7.289 MB / 0.6823 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.0003414/0.4118, allocations: 157.9 kB / 1.033 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 9.736e-05/0.4119, allocations: 35.92 kB / 1.033 GB, free: 7.105 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.412, allocations: 3.938 kB / 1.033 GB, free: 7.102 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 3.371e-05/0.412, allocations: 12.33 kB / 1.033 GB, free: 7.09 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.395e-05/0.4121, allocations: 3.938 kB / 1.033 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002546/0.4124, allocations: 108.8 kB / 1.033 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.4126, allocations: 0.6809 MB / 1.034 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 1.894e-05/0.4126, allocations: 3.984 kB / 1.034 GB, free: 6.242 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.617e-05/0.4126, allocations: 11.44 kB / 1.034 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of SimCode: time 2.2e-07/0.4126, allocations: 3.938 kB / 1.034 GB, free: 6.227 MB / 0.6823 GB Notification: Performance of Templates: time 0.003032/0.4157, allocations: 1.113 MB / 1.035 GB, free: 5.121 MB / 0.6823 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