Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_10_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.001085/0.001085, 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.001176/0.001176, allocations: 193.7 kB / 16.14 MB, free: 6.648 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.302/1.302, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.464/2.464, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 71.89 kB / 0.8687 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6213/0.6227, allocations: 151.6 MB / 1.017 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002086/0.6249, allocations: 1.276 MB / 1.018 GB, free: 1.516 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007078/0.6256, allocations: 390.8 kB / 1.018 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.041e-05/0.6256, allocations: 3.938 kB / 1.018 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.03e-05/0.6257, allocations: 0 / 1.018 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.28e-05/0.6257, allocations: 0 / 1.018 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003909/0.6261, allocations: 75.8 kB / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.614e-05/0.6262, allocations: 15.98 kB / 1.018 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.321e-05/0.6262, allocations: 0 / 1.018 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.776e-05/0.6262, allocations: 4 kB / 1.018 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.915e-05/0.6263, allocations: 19.91 kB / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.112e-05/0.6263, allocations: 4 kB / 1.018 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.6264, allocations: 91.84 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.292e-05/0.6265, allocations: 0 / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.645e-05/0.6265, allocations: 11.92 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.6266, allocations: 79.89 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.6267, allocations: 0 / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of FrontEnd: time 7.02e-07/0.6267, allocations: 3.938 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.6267, allocations: 0 / 1.019 GB, free: 0.8281 MB / 0.7637 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.0004151/0.6271, allocations: 375.4 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.6271, allocations: 16.03 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.495e-05/0.6272, allocations: 38.73 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.247e-05/0.6272, allocations: 0.9375 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.146e-05/0.6273, allocations: 164.4 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.6273, allocations: 384 / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.6274, allocations: 8.312 kB / 1.019 GB, free: 140 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.041e-05/0.6275, allocations: 42.23 kB / 1.019 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.6275, allocations: 3.938 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.6275, allocations: 0 / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.6275, allocations: 7.984 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.014e-05/0.6275, allocations: 8 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002817/0.6278, allocations: 240.9 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.001e-05/0.6279, allocations: 42.44 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.38e-05/0.628, allocations: 16.86 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-06/0.628, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001109/0.6281, allocations: 63.48 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.203e-06/0.6281, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0001876/0.6283, allocations: 73.62 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.6283, allocations: 55.39 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.704e-05/0.6284, allocations: 97.86 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.6284, allocations: 25.7 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.865e-05/0.6284, allocations: 84.27 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.6285, allocations: 19.75 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.6285, allocations: 21.7 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.677e-05/0.6286, allocations: 314.8 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.156e-05/0.6286, allocations: 8 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.514e-05/0.6287, allocations: 35.42 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.867e-05/0.6287, allocations: 55.36 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.6287, allocations: 3.938 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001089/0.6288, allocations: 65.62 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.6289, allocations: 6.031 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.6289, allocations: 7.938 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.787e-06/0.6289, allocations: 0 / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.445e-05/0.629, allocations: 15.92 kB / 1.02 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.629, allocations: 4.062 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.401e-05/0.629, allocations: 8 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.629, allocations: 0 / 1.02 GB, free: 14.68 MB / 0.7794 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 6.614e-05/0.6291, allocations: 117.7 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.22e-05/0.6291, allocations: 7.906 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.058e-05/0.6291, allocations: 7.562 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.6291, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.6291, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.6291, allocations: 3.984 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.6294, allocations: 302.5 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.6294, allocations: 96 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.378e-05/0.6294, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.6294, allocations: 7.984 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.709e-06/0.6294, allocations: 3.984 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.6294, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.6294, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001296/0.6296, allocations: 167.7 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/0.6296, allocations: 85.05 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.6296, allocations: 3.984 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.07e-05/0.6297, allocations: 0 / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.154e-05/0.6297, allocations: 4 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.6297, allocations: 0 / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.887e-05/0.6297, allocations: 83.28 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6297, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002603/0.63, allocations: 31.92 kB / 1.021 GB, free: 13.77 MB / 0.7794 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.0005887/0.6306, allocations: 0.7701 MB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.634e-05/0.6307, allocations: 31.92 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.6307, allocations: 4.125 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.396e-05/0.6308, allocations: 15.94 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.631, allocations: 0 / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008754/0.6318, allocations: 1.259 MB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.6321, allocations: 0.6771 MB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.032e-05/0.6321, allocations: 3.984 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.332e-05/0.6321, allocations: 11.44 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.6321, allocations: 0 / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.195/2.827, allocations: 1.736 MB / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000303/2.828, allocations: 274.9 kB / 1.026 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/4.636, allocations: 11.81 kB / 1.026 GB, free: 8.922 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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