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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001342/0.001342, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001639/0.001639, allocations: 193.9 kB / 16.14 MB, free: 6.691 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.33/1.33, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.205/2.205, allocations: 390.2 MB / 0.6643 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 68.09 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7325/0.7337, allocations: 140.4 MB / 0.949 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001852/0.7356, allocations: 1.268 MB / 0.9503 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006196/0.7362, allocations: 392.6 kB / 0.9506 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.776e-05/0.7362, allocations: 5.312 kB / 0.9506 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.914e-05/0.7363, allocations: 0 / 0.9506 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.827e-05/0.7363, allocations: 0 / 0.9506 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003827/0.7367, allocations: 80.64 kB / 0.9507 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.229e-05/0.7367, allocations: 14.8 kB / 0.9507 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.7368, allocations: 1.312 kB / 0.9507 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.807e-05/0.7368, allocations: 4.688 kB / 0.9507 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.556e-05/0.7368, allocations: 18.19 kB / 0.9508 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.7369, allocations: 1.469 kB / 0.9508 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.737, allocations: 90.19 kB / 0.9508 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.636e-05/0.737, allocations: 6.25 kB / 0.9509 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.419e-05/0.7371, allocations: 2.25 kB / 0.9509 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.7372, allocations: 82.36 kB / 0.9509 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.7372, allocations: 0 / 0.9509 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.01e-07/0.7372, allocations: 0 / 0.9509 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.7372, allocations: 0 / 0.9509 GB, free: 7.676 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.0003494/0.7376, allocations: 382.4 kB / 0.9513 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.7376, allocations: 9.438 kB / 0.9513 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.516e-05/0.7377, allocations: 35.97 kB / 0.9513 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.51e-05/0.7377, allocations: 2.219 kB / 0.9513 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.079e-05/0.7378, allocations: 165.7 kB / 0.9515 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.7378, allocations: 1.625 kB / 0.9515 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.7378, allocations: 6.906 kB / 0.9515 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.697e-05/0.7379, allocations: 36.44 kB / 0.9515 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.7379, allocations: 7.875 kB / 0.9516 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.7379, allocations: 1.312 kB / 0.9516 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.7379, allocations: 4 kB / 0.9516 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.983e-05/0.738, allocations: 11.92 kB / 0.9516 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002366/0.7382, allocations: 243.3 kB / 0.9518 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.499e-05/0.7383, allocations: 34.05 kB / 0.9518 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.194e-05/0.7383, allocations: 27.45 kB / 0.9519 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.7384, allocations: 5.312 kB / 0.9519 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.988e-05/0.7385, allocations: 52.06 kB / 0.9519 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.753e-06/0.7385, allocations: 0 / 0.9519 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001747/0.7387, allocations: 81.05 kB / 0.952 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.7387, allocations: 52.78 kB / 0.952 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.185e-05/0.7387, allocations: 96.44 kB / 0.9521 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.887e-06/0.7387, allocations: 34.95 kB / 0.9522 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.707e-05/0.7388, allocations: 80.14 kB / 0.9522 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.313e-05/0.7388, allocations: 13.72 kB / 0.9523 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.7388, allocations: 24.12 kB / 0.9523 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.19e-05/0.7389, allocations: 315.9 kB / 0.9526 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.157e-05/0.7389, allocations: 9.969 kB / 0.9526 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.929e-05/0.7389, allocations: 30.98 kB / 0.9526 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.923e-05/0.739, allocations: 53.94 kB / 0.9527 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.739, allocations: 5.875 kB / 0.9527 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 8.856e-05/0.7391, allocations: 73.48 kB / 0.9527 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.7391, allocations: 4.906 kB / 0.9528 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.7391, allocations: 1.156 kB / 0.9528 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.7391, allocations: 1.5 kB / 0.9528 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.263e-05/0.7392, allocations: 12.16 kB / 0.9528 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.7392, allocations: 9.516 kB / 0.9528 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.319e-05/0.7392, allocations: 1.281 kB / 0.9528 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.7392, allocations: 7.703 kB / 0.9528 GB, free: 5.711 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 4.471e-05/0.7393, allocations: 120.1 kB / 0.9529 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.7393, allocations: 1.094 kB / 0.9529 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.768e-05/0.7393, allocations: 4.688 kB / 0.9529 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.7393, allocations: 0 / 0.9529 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.7393, allocations: 1.281 kB / 0.9529 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.7393, allocations: 4 kB / 0.9529 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.7395, allocations: 304.8 kB / 0.9532 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.7395, allocations: 0 / 0.9532 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.597e-05/0.7395, allocations: 6.625 kB / 0.9532 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.7395, allocations: 1.219 kB / 0.9532 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.7396, allocations: 0 / 0.9532 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.7396, allocations: 1.125 kB / 0.9532 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.7396, allocations: 3.938 kB / 0.9532 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.7397, allocations: 162.5 kB / 0.9534 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.77e-05/0.7397, allocations: 86.95 kB / 0.9535 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.7397, allocations: 4 kB / 0.9535 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.879e-05/0.7398, allocations: 1.5 kB / 0.9535 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.8e-05/0.7398, allocations: 5.391 kB / 0.9535 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.7398, allocations: 1.344 kB / 0.9535 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.685e-05/0.7398, allocations: 76.66 kB / 0.9535 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7398, allocations: 1.406 kB / 0.9535 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002489/0.7401, allocations: 37.31 kB / 0.9536 GB, free: 4.891 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.0004861/0.7406, allocations: 0.7598 MB / 0.9543 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.881e-05/0.7407, allocations: 41.7 kB / 0.9544 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.7407, allocations: 0 / 0.9544 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.755e-05/0.7407, allocations: 16.11 kB / 0.9544 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.7409, allocations: 2.656 kB / 0.9544 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000693/0.7416, allocations: 1.262 MB / 0.9556 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.856e-05/0.7417, allocations: 0.6785 MB / 0.9563 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.958e-05/0.7418, allocations: 2.719 kB / 0.9563 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.059e-05/0.7418, allocations: 12.73 kB / 0.9563 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.7418, allocations: 1.094 kB / 0.9563 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.28/2.022, allocations: 1.737 MB / 0.958 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/2.022, allocations: 265.3 kB / 0.9582 GB, free: 1 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/3.921, allocations: 3.562 kB / 0.9582 GB, free: 1 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