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.007455/0.007455, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.001904/0.001904, allocations: 192 kB / 16.67 MB, free: 5.973 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.405/1.405, allocations: 222.9 MB / 240.4 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.579/2.579, allocations: 482.6 MB / 0.7551 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 67.66 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2878, allocations: 162.3 MB / 1.242 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002067/0.2899, allocations: 1.211 MB / 1.243 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0006696/0.2906, allocations: 383.1 kB / 1.243 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.227e-05/0.2906, allocations: 3.938 kB / 1.243 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.238e-05/0.2906, allocations: 0 / 1.243 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.983e-05/0.2906, allocations: 3.938 kB / 1.243 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004191/0.2911, allocations: 91.72 kB / 1.243 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.801e-05/0.2911, allocations: 23.84 kB / 1.243 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.261e-05/0.2912, allocations: 4 kB / 1.243 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.692e-05/0.2912, allocations: 4 kB / 1.243 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.702e-05/0.2912, allocations: 11.92 kB / 1.243 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.2913, allocations: 4 kB / 1.244 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.2914, allocations: 91.91 kB / 1.244 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.564e-05/0.2914, allocations: 3.984 kB / 1.244 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.468e-05/0.2915, allocations: 8 kB / 1.244 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.2916, allocations: 83.97 kB / 1.244 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.2917, allocations: 0 / 1.244 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2917, allocations: 4 kB / 1.244 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.2917, allocations: 0 / 1.244 GB, free: 7.02 MB / 0.9669 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.0004294/0.2921, allocations: 373 kB / 1.244 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.2921, allocations: 12.03 kB / 1.244 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.805e-05/0.2922, allocations: 38.75 kB / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.45e-05/0.2922, allocations: 0.9375 kB / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.2923, allocations: 164.4 kB / 1.244 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.2924, allocations: 384 / 1.244 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.2924, allocations: 4.375 kB / 1.244 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.756e-05/0.2925, allocations: 42.23 kB / 1.244 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2925, allocations: 7.875 kB / 1.244 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.543e-06/0.2925, allocations: 3.938 kB / 1.244 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.2925, allocations: 0 / 1.244 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.782e-05/0.2926, allocations: 8 kB / 1.244 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002863/0.2928, allocations: 252.9 kB / 1.245 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.568e-05/0.2929, allocations: 38.5 kB / 1.245 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.257e-05/0.293, allocations: 8.859 kB / 1.245 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 7.804e-06/0.293, allocations: 4 kB / 1.245 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001267/0.2931, allocations: 71.38 kB / 1.245 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.2931, allocations: 0 / 1.245 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.0001804/0.2933, allocations: 69.67 kB / 1.245 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.2934, allocations: 51.41 kB / 1.245 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.832e-05/0.2934, allocations: 97.86 kB / 1.245 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.2935, allocations: 25.7 kB / 1.245 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.376e-05/0.2935, allocations: 81.75 kB / 1.245 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.847e-05/0.2935, allocations: 23.89 kB / 1.245 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.2936, allocations: 17.72 kB / 1.245 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2937, allocations: 322.8 kB / 1.245 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.163e-05/0.2937, allocations: 7.984 kB / 1.245 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.753e-05/0.2938, allocations: 31.44 kB / 1.245 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.638e-05/0.2938, allocations: 59.59 kB / 1.245 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2939, allocations: 7.875 kB / 1.245 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001036/0.294, allocations: 69.62 kB / 1.245 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.294, allocations: 5.875 kB / 1.246 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.294, allocations: 4 kB / 1.246 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.294, allocations: 3.984 kB / 1.246 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.187e-05/0.2941, allocations: 12 kB / 1.246 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.2941, allocations: 3.938 kB / 1.246 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.508e-05/0.2941, allocations: 12.02 kB / 1.246 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-06/0.2941, allocations: 0 / 1.246 GB, free: 4.859 MB / 0.9669 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.364e-05/0.2942, allocations: 121.3 kB / 1.246 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-06/0.2942, allocations: 0 / 1.246 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.182e-05/0.2942, allocations: 11.55 kB / 1.246 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.2942, allocations: 0 / 1.246 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.2942, allocations: 0 / 1.246 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2942, allocations: 0 / 1.246 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002567/0.2945, allocations: 306.4 kB / 1.246 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2945, allocations: 0 / 1.246 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.542e-05/0.2945, allocations: 4 kB / 1.246 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.2945, allocations: 3.984 kB / 1.246 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.2946, allocations: 4 kB / 1.246 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.2946, allocations: 0 / 1.246 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2946, allocations: 0 / 1.246 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001467/0.2947, allocations: 159.5 kB / 1.246 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.706e-05/0.2948, allocations: 88.98 kB / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.2948, allocations: 4 kB / 1.246 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.562e-05/0.2948, allocations: 0 / 1.246 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.2949, allocations: 4 kB / 1.246 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.2949, allocations: 4 kB / 1.246 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.914e-05/0.2949, allocations: 79.28 kB / 1.246 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.044e-06/0.2949, allocations: 0 / 1.246 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000251/0.2952, allocations: 39.8 kB / 1.246 GB, free: 3.949 MB / 0.9669 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.0006594/0.2958, allocations: 0.7604 MB / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001002/0.2959, allocations: 35.92 kB / 1.247 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.296, allocations: 0 / 1.247 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.521e-05/0.296, allocations: 16.12 kB / 1.247 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.2962, allocations: 7.984 kB / 1.247 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009994/0.2972, allocations: 1.253 MB / 1.248 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.2975, allocations: 0.6768 MB / 1.249 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.619e-05/0.2975, allocations: 8.25 kB / 1.249 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.042e-05/0.2975, allocations: 11.44 kB / 1.249 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of SimCode: time 2.1e-07/0.2975, allocations: 0 / 1.249 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2729/0.5704, allocations: 1.901 MB / 1.251 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.437/8.007, allocations: 15.55 kB / 1.251 GB, free: 15.28 MB / 0.9825 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=400 --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