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.00747/0.00747, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00137/0.00137, allocations: 194.9 kB / 16.67 MB, free: 5.52 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.448/1.448, 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 9.1.3-maint.9.1.x/package.mo): time 2.352/2.352, allocations: 390.3 MB / 0.6648 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 59.91 kB / 0.9504 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9593/0.9608, allocations: 140.4 MB / 1.087 GB, free: 5.23 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002118/0.9629, allocations: 1.205 MB / 1.089 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007536/0.9637, allocations: 380.7 kB / 1.089 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.5e-05/0.9637, allocations: 0 / 1.089 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.232e-05/0.9638, allocations: 0.6094 kB / 1.089 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.181e-05/0.9638, allocations: 4.969 kB / 1.089 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004937/0.9643, allocations: 92.92 kB / 1.089 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.317e-05/0.9644, allocations: 22.61 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.965e-05/0.9644, allocations: 1.844 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.078e-05/0.9645, allocations: 10.45 kB / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.652e-05/0.9645, allocations: 4.281 kB / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.9645, allocations: 9.125 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.9647, allocations: 89.42 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.9647, allocations: 10.16 kB / 1.089 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.751e-05/0.9648, allocations: 7.469 kB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.965, allocations: 86 kB / 1.089 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.965, allocations: 0 / 1.089 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/0.965, allocations: 0 / 1.089 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.965, allocations: 1.219 kB / 1.089 GB, free: 4.016 MB / 0.8575 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.0003991/0.9654, allocations: 368.9 kB / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.9654, allocations: 13.41 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.58e-05/0.9655, allocations: 33.38 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.91e-05/0.9655, allocations: 6.469 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.956e-05/0.9656, allocations: 162.8 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.9656, allocations: 6.266 kB / 1.09 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.9656, allocations: 6.547 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.822e-05/0.9657, allocations: 42.16 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.9658, allocations: 3.938 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.876e-06/0.9658, allocations: 0.9688 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.9658, allocations: 4 kB / 1.09 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.427e-05/0.9658, allocations: 10.39 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002463/0.9661, allocations: 238 kB / 1.09 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.056e-05/0.9662, allocations: 36.73 kB / 1.09 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.601e-05/0.9662, allocations: 18.84 kB / 1.09 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-06/0.9662, allocations: 4.938 kB / 1.09 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001396/0.9664, allocations: 62.14 kB / 1.09 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.453e-06/0.9664, allocations: 0 / 1.09 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0002235/0.9666, allocations: 70.64 kB / 1.09 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/0.9666, allocations: 54.42 kB / 1.09 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.718e-05/0.9667, allocations: 97.45 kB / 1.09 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/0.9667, allocations: 31.5 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.867e-05/0.9668, allocations: 85.45 kB / 1.091 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.9668, allocations: 18.8 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.9668, allocations: 20.67 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.536e-05/0.9669, allocations: 313.3 kB / 1.091 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.787e-05/0.9669, allocations: 11.81 kB / 1.091 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.608e-05/0.967, allocations: 33.91 kB / 1.091 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.187e-05/0.967, allocations: 51.61 kB / 1.091 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.967, allocations: 5.219 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000108/0.9671, allocations: 67.44 kB / 1.091 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.9672, allocations: 6.766 kB / 1.091 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.9672, allocations: 1 kB / 1.091 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.9672, allocations: 5.688 kB / 1.091 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.497e-05/0.9673, allocations: 12.8 kB / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.9673, allocations: 6.172 kB / 1.091 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.692e-05/0.9673, allocations: 9.719 kB / 1.091 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.557e-06/0.9673, allocations: 3.156 kB / 1.091 GB, free: 2.125 MB / 0.8575 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 5.823e-05/0.9674, allocations: 120.8 kB / 1.091 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.074e-05/0.9674, allocations: 1.828 kB / 1.091 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.416e-05/0.9674, allocations: 9.531 kB / 1.091 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.9674, allocations: 1.344 kB / 1.091 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.9675, allocations: 0.7969 kB / 1.091 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.9675, allocations: 4 kB / 1.091 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.9677, allocations: 302.6 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.9677, allocations: 0.5156 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.812e-05/0.9677, allocations: 4.188 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.9677, allocations: 0 / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.477e-06/0.9677, allocations: 1.578 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.9677, allocations: 1 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.9677, allocations: 0 / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000129/0.9679, allocations: 169.7 kB / 1.092 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.132e-05/0.9679, allocations: 90.5 kB / 1.092 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.9679, allocations: 1.422 kB / 1.092 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.236e-05/0.968, allocations: 1.547 kB / 1.092 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.669e-05/0.968, allocations: 2.891 kB / 1.092 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.968, allocations: 5.703 kB / 1.092 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.081e-05/0.9681, allocations: 78.39 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.9681, allocations: 0 / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003029/0.9684, allocations: 35.42 kB / 1.092 GB, free: 1.324 MB / 0.8575 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.0006569/0.969, allocations: 0.7641 MB / 1.093 GB, free: 16.62 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001248/0.9692, allocations: 32.88 kB / 1.093 GB, free: 16.62 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.9692, allocations: 4 kB / 1.093 GB, free: 16.61 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.033e-05/0.9692, allocations: 14.03 kB / 1.093 GB, free: 16.61 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.9694, allocations: 2.453 kB / 1.093 GB, free: 16.61 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.9705, allocations: 1.252 MB / 1.094 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.9707, allocations: 0.6806 MB / 1.095 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.179e-05/0.9707, allocations: 3.438 kB / 1.095 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.486e-05/0.9707, allocations: 10.52 kB / 1.095 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/0.9707, allocations: 0 / 1.095 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0172/0.9879, allocations: 1.89 MB / 1.096 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.501/8.489, allocations: 16.09 kB / 1.096 GB, free: 14.23 MB / 0.8731 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