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.001324/0.001324, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 193.4 kB / 16.53 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.536/2.536, allocations: 437.1 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.91 kB / 0.8693 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5205/0.5218, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002107/0.5239, allocations: 1.197 MB / 1.019 GB, free: 1.305 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006749/0.5246, allocations: 390.7 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.011e-05/0.5247, allocations: 3.938 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.454e-05/0.5247, allocations: 0 / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.012e-05/0.5247, allocations: 3.984 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004246/0.5252, allocations: 91.66 kB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.703e-05/0.5252, allocations: 15.98 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.238e-05/0.5253, allocations: 0 / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.915e-05/0.5253, allocations: 8 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.892e-05/0.5253, allocations: 11.91 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.15e-05/0.5253, allocations: 7.938 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.5255, allocations: 91.91 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.5255, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.102e-05/0.5256, allocations: 15.92 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.5257, allocations: 71.89 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.5257, allocations: 4 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5257, allocations: 3.938 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.5257, allocations: 0 / 1.019 GB, free: 0.5977 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.0004013/0.5261, allocations: 375.4 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.5262, allocations: 12.03 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.588e-05/0.5262, allocations: 38.73 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.399e-05/0.5263, allocations: 0.9375 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.5264, allocations: 164.4 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.5264, allocations: 384 / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.5264, allocations: 4.375 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.685e-05/0.5265, allocations: 42.23 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.5265, allocations: 3.938 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.5265, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.5266, allocations: 3.984 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.079e-05/0.5266, allocations: 11.94 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002782/0.5269, allocations: 252.9 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.448e-05/0.527, allocations: 38.5 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.36e-05/0.527, allocations: 12.86 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.527, allocations: 0 / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001228/0.5272, allocations: 71.42 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.302e-06/0.5272, allocations: 0 / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0001815/0.5274, allocations: 65.69 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.5274, allocations: 59.39 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.131e-05/0.5275, allocations: 93.86 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.5275, allocations: 25.7 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.545e-05/0.5275, allocations: 88.27 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.5275, allocations: 15.75 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.5276, allocations: 21.7 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.926e-05/0.5277, allocations: 318.8 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.003e-05/0.5277, allocations: 7.938 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.839e-05/0.5277, allocations: 39.36 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.127e-05/0.5278, allocations: 51.42 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.5278, allocations: 3.938 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.903e-05/0.5279, allocations: 69.56 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.5279, allocations: 4 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.5279, allocations: 7.938 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.5279, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.835e-05/0.528, allocations: 15.98 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.528, allocations: 4.203 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.432e-05/0.5281, allocations: 8 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.982e-06/0.5281, allocations: 0 / 1.021 GB, free: 14.44 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.802e-05/0.5281, allocations: 121.7 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.196e-05/0.5282, allocations: 3.906 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.945e-05/0.5282, allocations: 7.562 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.5282, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.5282, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.5282, allocations: 3.984 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002198/0.5284, allocations: 294.6 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.5284, allocations: 4.094 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.736e-05/0.5285, allocations: 0 / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.5285, allocations: 7.922 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.5285, allocations: 7.984 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.5285, allocations: 0 / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.5285, allocations: 320 / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001327/0.5286, allocations: 163.5 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.01e-05/0.5287, allocations: 85.05 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.5287, allocations: 3.984 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.153e-05/0.5287, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.592e-05/0.5288, allocations: 8 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-06/0.5288, allocations: 0 / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.769e-05/0.5288, allocations: 79.28 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5288, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000281/0.5291, allocations: 35.92 kB / 1.022 GB, free: 13.53 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.0005798/0.5297, allocations: 0.7656 MB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001038/0.5298, allocations: 39.92 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5298, allocations: 8.125 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.622e-05/0.5299, allocations: 12 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.5301, allocations: 1.719 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009088/0.531, allocations: 1.253 MB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000182/0.5312, allocations: 0.6768 MB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.941e-05/0.5312, allocations: 7.984 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.291e-05/0.5312, allocations: 8.562 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.5312, allocations: 0 / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01521/0.5465, allocations: 1.873 MB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.187/7.733, allocations: 8.516 kB / 1.026 GB, free: 8.871 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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:time,y