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.001365/0.001365, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.447/1.447, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.911/2.911, allocations: 472.7 MB / 0.7452 GB, free: 4.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 60.67 kB / 0.912 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3562, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002408/0.3587, allocations: 1.195 MB / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001029/0.3597, allocations: 384.9 kB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.101e-05/0.3598, allocations: 4 kB / 1.07 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.652e-05/0.3599, allocations: 3.938 kB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.348e-05/0.3599, allocations: 7.984 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007778/0.3607, allocations: 91.66 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.153e-05/0.3608, allocations: 15.98 kB / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.158e-05/0.3609, allocations: 4 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.448e-05/0.3609, allocations: 0 / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.435e-05/0.361, allocations: 19.91 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.361, allocations: 0 / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002537/0.3613, allocations: 91.86 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.97e-05/0.3613, allocations: 7.969 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.951e-05/0.3614, allocations: 11.94 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.3616, allocations: 75.89 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3616, allocations: 0 / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3616, allocations: 0 / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.3616, allocations: 0 / 1.07 GB, free: 8.488 MB / 0.8262 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.0005777/0.3622, allocations: 373.2 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.3622, allocations: 8.031 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.213e-05/0.3623, allocations: 8.938 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.3624, allocations: 168.5 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.3625, allocations: 384 / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.3625, allocations: 8.375 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.3626, allocations: 38.19 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.3626, allocations: 192 / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.3626, allocations: 3.938 kB / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.3626, allocations: 0 / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.731e-05/0.3627, allocations: 11.98 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002245/0.3629, allocations: 157.7 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.789e-05/0.363, allocations: 22.58 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.489e-05/0.3631, allocations: 20.98 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.3631, allocations: 0 / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/0.3633, allocations: 63.28 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.3633, allocations: 0 / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0002618/0.3636, allocations: 69.61 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.3636, allocations: 51.41 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.19e-05/0.3637, allocations: 105.8 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.3637, allocations: 25.7 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.001e-05/0.3638, allocations: 84.14 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.3638, allocations: 3.906 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.3639, allocations: 17.72 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.364, allocations: 322.8 kB / 1.072 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.084e-05/0.364, allocations: 7.938 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.67e-05/0.3641, allocations: 43.53 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.148e-05/0.3641, allocations: 43.38 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.3641, allocations: 0 / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.707e-05/0.3642, allocations: 73.66 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3643, allocations: 12.03 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.3643, allocations: 0 / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3643, allocations: 8.031 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.226e-05/0.3644, allocations: 7.984 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.3644, allocations: 4 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.592e-05/0.3644, allocations: 0 / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.3644, allocations: 7.938 kB / 1.072 GB, free: 6.496 MB / 0.8262 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 8.023e-05/0.3645, allocations: 111.7 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.407e-05/0.3645, allocations: 7.938 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.286e-05/0.3646, allocations: 7.5 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3646, allocations: 0 / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3646, allocations: 0 / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3646, allocations: 3.984 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.3647, allocations: 157.6 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3647, allocations: 0 / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.25e-05/0.3647, allocations: 4 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3647, allocations: 3.938 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.3648, allocations: 0 / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3648, allocations: 0 / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3648, allocations: 4 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001282/0.3649, allocations: 88.95 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.03e-05/0.3649, allocations: 81.11 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.365, allocations: 3.938 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.103e-05/0.365, allocations: 0 / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/0.365, allocations: 0 / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.365, allocations: 11.98 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.161e-05/0.3651, allocations: 79.28 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3651, allocations: 3.938 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000239/0.3653, allocations: 24 kB / 1.072 GB, free: 5.816 MB / 0.8262 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.0003756/0.3657, allocations: 159.6 kB / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001224/0.3658, allocations: 39.95 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3659, allocations: 4.281 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.967e-05/0.3659, allocations: 15.98 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.366, allocations: 0 / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002488/0.3663, allocations: 96.92 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.3666, allocations: 0.6768 MB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.159e-05/0.3666, allocations: 4 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.523e-05/0.3666, allocations: 11.38 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.3666, allocations: 4 kB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of Templates: time 0.003314/0.3699, allocations: 0.9603 MB / 1.074 GB, free: 3.801 MB / 0.8262 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 -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/jenkins/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