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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> 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.000906/0.000906, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008133/0.008133, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.344/1.344, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.745/2.745, allocations: 462.7 MB / 0.7364 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004029/0.0004029, allocations: 8.781 kB / 0.9029 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2977, allocations: 159.6 MB / 1.059 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001184/0.299, allocations: 0.9431 MB / 1.06 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007266/0.2997, allocations: 375 kB / 1.06 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.002e-05/0.2997, allocations: 3.938 kB / 1.06 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.43e-05/0.2998, allocations: 4 kB / 1.06 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.409e-05/0.2998, allocations: 0 / 1.06 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004023/0.3002, allocations: 79.78 kB / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.179e-05/0.3003, allocations: 11.98 kB / 1.06 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.733e-05/0.3003, allocations: 4 kB / 1.06 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.01e-05/0.3003, allocations: 7.938 kB / 1.06 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.49e-05/0.3004, allocations: 7.984 kB / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.3004, allocations: 4 kB / 1.06 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.3006, allocations: 91.84 kB / 1.06 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.3006, allocations: 3.984 kB / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.587e-05/0.3006, allocations: 41.62 kB / 1.06 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.3008, allocations: 75.89 kB / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.3008, allocations: 3.938 kB / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3008, allocations: 0 / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.656e-06/0.3008, allocations: 0 / 1.06 GB, free: 3.16 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.0003762/0.3012, allocations: 361.6 kB / 1.061 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.3013, allocations: 15.97 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.128e-05/0.3013, allocations: 34.69 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.913e-05/0.3013, allocations: 0.9375 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.669e-05/0.3014, allocations: 168.4 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.3015, allocations: 4.375 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.3015, allocations: 4.375 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.934e-05/0.3016, allocations: 42.19 kB / 1.061 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.3016, allocations: 3.938 kB / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.3016, allocations: 0 / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.3016, allocations: 0 / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.086e-05/0.3016, allocations: 11.98 kB / 1.061 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002933/0.3019, allocations: 252.9 kB / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.907e-05/0.302, allocations: 38.45 kB / 1.061 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.468e-05/0.3021, allocations: 20.94 kB / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.3021, allocations: 0 / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001261/0.3022, allocations: 55.41 kB / 1.061 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.3022, allocations: 0 / 1.061 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.000187/0.3024, allocations: 77.67 kB / 1.061 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.3025, allocations: 55.34 kB / 1.061 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.884e-05/0.3025, allocations: 97.84 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.3026, allocations: 29.7 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.601e-05/0.3026, allocations: 84.08 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.3026, allocations: 11.81 kB / 1.062 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.542e-05/0.3027, allocations: 21.84 kB / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.3028, allocations: 314.8 kB / 1.062 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.992e-05/0.3028, allocations: 11.94 kB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.835e-05/0.3028, allocations: 35.42 kB / 1.062 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.149e-05/0.3029, allocations: 55.36 kB / 1.062 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3029, allocations: 3.938 kB / 1.062 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000105/0.303, allocations: 69.61 kB / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.303, allocations: 8 kB / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.3031, allocations: 0 / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.188e-06/0.3031, allocations: 0 / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.637e-05/0.3031, allocations: 11.94 kB / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.3031, allocations: 0 / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.517e-05/0.3032, allocations: 11.94 kB / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.3032, allocations: 4 kB / 1.062 GB, free: 1.016 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.687e-05/0.3033, allocations: 117.8 kB / 1.062 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.261e-05/0.3033, allocations: 7.906 kB / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.853e-05/0.3033, allocations: 7.562 kB / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3033, allocations: 0 / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.3033, allocations: 0 / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.3033, allocations: 0 / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/0.3036, allocations: 302.5 kB / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3036, allocations: 0 / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.812e-05/0.3036, allocations: 8 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3036, allocations: 0 / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.3036, allocations: 0 / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3036, allocations: 0 / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3036, allocations: 0 / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.3038, allocations: 163.5 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.51e-05/0.3039, allocations: 81.05 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.026e-05/0.3039, allocations: 0 / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.041e-05/0.3039, allocations: 4.375 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.676e-05/0.304, allocations: 4 kB / 1.063 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.304, allocations: 3.984 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.247e-05/0.304, allocations: 83.28 kB / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/0.304, allocations: 0 / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002642/0.3043, allocations: 27.94 kB / 1.063 GB, free: 128 kB / 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.0006657/0.305, allocations: 0.7841 MB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.316e-05/0.3051, allocations: 31.92 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3051, allocations: 0 / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.28e-05/0.3051, allocations: 19.92 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.3053, allocations: 1.547 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.3063, allocations: 1.266 MB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.3066, allocations: 0.6809 MB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.932e-05/0.3066, allocations: 4.094 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.603e-05/0.3067, allocations: 15.38 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3067, allocations: 0 / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01194/0.3186, allocations: 1.647 MB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003869/0.319, allocations: 271.4 kB / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.118, allocations: 0 / 1.068 GB, free: 11.35 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