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.008366/0.008365, allocations: 99.66 kB / 15.73 MB, free: 6.477 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.00181/0.00181, allocations: 189.9 kB / 16.67 MB, free: 6.391 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.532/2.532, allocations: 390.3 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 66.39 kB / 0.9504 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3471, allocations: 140.4 MB / 1.087 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002409/0.3496, allocations: 1.211 MB / 1.089 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008033/0.3504, allocations: 379.1 kB / 1.089 GB, free: 480 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.523e-05/0.3504, allocations: 0 / 1.089 GB, free: 480 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.3505, allocations: 0 / 1.089 GB, free: 480 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.249e-05/0.3506, allocations: 0 / 1.089 GB, free: 480 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006219/0.3512, allocations: 95.64 kB / 1.089 GB, free: 384 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.15e-05/0.3513, allocations: 11.98 kB / 1.089 GB, free: 372 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.813e-05/0.3513, allocations: 7.938 kB / 1.089 GB, free: 364 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.662e-05/0.3514, allocations: 11.94 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.947e-05/0.3514, allocations: 3.984 kB / 1.089 GB, free: 348 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.3514, allocations: 4 kB / 1.089 GB, free: 344 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002062/0.3516, allocations: 91.91 kB / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.687e-05/0.3517, allocations: 7.922 kB / 1.089 GB, free: 244 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.708e-05/0.3517, allocations: 11.94 kB / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.3519, allocations: 79.83 kB / 1.089 GB, free: 152 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3519, allocations: 0 / 1.089 GB, free: 152 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3519, allocations: 3.938 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.352, allocations: 0 / 1.089 GB, free: 148 kB / 0.8419 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.0005375/0.3525, allocations: 376.1 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3526, allocations: 12.03 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.315e-05/0.3526, allocations: 34.75 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.591e-05/0.3527, allocations: 8.828 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.3528, allocations: 160.4 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.3528, allocations: 4.375 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.3528, allocations: 384 / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.353, allocations: 42.25 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.353, allocations: 3.938 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-06/0.353, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.353, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.659e-05/0.3531, allocations: 15.92 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003485/0.3534, allocations: 253 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.424e-05/0.3535, allocations: 30.52 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.501e-05/0.3536, allocations: 20.94 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.3536, allocations: 0 / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001427/0.3537, allocations: 67.33 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.673e-06/0.3537, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0002188/0.354, allocations: 65.69 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.354, allocations: 55.41 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.397e-05/0.3541, allocations: 97.84 kB / 1.09 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.3541, allocations: 25.7 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.288e-05/0.3541, allocations: 88.27 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.3542, allocations: 12.66 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.053e-05/0.3542, allocations: 21.7 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.3543, allocations: 314.8 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.535e-05/0.3544, allocations: 8 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.213e-05/0.3544, allocations: 43.3 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.105e-05/0.3545, allocations: 51.36 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3545, allocations: 7.938 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001086/0.3546, allocations: 73.61 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.3546, allocations: 4 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3546, allocations: 0 / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.3546, allocations: 4 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.44e-05/0.3547, allocations: 8 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.3547, allocations: 8.234 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.62e-05/0.3548, allocations: 11.84 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.3548, allocations: 8 kB / 1.091 GB, free: 13.98 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 8.35e-05/0.3549, allocations: 121.7 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.3549, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.592e-05/0.3549, allocations: 3.562 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3549, allocations: 4 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3549, allocations: 0 / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3549, allocations: 0 / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002499/0.3552, allocations: 298.6 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3552, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.108e-05/0.3552, allocations: 7.938 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.3552, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.295e-06/0.3553, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3553, allocations: 4 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3553, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.3554, allocations: 160.9 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.398e-05/0.3555, allocations: 89.02 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.3555, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.974e-05/0.3555, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.84e-05/0.3556, allocations: 11.98 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.3556, allocations: 0 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.992e-05/0.3556, allocations: 75.28 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3556, allocations: 0 / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003073/0.3559, allocations: 39.92 kB / 1.092 GB, free: 13.09 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.0006879/0.3566, allocations: 0.7692 MB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001297/0.3568, allocations: 35.92 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3568, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.059e-05/0.3568, allocations: 20.12 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.3571, allocations: 6.125 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.3582, allocations: 1.253 MB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.3584, allocations: 0.6768 MB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.455e-05/0.3585, allocations: 8 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.382e-05/0.3585, allocations: 11.44 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.3585, allocations: 0 / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0188/0.3773, allocations: 1.908 MB / 1.097 GB, free: 8.398 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.817/8.195, allocations: 18.28 kB / 1.097 GB, free: 8.383 MB / 0.8575 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