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.447/1.447, allocations: 249.5 MB / 257 MB, free: 6.973 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.001121/0.001121, allocations: 184.8 kB / 316.3 MB, free: 3.219 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.594/1.594, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.001057/0.001057, allocations: 100.4 kB / 0.6714 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.154e-05/2.156e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2519, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8541/1.106, allocations: 132 MB / 1.014 GB, free: 5.832 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/1.106, allocations: 69.64 kB / 1.014 GB, free: 5.793 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.005415/1.112, allocations: 2.021 MB / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.613e-06/1.112, allocations: 0.9375 kB / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.701e-06/1.112, allocations: 0 / 1.016 GB, free: 4.074 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.0003793/1.112, allocations: 368.1 kB / 1.017 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/1.112, allocations: 8.031 kB / 1.017 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/1.112, allocations: 3.984 kB / 1.017 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/1.112, allocations: 171.7 kB / 1.017 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/1.112, allocations: 3.938 kB / 1.017 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/1.113, allocations: 0 / 1.017 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.472e-05/1.113, allocations: 4 kB / 1.017 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.339e-05/1.113, allocations: 33.69 kB / 1.017 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/1.113, allocations: 3.938 kB / 1.017 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.966e-06/1.113, allocations: 0 / 1.017 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/1.113, allocations: 4 kB / 1.017 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/1.113, allocations: 140.5 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.898e-05/1.113, allocations: 30.53 kB / 1.017 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.417e-05/1.113, allocations: 12.84 kB / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/1.113, allocations: 0 / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001114/1.113, allocations: 55.34 kB / 1.017 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/1.113, allocations: 0 / 1.017 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001667/1.113, allocations: 57.27 kB / 1.017 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/1.113, allocations: 59.34 kB / 1.017 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.32e-05/1.113, allocations: 92.86 kB / 1.017 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/1.113, allocations: 25.7 kB / 1.017 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.401e-05/1.113, allocations: 86.67 kB / 1.017 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/1.113, allocations: 3.906 kB / 1.017 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/1.113, allocations: 4.125 kB / 1.017 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001303/1.114, allocations: 314.7 kB / 1.018 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.522e-05/1.114, allocations: 4 kB / 1.018 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.442e-05/1.114, allocations: 35.61 kB / 1.018 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.374e-05/1.114, allocations: 7.875 kB / 1.018 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/1.114, allocations: 4 kB / 1.018 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.669e-05/1.114, allocations: 65.27 kB / 1.018 GB, free: 2.332 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/1.114, allocations: 4 kB / 1.018 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/1.114, allocations: 0 / 1.018 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/1.114, allocations: 7.984 kB / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.16e-05/1.114, allocations: 7.938 kB / 1.018 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/1.114, allocations: 4 kB / 1.018 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.121e-05/1.114, allocations: 0 / 1.018 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/1.114, allocations: 4 kB / 1.018 GB, free: 2.305 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 8.333e-05/1.114, allocations: 109.2 kB / 1.018 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/1.114, allocations: 7.859 kB / 1.018 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/1.114, allocations: 8.062 kB / 1.018 GB, free: 2.168 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-06/1.114, allocations: 4 kB / 1.018 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/1.114, allocations: 3.984 kB / 1.018 GB, free: 2.16 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/1.114, allocations: 0 / 1.018 GB, free: 2.16 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/1.114, allocations: 130.1 kB / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/1.114, allocations: 0 / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.236e-05/1.114, allocations: 3.984 kB / 1.018 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/1.114, allocations: 4 kB / 1.018 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/1.114, allocations: 7.953 kB / 1.018 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.431e-06/1.114, allocations: 7.984 kB / 1.018 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.114, allocations: 0 / 1.018 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001091/1.114, allocations: 87.86 kB / 1.018 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/1.115, allocations: 77.11 kB / 1.018 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/1.115, allocations: 0 / 1.018 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.264e-05/1.115, allocations: 3.953 kB / 1.018 GB, free: 1.781 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.824e-05/1.115, allocations: 8 kB / 1.018 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/1.115, allocations: 0 / 1.018 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.518e-05/1.115, allocations: 79.27 kB / 1.018 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.21e-07/1.115, allocations: 0 / 1.018 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002367/1.115, allocations: 43.88 kB / 1.018 GB, free: 1.656 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.0003596/1.115, allocations: 159.1 kB / 1.018 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.905e-05/1.115, allocations: 27.8 kB / 1.018 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.115, allocations: 0 / 1.018 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.977e-05/1.115, allocations: 11.88 kB / 1.018 GB, free: 1.473 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.699e-05/1.116, allocations: 6.578 kB / 1.018 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002075/1.116, allocations: 71.38 kB / 1.019 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/1.116, allocations: 0.6807 MB / 1.019 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 1.849e-05/1.116, allocations: 4.188 kB / 1.019 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.651e-05/1.116, allocations: 11.44 kB / 1.019 GB, free: 0.6562 MB / 0.6355 GB Notification: Performance of SimCode: time 2.4e-07/1.116, allocations: 0 / 1.019 GB, free: 0.6562 MB / 0.6355 GB Notification: Performance of Templates: time 0.003051/1.119, allocations: 1.111 MB / 1.02 GB, free: 15.56 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