Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.218/2.218, allocations: 390.3 MB / 402.8 MB, free: 6.695 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 165 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 221.3 MB / 0.7915 GB, free: 5.453 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009941/0.0009941, allocations: 99.88 kB / 0.9317 GB, free: 5.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.736e-05/2.737e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2632, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8788/1.142, allocations: 150.2 MB / 1.365 GB, free: 3.918 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/1.142, allocations: 74.7 kB / 1.366 GB, free: 3.875 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.005987/1.148, allocations: 2.031 MB / 1.368 GB, free: 2.121 MB / 0.823 GB Notification: Performance of FrontEnd: time 3.697e-06/1.148, allocations: 0 / 1.368 GB, free: 2.121 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.48e-06/1.148, allocations: 3.938 kB / 1.368 GB, free: 2.117 MB / 0.823 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.0003958/1.149, allocations: 368.1 kB / 1.368 GB, free: 1.711 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/1.149, allocations: 12.02 kB / 1.368 GB, free: 1.699 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.54e-05/1.149, allocations: 34.56 kB / 1.368 GB, free: 1.656 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/1.149, allocations: 12.67 kB / 1.368 GB, free: 1.645 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/1.149, allocations: 163 kB / 1.368 GB, free: 1.445 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/1.149, allocations: 0 / 1.368 GB, free: 1.445 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/1.149, allocations: 7.188 kB / 1.368 GB, free: 1.441 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/1.149, allocations: 37.69 kB / 1.368 GB, free: 1.398 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/1.149, allocations: 7.922 kB / 1.368 GB, free: 1.391 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/1.149, allocations: 3.984 kB / 1.368 GB, free: 1.387 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/1.149, allocations: 0 / 1.368 GB, free: 1.387 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.979e-05/1.149, allocations: 11.38 kB / 1.368 GB, free: 1.379 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003082/1.15, allocations: 254.8 kB / 1.368 GB, free: 1.086 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.455e-05/1.15, allocations: 29.64 kB / 1.368 GB, free: 1.051 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.92e-05/1.15, allocations: 15.48 kB / 1.368 GB, free: 1.035 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 9.338e-06/1.15, allocations: 0 / 1.368 GB, free: 1.035 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001215/1.15, allocations: 61.61 kB / 1.369 GB, free: 0.9688 MB / 0.823 GB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/1.15, allocations: 0 / 1.369 GB, free: 0.9688 MB / 0.823 GB Notification: Performance of matching and sorting (n=5): time 0.0001793/1.15, allocations: 68.12 kB / 1.369 GB, free: 0.9062 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/1.15, allocations: 55.36 kB / 1.369 GB, free: 0.8398 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.529e-05/1.15, allocations: 92.69 kB / 1.369 GB, free: 0.7461 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/1.15, allocations: 25.7 kB / 1.369 GB, free: 0.7148 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 2.842e-05/1.15, allocations: 84.27 kB / 1.369 GB, free: 0.6289 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/1.15, allocations: 18.98 kB / 1.369 GB, free: 0.6133 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-06/1.15, allocations: 0 / 1.369 GB, free: 0.6133 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001247/1.15, allocations: 318.2 kB / 1.369 GB, free: 304 kB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.134e-05/1.15, allocations: 8 kB / 1.369 GB, free: 296 kB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.73e-05/1.151, allocations: 30.81 kB / 1.369 GB, free: 256 kB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.398e-05/1.151, allocations: 19.05 kB / 1.369 GB, free: 240 kB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/1.151, allocations: 3.938 kB / 1.369 GB, free: 236 kB / 0.823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001096/1.151, allocations: 68.11 kB / 1.369 GB, free: 168 kB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/1.151, allocations: 4 kB / 1.369 GB, free: 164 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/1.151, allocations: 4.156 kB / 1.369 GB, free: 160 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/1.151, allocations: 0 / 1.369 GB, free: 160 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.887e-05/1.151, allocations: 8 kB / 1.369 GB, free: 152 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/1.151, allocations: 3.984 kB / 1.369 GB, free: 148 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.9e-05/1.151, allocations: 19.3 kB / 1.369 GB, free: 132 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/1.151, allocations: 4.062 kB / 1.369 GB, free: 128 kB / 0.823 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 ($PRE.curSeed,curSeed,$whenCondition1,$PRE.$outputAlias_y,$outputAlias_y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.33e-05/1.151, allocations: 108.9 kB / 1.369 GB, free: 12 kB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.048e-05/1.151, allocations: 3.984 kB / 1.369 GB, free: 8 kB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.114e-05/1.151, allocations: 10.25 kB / 1.369 GB, free: 0 / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/1.151, allocations: 0 / 1.369 GB, free: 0 / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/1.151, allocations: 0 / 1.369 GB, free: 0 / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.044e-05/1.151, allocations: 0 / 1.369 GB, free: 0 / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000266/1.151, allocations: 290.4 kB / 1.37 GB, free: 15.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/1.151, allocations: 7.938 kB / 1.37 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.063e-05/1.151, allocations: 12.02 kB / 1.37 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/1.151, allocations: 3.984 kB / 1.37 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/1.151, allocations: 4 kB / 1.37 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/1.151, allocations: 0 / 1.37 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.151, allocations: 3.953 kB / 1.37 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/1.152, allocations: 158 kB / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.481e-05/1.152, allocations: 81.02 kB / 1.37 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/1.152, allocations: 0.875 kB / 1.37 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.07e-05/1.152, allocations: 4 kB / 1.37 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.662e-05/1.152, allocations: 4 kB / 1.37 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/1.152, allocations: 7.266 kB / 1.37 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.73e-05/1.152, allocations: 83.27 kB / 1.37 GB, free: 15.29 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.152, allocations: 0 / 1.37 GB, free: 15.29 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.00026/1.152, allocations: 35.62 kB / 1.37 GB, free: 15.26 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007129/1.153, allocations: 0.7789 MB / 1.371 GB, free: 14.48 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000101/1.153, allocations: 30.5 kB / 1.371 GB, free: 14.46 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/1.153, allocations: 0 / 1.371 GB, free: 14.46 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.474e-05/1.153, allocations: 15.17 kB / 1.371 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/1.153, allocations: 8.672 kB / 1.371 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003866/1.153, allocations: 127.9 kB / 1.371 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/1.154, allocations: 0.677 MB / 1.372 GB, free: 13.58 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.272e-05/1.154, allocations: 4 kB / 1.372 GB, free: 13.58 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.826e-05/1.154, allocations: 7.438 kB / 1.372 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of SimCode: time 3.61e-07/1.154, allocations: 0 / 1.372 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01308/1.167, allocations: 1.864 MB / 1.374 GB, free: 11.88 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/1.167, allocations: 204.8 kB / 1.374 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.446/2.614, allocations: 1.562 kB / 1.374 GB, free: 11.66 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat does not exist to compare? outputFormat=mat