Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 109.6 kB / 16.41 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001967/0.001967, allocations: 191.8 kB / 17.34 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.782/2.782, allocations: 474.5 MB / 0.7477 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 63.91 kB / 1.073 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8748/0.877, allocations: 160.3 MB / 1.229 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002307/0.8793, allocations: 1.216 MB / 1.23 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0008069/0.8802, allocations: 382.7 kB / 1.231 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.441e-05/0.8802, allocations: 0 / 1.231 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.997e-05/0.8802, allocations: 0 / 1.231 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 2.847e-05/0.8803, allocations: 0 / 1.231 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.8808, allocations: 95.64 kB / 1.231 GB, free: 9.336 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.212e-05/0.8809, allocations: 15.98 kB / 1.231 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.338e-05/0.8809, allocations: 4 kB / 1.231 GB, free: 9.316 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 2.334e-05/0.8809, allocations: 12 kB / 1.231 GB, free: 9.305 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 3.124e-05/0.881, allocations: 7.922 kB / 1.231 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.348e-05/0.881, allocations: 4 kB / 1.231 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.8812, allocations: 87.84 kB / 1.231 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.332e-05/0.8812, allocations: 0 / 1.231 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.982e-05/0.8812, allocations: 11.94 kB / 1.231 GB, free: 9.195 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.8814, allocations: 83.39 kB / 1.231 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.8814, allocations: 0 / 1.231 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8814, allocations: 0 / 1.231 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.8815, allocations: 0 / 1.231 GB, free: 9.117 MB / 0.9512 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.0005341/0.882, allocations: 382 kB / 1.231 GB, free: 8.688 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.882, allocations: 8.031 kB / 1.231 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.8821, allocations: 8.875 kB / 1.231 GB, free: 8.672 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.8822, allocations: 168.3 kB / 1.232 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.8822, allocations: 4.359 kB / 1.232 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.8823, allocations: 4.375 kB / 1.232 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.8824, allocations: 38.25 kB / 1.232 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.8824, allocations: 192 / 1.232 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.8824, allocations: 3.938 kB / 1.232 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.8824, allocations: 8 kB / 1.232 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.724e-05/0.8824, allocations: 3.938 kB / 1.232 GB, free: 8.402 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.8826, allocations: 157.7 kB / 1.232 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.447e-05/0.8827, allocations: 30.52 kB / 1.232 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.2e-05/0.8828, allocations: 8.859 kB / 1.232 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.8828, allocations: 96 / 1.232 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.8829, allocations: 67.34 kB / 1.232 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.8829, allocations: 0 / 1.232 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4): time 0.0002042/0.8831, allocations: 69.55 kB / 1.232 GB, free: 7.996 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.8832, allocations: 55.41 kB / 1.232 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.081e-05/0.8833, allocations: 93.86 kB / 1.232 GB, free: 7.828 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.8833, allocations: 29.7 kB / 1.232 GB, free: 7.793 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.189e-05/0.8834, allocations: 80.14 kB / 1.232 GB, free: 7.711 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.8834, allocations: 16.06 kB / 1.232 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.876e-05/0.8834, allocations: 21.72 kB / 1.232 GB, free: 7.668 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.8836, allocations: 310.8 kB / 1.232 GB, free: 7.355 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.371e-05/0.8836, allocations: 15.97 kB / 1.232 GB, free: 7.34 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.804e-05/0.8837, allocations: 27.44 kB / 1.233 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.856e-05/0.8837, allocations: 51.36 kB / 1.233 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.8837, allocations: 0 / 1.233 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001064/0.8838, allocations: 69.58 kB / 1.233 GB, free: 7.164 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.8839, allocations: 7.938 kB / 1.233 GB, free: 7.156 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.8839, allocations: 0 / 1.233 GB, free: 7.156 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.8839, allocations: 4 kB / 1.233 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.292e-05/0.884, allocations: 7.938 kB / 1.233 GB, free: 7.145 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.884, allocations: 12.08 kB / 1.233 GB, free: 7.133 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.142e-05/0.884, allocations: 0 / 1.233 GB, free: 7.133 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.884, allocations: 8 kB / 1.233 GB, free: 7.125 MB / 0.9512 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 (y,$PRE.y,curSeed,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.88e-05/0.8841, allocations: 117.7 kB / 1.233 GB, free: 7 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.8841, allocations: 3.938 kB / 1.233 GB, free: 6.996 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.464e-05/0.8842, allocations: 7.734 kB / 1.233 GB, free: 6.984 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.8842, allocations: 3.984 kB / 1.233 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.8842, allocations: 0 / 1.233 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.8842, allocations: 0 / 1.233 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001425/0.8843, allocations: 157.7 kB / 1.233 GB, free: 6.777 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.8843, allocations: 0 / 1.233 GB, free: 6.777 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.387e-05/0.8844, allocations: 4 kB / 1.233 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.625e-06/0.8844, allocations: 3.938 kB / 1.233 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.8844, allocations: 7.922 kB / 1.233 GB, free: 6.762 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.8844, allocations: 0 / 1.233 GB, free: 6.762 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.92e-07/0.8844, allocations: 0 / 1.233 GB, free: 6.762 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.8845, allocations: 89.08 kB / 1.233 GB, free: 6.656 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.178e-05/0.8846, allocations: 85.09 kB / 1.233 GB, free: 6.555 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.8846, allocations: 11.88 kB / 1.233 GB, free: 6.543 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.856e-05/0.8847, allocations: 0 / 1.233 GB, free: 6.543 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.444e-05/0.8847, allocations: 4 kB / 1.233 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.8847, allocations: 0 / 1.233 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.051e-05/0.8847, allocations: 75.28 kB / 1.233 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8847, allocations: 0 / 1.233 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002293/0.885, allocations: 35.92 kB / 1.233 GB, free: 6.43 MB / 0.9512 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003505/0.8853, allocations: 155 kB / 1.233 GB, free: 6.281 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001157/0.8855, allocations: 31.92 kB / 1.233 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-06/0.8855, allocations: 0 / 1.233 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 3.816e-05/0.8855, allocations: 15.94 kB / 1.233 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.8856, allocations: 3.984 kB / 1.233 GB, free: 6.23 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000233/0.8859, allocations: 110.4 kB / 1.234 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.8862, allocations: 0.6731 MB / 1.234 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.006e-05/0.8862, allocations: 7.984 kB / 1.234 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.625e-05/0.8863, allocations: 11.44 kB / 1.234 GB, free: 5.379 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/0.8863, allocations: 0 / 1.234 GB, free: 5.379 MB / 0.9512 GB Notification: Performance of Templates: time 0.003504/0.8898, allocations: 0.9669 MB / 1.235 GB, free: 4.414 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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