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.0008631/0.000863, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005383/0.005383, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.189/1.189, allocations: 223.3 MB / 240.3 MB, free: 5.355 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.538/2.538, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003607, allocations: 12 kB / 0.8729 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7322/0.7326, allocations: 153.8 MB / 1.023 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001321/0.734, allocations: 0.9332 MB / 1.024 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007555/0.7347, allocations: 390.8 kB / 1.024 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.7348, allocations: 0 / 1.024 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.744e-05/0.7348, allocations: 0 / 1.024 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.027e-05/0.7348, allocations: 0 / 1.024 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.7353, allocations: 83.8 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.664e-05/0.7353, allocations: 8 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.843e-05/0.7354, allocations: 4 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.143e-05/0.7354, allocations: 11.98 kB / 1.025 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 2.46e-05/0.7354, allocations: 7.922 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.116e-05/0.7354, allocations: 4 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001582/0.7356, allocations: 87.84 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.487e-05/0.7356, allocations: 7.984 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.259e-05/0.7357, allocations: 33.64 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.7358, allocations: 75.89 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.7358, allocations: 4 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.072e-06/0.7358, allocations: 0 / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.026e-06/0.7358, allocations: 0 / 1.025 GB, free: 14.22 MB / 0.7794 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.0003647/0.7362, allocations: 371.4 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.7363, allocations: 8.031 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.274e-05/0.7363, allocations: 38.73 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.92e-05/0.7363, allocations: 0.9375 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.013e-05/0.7364, allocations: 164.3 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.7364, allocations: 12.38 kB / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.7365, allocations: 384 / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.116e-05/0.7366, allocations: 42.23 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.7366, allocations: 3.938 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.7366, allocations: 3.984 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.287e-06/0.7366, allocations: 0 / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.854e-05/0.7366, allocations: 8 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002773/0.7369, allocations: 252.9 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.425e-05/0.737, allocations: 38.5 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.486e-05/0.737, allocations: 16.86 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.7371, allocations: 0 / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001393/0.7372, allocations: 59.39 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.443e-06/0.7372, allocations: 7.938 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.000186/0.7374, allocations: 73.62 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.7375, allocations: 51.41 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.652e-05/0.7375, allocations: 97.84 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.7375, allocations: 29.7 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.605e-05/0.7376, allocations: 80.14 kB / 1.026 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.7376, allocations: 19.75 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/0.7376, allocations: 13.7 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.7378, allocations: 323 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.062e-05/0.7378, allocations: 4 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.572e-05/0.7378, allocations: 35.42 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.943e-05/0.7379, allocations: 47.38 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.7379, allocations: 3.938 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001015/0.738, allocations: 77.55 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.738, allocations: 4 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.738, allocations: 4 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.7381, allocations: 3.938 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.692e-05/0.7381, allocations: 8 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.7381, allocations: 3.984 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.536e-05/0.7382, allocations: 8 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.7382, allocations: 0 / 1.027 GB, free: 12.08 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 7.193e-05/0.7382, allocations: 122.4 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.7383, allocations: 7.906 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.093e-05/0.7383, allocations: 3.562 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.7383, allocations: 4.031 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.7383, allocations: 3.984 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.7383, allocations: 0 / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002475/0.7386, allocations: 302.8 kB / 1.027 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.7386, allocations: 0 / 1.027 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.47e-05/0.7386, allocations: 0 / 1.027 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.7386, allocations: 8 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.7386, allocations: 0 / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.7386, allocations: 0 / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.7386, allocations: 0 / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.7388, allocations: 167.4 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.201e-05/0.7388, allocations: 81.05 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.7388, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.75e-05/0.7389, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.176e-05/0.7389, allocations: 11.92 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.7389, allocations: 4 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.323e-05/0.739, allocations: 83.28 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.739, allocations: 0 / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002631/0.7392, allocations: 31.92 kB / 1.027 GB, free: 11.16 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.0006412/0.7399, allocations: 0.7632 MB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.874e-05/0.74, allocations: 35.92 kB / 1.028 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.74, allocations: 3.938 kB / 1.028 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.373e-05/0.74, allocations: 12 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.7402, allocations: 4.75 kB / 1.028 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009412/0.7412, allocations: 1.249 MB / 1.029 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/0.7414, allocations: 0.6848 MB / 1.03 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.652e-05/0.7414, allocations: 0 / 1.03 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.465e-05/0.7415, allocations: 15.42 kB / 1.03 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.7415, allocations: 7.938 kB / 1.03 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.513/2.255, allocations: 1.652 MB / 1.032 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003312/2.255, allocations: 266.9 kB / 1.032 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/4.419, allocations: 1.828 kB / 1.032 GB, free: 6.457 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