Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_9_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.00126/0.00126, 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.001264/0.001264, allocations: 195.5 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.32/1.32, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.115/2.115, allocations: 390.3 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 67.91 kB / 0.8126 GB, free: 14.4 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4936/0.4947, allocations: 140.4 MB / 0.9497 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001598/0.4963, allocations: 1.207 MB / 0.9509 GB, free: 8.199 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005062/0.4968, allocations: 376.5 kB / 0.9513 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.984e-05/0.4968, allocations: 0 / 0.9513 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.129e-05/0.4969, allocations: 1.25 kB / 0.9513 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.694e-05/0.4969, allocations: 3.938 kB / 0.9513 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003741/0.4973, allocations: 98.17 kB / 0.9513 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.125e-05/0.4973, allocations: 19.64 kB / 0.9514 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.038e-05/0.4974, allocations: 1.375 kB / 0.9514 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.4974, allocations: 11.67 kB / 0.9514 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.179e-05/0.4974, allocations: 6.375 kB / 0.9514 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.789e-06/0.4974, allocations: 1.688 kB / 0.9514 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.4976, allocations: 88.56 kB / 0.9515 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.244e-05/0.4976, allocations: 5.359 kB / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.564e-05/0.4976, allocations: 9.312 kB / 0.9515 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.4977, allocations: 89.81 kB / 0.9516 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.4977, allocations: 0 / 0.9516 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.82e-07/0.4977, allocations: 1.125 kB / 0.9516 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.4978, allocations: 0 / 0.9516 GB, free: 7.715 MB / 0.7169 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.0002902/0.498, allocations: 377.7 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.4981, allocations: 10.12 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.4981, allocations: 31.88 kB / 0.952 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.146e-05/0.4981, allocations: 1.906 kB / 0.952 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.896e-05/0.4982, allocations: 161.5 kB / 0.9521 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.4982, allocations: 6.594 kB / 0.9521 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.4982, allocations: 10.52 kB / 0.9521 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.673e-05/0.4983, allocations: 44.23 kB / 0.9522 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.4983, allocations: 3.938 kB / 0.9522 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-06/0.4983, allocations: 0 / 0.9522 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.4983, allocations: 5.156 kB / 0.9522 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.581e-05/0.4984, allocations: 4.406 kB / 0.9522 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001946/0.4986, allocations: 246.3 kB / 0.9524 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.727e-05/0.4986, allocations: 37.78 kB / 0.9525 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.695e-05/0.4987, allocations: 12.45 kB / 0.9525 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-06/0.4987, allocations: 4.078 kB / 0.9525 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.053e-05/0.4988, allocations: 61.44 kB / 0.9525 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.4988, allocations: 4 kB / 0.9525 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001507/0.499, allocations: 72.52 kB / 0.9526 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.953e-05/0.499, allocations: 56.75 kB / 0.9527 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.224e-05/0.499, allocations: 92.58 kB / 0.9528 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.712e-06/0.499, allocations: 27.11 kB / 0.9528 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.035e-05/0.499, allocations: 84.14 kB / 0.9529 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.257e-05/0.4991, allocations: 18.2 kB / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/0.4991, allocations: 18.91 kB / 0.9529 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.043e-05/0.4991, allocations: 321.1 kB / 0.9532 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.889e-05/0.4991, allocations: 17.25 kB / 0.9532 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.3e-05/0.4992, allocations: 31.44 kB / 0.9533 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.291e-05/0.4992, allocations: 49.48 kB / 0.9533 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4992, allocations: 9.281 kB / 0.9533 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 7.846e-05/0.4993, allocations: 66 kB / 0.9534 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.4993, allocations: 9.547 kB / 0.9534 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.4993, allocations: 1.625 kB / 0.9534 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.4993, allocations: 1.156 kB / 0.9534 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.557e-05/0.4994, allocations: 11.59 kB / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.259e-06/0.4994, allocations: 5.438 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.99e-05/0.4994, allocations: 1.469 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.4994, allocations: 6.688 kB / 0.9534 GB, free: 5.762 MB / 0.7169 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 3.908e-05/0.4995, allocations: 120.5 kB / 0.9535 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.779e-06/0.4995, allocations: 5.641 kB / 0.9535 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.582e-05/0.4995, allocations: 7.797 kB / 0.9535 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.4995, allocations: 1.219 kB / 0.9535 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.4995, allocations: 9.094 kB / 0.9535 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.4995, allocations: 0 / 0.9535 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.4997, allocations: 299.9 kB / 0.9538 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4997, allocations: 0 / 0.9538 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.49e-05/0.4997, allocations: 8.203 kB / 0.9538 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.4997, allocations: 4 kB / 0.9538 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.4997, allocations: 1.344 kB / 0.9538 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.4997, allocations: 0 / 0.9538 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4997, allocations: 0 / 0.9538 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.023e-05/0.4998, allocations: 159.3 kB / 0.954 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.276e-05/0.4999, allocations: 86.5 kB / 0.9541 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.4999, allocations: 0 / 0.9541 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.666e-05/0.4999, allocations: 1.75 kB / 0.9541 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.714e-05/0.4999, allocations: 8.656 kB / 0.9541 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.4999, allocations: 1.625 kB / 0.9541 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.375e-05/0.5, allocations: 80.92 kB / 0.9542 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5, allocations: 1.156 kB / 0.9542 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002387/0.5002, allocations: 32.41 kB / 0.9542 GB, free: 4.938 MB / 0.7169 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.0004011/0.5006, allocations: 0.7645 MB / 0.9549 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.959e-05/0.5007, allocations: 36.8 kB / 0.955 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.5007, allocations: 4 kB / 0.955 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.078e-05/0.5008, allocations: 16.89 kB / 0.955 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001759/0.5009, allocations: 2.219 kB / 0.955 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005983/0.5015, allocations: 1.25 MB / 0.9562 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.794e-05/0.5016, allocations: 0.6815 MB / 0.9569 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.467e-05/0.5016, allocations: 5.562 kB / 0.9569 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.878e-05/0.5017, allocations: 14 kB / 0.9569 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5017, allocations: 0 / 0.9569 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.167/1.668, allocations: 1.874 MB / 0.9587 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/9.385, allocations: 6.531 kB / 0.9587 GB, free: 1.199 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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