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: "" <> 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.006935/0.006935, allocations: 96.73 kB / 15.73 MB, free: 6.039 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.001831/0.001831, allocations: 197.6 kB / 16.68 MB, free: 5.969 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.47/1.47, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.921/2.921, allocations: 482.4 MB / 0.7548 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 72.09 kB / 1.083 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2804, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002249/0.2827, allocations: 1.206 MB / 1.243 GB, free: 9.016 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0007713/0.2835, allocations: 382.8 kB / 1.243 GB, free: 8.641 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.281e-05/0.2836, allocations: 3.938 kB / 1.243 GB, free: 8.637 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.646e-05/0.2836, allocations: 0 / 1.243 GB, free: 8.637 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.605e-05/0.2836, allocations: 0 / 1.243 GB, free: 8.637 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.2841, allocations: 99.64 kB / 1.243 GB, free: 8.539 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 5.78e-05/0.2842, allocations: 11.98 kB / 1.243 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.411e-05/0.2842, allocations: 7.938 kB / 1.243 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.938e-05/0.2842, allocations: 8 kB / 1.243 GB, free: 8.512 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.071e-05/0.2843, allocations: 7.922 kB / 1.243 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.082e-05/0.2843, allocations: 4 kB / 1.243 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001953/0.2845, allocations: 95.84 kB / 1.243 GB, free: 8.406 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.307e-05/0.2845, allocations: 0 / 1.243 GB, free: 8.406 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.814e-05/0.2846, allocations: 11.94 kB / 1.243 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.2847, allocations: 75.81 kB / 1.243 GB, free: 8.32 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2847, allocations: 4 kB / 1.243 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.432e-06/0.2847, allocations: 0 / 1.243 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.2848, allocations: 0 / 1.243 GB, free: 8.316 MB / 0.9981 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.0004668/0.2852, allocations: 380.9 kB / 1.244 GB, free: 7.887 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2853, allocations: 8.031 kB / 1.244 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.083e-05/0.2853, allocations: 42.73 kB / 1.244 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.366e-05/0.2854, allocations: 0.9375 kB / 1.244 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.2855, allocations: 164.3 kB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.2855, allocations: 4.375 kB / 1.244 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.2855, allocations: 384 / 1.244 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.2856, allocations: 42.25 kB / 1.244 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.2856, allocations: 7.938 kB / 1.244 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-06/0.2857, allocations: 0 / 1.244 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.2857, allocations: 0 / 1.244 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.181e-05/0.2857, allocations: 11.98 kB / 1.244 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003224/0.286, allocations: 252.9 kB / 1.244 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.669e-05/0.2861, allocations: 30.61 kB / 1.244 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.07e-05/0.2862, allocations: 20.84 kB / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.2862, allocations: 0 / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001392/0.2863, allocations: 63.39 kB / 1.244 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.2864, allocations: 0 / 1.244 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5): time 0.0001958/0.2866, allocations: 65.62 kB / 1.244 GB, free: 7.055 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.2866, allocations: 59.41 kB / 1.244 GB, free: 6.984 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.838e-05/0.2867, allocations: 97.84 kB / 1.244 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.2867, allocations: 25.7 kB / 1.245 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.984e-05/0.2868, allocations: 84.27 kB / 1.245 GB, free: 6.762 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.727e-05/0.2868, allocations: 15.84 kB / 1.245 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.2868, allocations: 25.7 kB / 1.245 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.287, allocations: 314.8 kB / 1.245 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.39e-05/0.287, allocations: 11.98 kB / 1.245 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.892e-05/0.287, allocations: 39.41 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.164e-05/0.2871, allocations: 51.36 kB / 1.245 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.2871, allocations: 3.938 kB / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001207/0.2873, allocations: 85.48 kB / 1.245 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.2873, allocations: 7.938 kB / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2873, allocations: 0 / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.2873, allocations: 4 kB / 1.245 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.849e-05/0.2874, allocations: 11.98 kB / 1.245 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.2874, allocations: 0 / 1.245 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.481e-05/0.2874, allocations: 8.016 kB / 1.245 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.2874, allocations: 4 kB / 1.245 GB, free: 6.145 MB / 0.9981 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 8.681e-05/0.2875, allocations: 118.3 kB / 1.245 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.2875, allocations: 0 / 1.245 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.245e-05/0.2876, allocations: 3.562 kB / 1.245 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2876, allocations: 0 / 1.245 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2876, allocations: 7.938 kB / 1.245 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2876, allocations: 0 / 1.245 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/0.2879, allocations: 298.6 kB / 1.246 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2879, allocations: 320 / 1.246 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.951e-05/0.2879, allocations: 4 kB / 1.246 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.2879, allocations: 4 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.2879, allocations: 0 / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.2879, allocations: 0 / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.288, allocations: 4 kB / 1.246 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001679/0.2881, allocations: 163.4 kB / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.957e-05/0.2882, allocations: 85.06 kB / 1.246 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.2882, allocations: 4 kB / 1.246 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.193e-05/0.2883, allocations: 0 / 1.246 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.282e-05/0.2883, allocations: 7.984 kB / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.2883, allocations: 4 kB / 1.246 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.733e-05/0.2884, allocations: 75.28 kB / 1.246 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2884, allocations: 0 / 1.246 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002923/0.2887, allocations: 43.8 kB / 1.246 GB, free: 5.234 MB / 0.9981 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.0007398/0.2894, allocations: 0.765 MB / 1.247 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001109/0.2895, allocations: 31.98 kB / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2895, allocations: 3.938 kB / 1.247 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.716e-05/0.2896, allocations: 16.12 kB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.2898, allocations: 4 kB / 1.247 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.2909, allocations: 1.242 MB / 1.248 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.2912, allocations: 0.6807 MB / 1.249 GB, free: 2.352 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.556e-05/0.2912, allocations: 4.25 kB / 1.249 GB, free: 2.348 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.701e-05/0.2912, allocations: 18.31 kB / 1.249 GB, free: 2.336 MB / 0.9981 GB Notification: Performance of SimCode: time 2.164e-06/0.2912, allocations: 0 / 1.249 GB, free: 2.336 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.3121, allocations: 1.917 MB / 1.251 GB, free: 0.5586 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.639/7.951, allocations: 4 kB / 1.251 GB, free: 0.5547 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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:time,y