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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01309/0.01309, allocations: 102.2 kB / 15.73 MB, free: 6.031 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.002124/0.002124, allocations: 194.5 kB / 16.67 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.51/1.51, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.812/2.812, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 63.89 kB / 1.054 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3216, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002437/0.3241, allocations: 1.209 MB / 1.208 GB, free: 8.961 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0007829/0.3249, allocations: 374.8 kB / 1.209 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.01e-05/0.325, allocations: 7.938 kB / 1.209 GB, free: 8.586 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.325, allocations: 4 kB / 1.209 GB, free: 8.582 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.518e-05/0.3251, allocations: 0 / 1.209 GB, free: 8.582 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005664/0.3257, allocations: 91.66 kB / 1.209 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.065e-05/0.3258, allocations: 15.98 kB / 1.209 GB, free: 8.477 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.609e-05/0.3258, allocations: 0 / 1.209 GB, free: 8.477 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.213e-05/0.3259, allocations: 4 kB / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.595e-05/0.3259, allocations: 19.91 kB / 1.209 GB, free: 8.453 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.3259, allocations: 0 / 1.209 GB, free: 8.453 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.3261, allocations: 95.84 kB / 1.209 GB, free: 8.359 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.749e-05/0.3261, allocations: 0 / 1.209 GB, free: 8.359 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.198e-05/0.3262, allocations: 15.92 kB / 1.209 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.3264, allocations: 71.91 kB / 1.209 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3264, allocations: 0 / 1.209 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.877e-06/0.3264, allocations: 7.922 kB / 1.209 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.3264, allocations: 0 / 1.209 GB, free: 8.266 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.0004708/0.3269, allocations: 373.5 kB / 1.209 GB, free: 7.844 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3269, allocations: 8.625 kB / 1.209 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.309e-05/0.327, allocations: 50.58 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.657e-05/0.327, allocations: 0.9375 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.3271, allocations: 168.3 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.3272, allocations: 4.375 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.3272, allocations: 384 / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.3273, allocations: 42.25 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.3273, allocations: 3.938 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.3273, allocations: 3.984 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3273, allocations: 0 / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.335e-05/0.3274, allocations: 4 kB / 1.21 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003089/0.3277, allocations: 248.9 kB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.353e-05/0.3278, allocations: 34.5 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.561e-05/0.3278, allocations: 16.86 kB / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.3279, allocations: 0 / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/0.328, allocations: 67.48 kB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.894e-06/0.328, allocations: 0 / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.0002154/0.3283, allocations: 73.53 kB / 1.21 GB, free: 7 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.3283, allocations: 55.41 kB / 1.21 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.528e-05/0.3284, allocations: 97.84 kB / 1.21 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.3284, allocations: 29.7 kB / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.828e-05/0.3284, allocations: 80.14 kB / 1.21 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.3285, allocations: 7.906 kB / 1.21 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/0.3285, allocations: 29.83 kB / 1.21 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.164e-05/0.3286, allocations: 310.8 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.435e-05/0.3286, allocations: 8 kB / 1.211 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.811e-05/0.3287, allocations: 39.42 kB / 1.211 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.248e-05/0.3288, allocations: 55.34 kB / 1.211 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3288, allocations: 3.938 kB / 1.211 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000116/0.3289, allocations: 77.47 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3289, allocations: 4 kB / 1.211 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3289, allocations: 3.938 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3289, allocations: 4 kB / 1.211 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.443e-05/0.329, allocations: 7.984 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.329, allocations: 4 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.739e-05/0.3291, allocations: 7.938 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.3291, allocations: 4 kB / 1.211 GB, free: 6.109 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.421e-05/0.3291, allocations: 121.8 kB / 1.211 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.3292, allocations: 0 / 1.211 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.3292, allocations: 7.562 kB / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3292, allocations: 0 / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3292, allocations: 3.938 kB / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3292, allocations: 4 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.3295, allocations: 294.6 kB / 1.211 GB, free: 5.625 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3295, allocations: 0 / 1.211 GB, free: 5.625 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.906e-05/0.3295, allocations: 8 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3295, allocations: 0 / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.3295, allocations: 320 / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.3295, allocations: 3.984 kB / 1.211 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3295, allocations: 4 kB / 1.211 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001468/0.3297, allocations: 167.3 kB / 1.212 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.18e-05/0.3298, allocations: 81.11 kB / 1.212 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.3298, allocations: 0 / 1.212 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.4e-05/0.3298, allocations: 7.984 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.092e-05/0.3299, allocations: 0 / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/0.3299, allocations: 4 kB / 1.212 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.213e-05/0.3299, allocations: 79.28 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3299, allocations: 0 / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002879/0.3302, allocations: 35.92 kB / 1.212 GB, free: 5.207 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.0006881/0.3309, allocations: 0.7638 MB / 1.212 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001202/0.331, allocations: 27.98 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.331, allocations: 3.938 kB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.862e-05/0.3311, allocations: 12 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.3313, allocations: 9.656 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.3324, allocations: 1.273 MB / 1.214 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.3326, allocations: 0.6768 MB / 1.214 GB, free: 2.301 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.227e-05/0.3326, allocations: 4 kB / 1.214 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.94e-05/0.3327, allocations: 11.44 kB / 1.214 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of SimCode: time 2.134e-06/0.3327, allocations: 0 / 1.214 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01806/0.3507, allocations: 1.914 MB / 1.216 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.58/7.931, allocations: 24.41 kB / 1.216 GB, free: 500 kB / 0.9669 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=50 --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