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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.00119, allocations: 108 kB / 15.61 MB, free: 152 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.001005/0.001005, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.474/2.474, allocations: 461.9 MB / 0.7346 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 61.77 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3026, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002338/0.305, allocations: 1.209 MB / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007132/0.3057, allocations: 378.7 kB / 1.054 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.826e-05/0.3058, allocations: 0 / 1.054 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.675e-05/0.3058, allocations: 7.875 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.38e-05/0.3059, allocations: 0 / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005696/0.3064, allocations: 103.6 kB / 1.055 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.251e-05/0.3065, allocations: 15.98 kB / 1.055 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.362e-05/0.3066, allocations: 4 kB / 1.055 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.497e-05/0.3066, allocations: 15.92 kB / 1.055 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.087e-05/0.3066, allocations: 8 kB / 1.055 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.3066, allocations: 0 / 1.055 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.3068, allocations: 83.84 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.143e-05/0.3069, allocations: 11.98 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.416e-05/0.3069, allocations: 7.922 kB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.3071, allocations: 83.89 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3071, allocations: 0 / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.226e-06/0.3071, allocations: 0 / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.3071, allocations: 3.938 kB / 1.055 GB, free: 6.312 MB / 0.8106 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.0004327/0.3076, allocations: 373.5 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.3076, allocations: 8.625 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.271e-05/0.3077, allocations: 34.69 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.85e-05/0.3077, allocations: 8.938 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.884e-05/0.3078, allocations: 164.3 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.3078, allocations: 384 / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.3078, allocations: 8.312 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.308, allocations: 42.23 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.308, allocations: 7.938 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.308, allocations: 4 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.308, allocations: 0 / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.158e-05/0.308, allocations: 4 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002959/0.3083, allocations: 237 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.246e-05/0.3084, allocations: 42.44 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.707e-05/0.3085, allocations: 20.86 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.3085, allocations: 0 / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001362/0.3086, allocations: 55.48 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.282e-06/0.3086, allocations: 0 / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0001916/0.3088, allocations: 77.61 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.3089, allocations: 51.41 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.017e-05/0.309, allocations: 101.9 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.309, allocations: 25.7 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.044e-05/0.309, allocations: 84.14 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.309, allocations: 19.78 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.736e-05/0.3091, allocations: 21.72 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.279e-05/0.3092, allocations: 310.8 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.222e-05/0.3092, allocations: 11.98 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.811e-05/0.3092, allocations: 39.5 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.094e-05/0.3093, allocations: 59.28 kB / 1.056 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3093, allocations: 3.938 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001358/0.3094, allocations: 65.62 kB / 1.057 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.3095, allocations: 8 kB / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.3095, allocations: 3.984 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.3095, allocations: 4.312 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.025e-05/0.3096, allocations: 11.94 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.3096, allocations: 8 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.678e-05/0.3096, allocations: 11.84 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.3096, allocations: 4 kB / 1.057 GB, free: 4.152 MB / 0.8106 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 (curSeed,$PRE.curSeed,$whenCondition1,$outputAlias_y,$PRE.$outputAlias_y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 7.223e-05/0.3097, allocations: 111.3 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.281e-05/0.3097, allocations: 4 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.211e-05/0.3097, allocations: 11.55 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3097, allocations: 0 / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3098, allocations: 4 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.3098, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.31, allocations: 298.5 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.31, allocations: 0 / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.757e-05/0.31, allocations: 4 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.3101, allocations: 3.984 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.3101, allocations: 0 / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3101, allocations: 0 / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3101, allocations: 0 / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00014/0.3102, allocations: 167.4 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.321e-05/0.3103, allocations: 85 kB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.3103, allocations: 0 / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.854e-05/0.3103, allocations: 4 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.238e-05/0.3104, allocations: 0 / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.3104, allocations: 0 / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.49e-05/0.3104, allocations: 79.28 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3104, allocations: 4.094 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002669/0.3107, allocations: 35.92 kB / 1.057 GB, free: 3.262 MB / 0.8106 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,$outputAlias_y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.0006281/0.3113, allocations: 0.7678 MB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001097/0.3114, allocations: 35.92 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3115, allocations: 0 / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.729e-05/0.3115, allocations: 15.94 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001974/0.3117, allocations: 11.98 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009437/0.3126, allocations: 1.246 MB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.3129, allocations: 0.6768 MB / 1.06 GB, free: 380 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.859e-05/0.3129, allocations: 4 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.561e-05/0.3129, allocations: 7.438 kB / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3129, allocations: 4 kB / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7396/1.053, allocations: 1.874 MB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.773/7.826, allocations: 7.109 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > 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:p,seed,time,y