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.007732/0.007732, allocations: 97.62 kB / 15.73 MB, free: 6.055 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.002027/0.002027, allocations: 198.4 kB / 16.68 MB, free: 5.961 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.188/2.188, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 55.91 kB / 0.9504 GB, free: 8.203 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7383/0.7397, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002016/0.7418, allocations: 1.205 MB / 1.089 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006488/0.7424, allocations: 384.9 kB / 1.089 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.169e-05/0.7424, allocations: 0.9688 kB / 1.089 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.674e-05/0.7425, allocations: 0 / 1.089 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.096e-05/0.7425, allocations: 3.938 kB / 1.089 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004479/0.743, allocations: 93.92 kB / 1.089 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.735e-05/0.743, allocations: 25.89 kB / 1.089 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.807e-05/0.7431, allocations: 7.438 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.914e-05/0.7431, allocations: 4.234 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.606e-05/0.7431, allocations: 5.359 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.7431, allocations: 0 / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.7433, allocations: 93.72 kB / 1.089 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.563e-05/0.7433, allocations: 10.39 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.7434, allocations: 8.906 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001839/0.7436, allocations: 83.56 kB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.7436, allocations: 0 / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7436, allocations: 0 / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.7436, allocations: 1.125 kB / 1.089 GB, free: 4.07 MB / 0.8575 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.0003904/0.744, allocations: 371.5 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.744, allocations: 9.656 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.085e-05/0.7441, allocations: 36.89 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.7441, allocations: 6.734 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.037e-05/0.7442, allocations: 162.7 kB / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.7442, allocations: 6 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.7442, allocations: 3.469 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.689e-05/0.7443, allocations: 41.08 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.7444, allocations: 5.125 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.355e-06/0.7444, allocations: 0 / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.7444, allocations: 1.281 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.161e-05/0.7444, allocations: 9.438 kB / 1.09 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002513/0.7447, allocations: 242.2 kB / 1.09 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.322e-05/0.7448, allocations: 39.86 kB / 1.09 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.677e-05/0.7448, allocations: 19.39 kB / 1.09 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.7448, allocations: 7.875 kB / 1.09 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001189/0.7449, allocations: 59.7 kB / 1.09 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.362e-06/0.745, allocations: 0 / 1.09 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0001841/0.7451, allocations: 70.58 kB / 1.09 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.7452, allocations: 54.23 kB / 1.09 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.176e-05/0.7452, allocations: 97.5 kB / 1.09 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.197e-06/0.7452, allocations: 35.78 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.335e-05/0.7453, allocations: 80.14 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.7453, allocations: 19.5 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.7453, allocations: 21.64 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.492e-05/0.7454, allocations: 313 kB / 1.091 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.416e-05/0.7454, allocations: 10.97 kB / 1.091 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.251e-05/0.7454, allocations: 33.39 kB / 1.091 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.468e-05/0.7455, allocations: 52.66 kB / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.7455, allocations: 7.875 kB / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.491e-05/0.7456, allocations: 73.09 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.7456, allocations: 5.281 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.7456, allocations: 2.016 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.7456, allocations: 2.156 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.608e-05/0.7457, allocations: 13 kB / 1.091 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.7457, allocations: 1.344 kB / 1.091 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.48e-05/0.7457, allocations: 6.344 kB / 1.091 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.7457, allocations: 2.344 kB / 1.091 GB, free: 2.18 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 4.761e-05/0.7458, allocations: 117.7 kB / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.232e-05/0.7458, allocations: 6.688 kB / 1.091 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.104e-05/0.7458, allocations: 7.562 kB / 1.091 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.7458, allocations: 1.703 kB / 1.091 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.7459, allocations: 0 / 1.091 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.7459, allocations: 1.719 kB / 1.091 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.746, allocations: 309.7 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.7461, allocations: 1.219 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.757e-05/0.7461, allocations: 2.781 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.7461, allocations: 0.9688 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.7461, allocations: 1.734 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.7461, allocations: 0.9062 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.7461, allocations: 0 / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.7462, allocations: 168.9 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.54e-05/0.7463, allocations: 87.48 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.7463, allocations: 1.375 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.145e-05/0.7463, allocations: 0.7188 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.7463, allocations: 3.391 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.423e-06/0.7464, allocations: 6.781 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.612e-05/0.7464, allocations: 76.95 kB / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7464, allocations: 0 / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002847/0.7467, allocations: 39.75 kB / 1.092 GB, free: 1.375 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.0005879/0.7473, allocations: 0.7681 MB / 1.093 GB, free: 16.67 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001049/0.7474, allocations: 32.45 kB / 1.093 GB, free: 16.66 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.7474, allocations: 0 / 1.093 GB, free: 16.66 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.765e-05/0.7474, allocations: 18.61 kB / 1.093 GB, free: 16.66 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.7476, allocations: 2.484 kB / 1.093 GB, free: 16.66 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008996/0.7486, allocations: 1.246 MB / 1.094 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.7488, allocations: 0.677 MB / 1.095 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.096e-05/0.7488, allocations: 8.984 kB / 1.095 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.318e-05/0.7488, allocations: 9.5 kB / 1.095 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of SimCode: time 9.02e-07/0.7488, allocations: 0 / 1.095 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01747/0.7663, allocations: 1.892 MB / 1.096 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.4/8.167, allocations: 13.78 kB / 1.096 GB, free: 14.29 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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:time,y