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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001068/0.001069, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001005/0.001005, allocations: 189.2 kB / 16.25 MB, free: 6.633 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.273/1.273, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.441/2.441, allocations: 437 MB / 0.7101 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 67.89 kB / 0.8689 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6769/0.6781, allocations: 151.6 MB / 1.017 GB, free: 2.664 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002332/0.6805, allocations: 1.272 MB / 1.018 GB, free: 1.383 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007034/0.6812, allocations: 382.8 kB / 1.019 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.313e-05/0.6813, allocations: 3.938 kB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.6813, allocations: 0 / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.53e-05/0.6813, allocations: 0 / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005069/0.6818, allocations: 87.8 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.91e-05/0.6819, allocations: 11.98 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.497e-05/0.682, allocations: 7.984 kB / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.033e-05/0.682, allocations: 8 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.52e-05/0.682, allocations: 7.922 kB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.682, allocations: 4 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.6822, allocations: 91.84 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.29e-05/0.6822, allocations: 0 / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.985e-05/0.6823, allocations: 15.92 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.6824, allocations: 75.89 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.6824, allocations: 4 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.664e-06/0.6824, allocations: 4 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.6824, allocations: 0 / 1.019 GB, free: 0.6914 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.000415/0.6829, allocations: 375.4 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.6829, allocations: 12.03 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.131e-05/0.683, allocations: 34.73 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.536e-05/0.683, allocations: 0.9375 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.76e-05/0.6831, allocations: 168.4 kB / 1.019 GB, free: 12 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.6831, allocations: 4.375 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.6831, allocations: 8.375 kB / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.6832, allocations: 38.3 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.6833, allocations: 3.938 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.6833, allocations: 3.984 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.6833, allocations: 0 / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.854e-05/0.6833, allocations: 4 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002738/0.6836, allocations: 248.9 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.221e-05/0.6837, allocations: 46.44 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.289e-05/0.6837, allocations: 16.86 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.6838, allocations: 3.984 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000137/0.6839, allocations: 55.48 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.503e-06/0.6839, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0001864/0.6841, allocations: 77.62 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.6841, allocations: 55.34 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.597e-05/0.6842, allocations: 97.84 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.6842, allocations: 29.7 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.474e-05/0.6842, allocations: 80.14 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.6843, allocations: 15.75 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.182e-05/0.6843, allocations: 21.7 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.002e-05/0.6844, allocations: 323 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.876e-05/0.6844, allocations: 4 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.37e-05/0.6845, allocations: 35.42 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.401e-05/0.6845, allocations: 47.38 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.6845, allocations: 7.922 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.733e-05/0.6846, allocations: 73.62 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.6847, allocations: 4 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.6847, allocations: 4 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.6847, allocations: 3.828 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.697e-05/0.6847, allocations: 15.92 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.6847, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.362e-05/0.6848, allocations: 4 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-06/0.6848, allocations: 0 / 1.021 GB, free: 14.54 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.679e-05/0.6849, allocations: 122.4 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.092e-05/0.6849, allocations: 3.906 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.976e-05/0.6849, allocations: 7.562 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.6849, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.6849, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.6849, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.6851, allocations: 302.7 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.6851, allocations: 4.062 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.409e-05/0.6852, allocations: 4 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.6852, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.6852, allocations: 8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.6852, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.6852, allocations: 3.984 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001225/0.6853, allocations: 159.5 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.94e-05/0.6854, allocations: 81.05 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.6854, allocations: 3.938 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.085e-05/0.6854, allocations: 7.984 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.018e-05/0.6855, allocations: 4 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.6855, allocations: 7.938 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.927e-05/0.6855, allocations: 79.28 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6855, allocations: 0 / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002553/0.6858, allocations: 35.92 kB / 1.021 GB, free: 13.62 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.0005668/0.6863, allocations: 0.7616 MB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.805e-05/0.6865, allocations: 40.05 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.6865, allocations: 0 / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.535e-05/0.6865, allocations: 19.94 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001903/0.6867, allocations: 2.531 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008625/0.6876, allocations: 1.257 MB / 1.023 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/0.6878, allocations: 0.6729 MB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.726e-05/0.6878, allocations: 4.234 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.471e-05/0.6878, allocations: 15.44 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.6878, allocations: 4 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01603/0.7039, allocations: 1.788 MB / 1.026 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.7041, allocations: 266.9 kB / 1.026 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.609, allocations: 0 / 1.026 GB, free: 8.762 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