Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Logit2D,fileNamePrefix="Buildings_9_Buildings_Occupants_BaseClasses_Validation_Logit2D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Logit2D,fileNamePrefix="Buildings_9_Buildings_Occupants_BaseClasses_Validation_Logit2D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.338/2.338, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001062/0.001062, allocations: 178.6 kB / 498.1 MB, free: 5.75 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 223.1 MB / 0.7948 GB, free: 18.7 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.0008763/0.0008763, allocations: 95.09 kB / 0.9346 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003967, allocations: 8.938 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2992, allocations: 142.4 MB / 1.223 GB, free: 89.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/0.4945, allocations: 149.6 MB / 1.369 GB, free: 3.66 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/0.4948, allocations: 79.95 kB / 1.369 GB, free: 3.582 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.006349/0.5012, allocations: 2.332 MB / 1.371 GB, free: 1.246 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5012, allocations: 0 / 1.371 GB, free: 1.246 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.5012, allocations: 4 kB / 1.371 GB, free: 1.242 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004125/0.5016, allocations: 394.3 kB / 1.372 GB, free: 0.8047 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.5017, allocations: 12.03 kB / 1.372 GB, free: 0.793 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.662e-05/0.5017, allocations: 38.55 kB / 1.372 GB, free: 0.7461 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.76e-05/0.5018, allocations: 3.953 kB / 1.372 GB, free: 0.7422 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.938e-05/0.5019, allocations: 170.9 kB / 1.372 GB, free: 0.5352 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.5019, allocations: 0 / 1.372 GB, free: 0.5352 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.5019, allocations: 4 kB / 1.372 GB, free: 0.5312 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.5021, allocations: 53.61 kB / 1.372 GB, free: 484 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.5021, allocations: 0 / 1.372 GB, free: 484 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.5021, allocations: 0 / 1.372 GB, free: 484 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.5021, allocations: 0 / 1.372 GB, free: 484 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.105e-05/0.5021, allocations: 15.95 kB / 1.372 GB, free: 468 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003234/0.5025, allocations: 249 kB / 1.372 GB, free: 168 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.791e-05/0.5026, allocations: 38.5 kB / 1.372 GB, free: 120 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.5026, allocations: 0 / 1.372 GB, free: 120 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001211/0.5027, allocations: 67.45 kB / 1.372 GB, free: 40 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.5027, allocations: 0 / 1.372 GB, free: 40 kB / 0.8698 GB Notification: Performance of matching and sorting (n=6): time 0.0002221/0.5029, allocations: 77.64 kB / 1.372 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.503, allocations: 51.41 kB / 1.373 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.937e-05/0.5031, allocations: 108.8 kB / 1.373 GB, free: 15.78 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.5031, allocations: 29.7 kB / 1.373 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/0.5031, allocations: 88.08 kB / 1.373 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.5032, allocations: 19.73 kB / 1.373 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.5032, allocations: 4 kB / 1.373 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.889e-05/0.5033, allocations: 310.8 kB / 1.373 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.303e-05/0.5033, allocations: 12 kB / 1.373 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.811e-05/0.5033, allocations: 40.44 kB / 1.373 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.216e-05/0.5034, allocations: 19.98 kB / 1.373 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.5034, allocations: 0 / 1.373 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001043/0.5035, allocations: 77.55 kB / 1.373 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.5035, allocations: 4 kB / 1.373 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.5035, allocations: 4 kB / 1.373 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.5035, allocations: 0 / 1.373 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.174e-05/0.5036, allocations: 16.08 kB / 1.373 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.5036, allocations: 11.89 kB / 1.373 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.829e-05/0.5037, allocations: 4 kB / 1.373 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.5037, allocations: 4 kB / 1.373 GB, free: 15.11 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.curSeed,curSeed,$whenCondition1,$PRE.$outputAlias_y,$outputAlias_y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.43e-05/0.5037, allocations: 113.8 kB / 1.373 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.014e-05/0.5038, allocations: 3.906 kB / 1.373 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.5038, allocations: 7.969 kB / 1.373 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.5038, allocations: 0 / 1.373 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.5038, allocations: 0 / 1.373 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.5038, allocations: 11.94 kB / 1.373 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002419/0.5041, allocations: 310.6 kB / 1.374 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.5041, allocations: 0 / 1.374 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.279e-05/0.5041, allocations: 4 kB / 1.374 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.5041, allocations: 0 / 1.374 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.5041, allocations: 192 / 1.374 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.5041, allocations: 4.562 kB / 1.374 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.155e-06/0.5041, allocations: 7.891 kB / 1.374 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.5043, allocations: 171.4 kB / 1.374 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.186e-05/0.5043, allocations: 81.11 kB / 1.374 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.5044, allocations: 4 kB / 1.374 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.953e-05/0.5044, allocations: 0 / 1.374 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/0.5044, allocations: 15.88 kB / 1.374 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.5045, allocations: 0 / 1.374 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.134e-05/0.5045, allocations: 79.28 kB / 1.374 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5045, allocations: 3.938 kB / 1.374 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002746/0.5048, allocations: 51.92 kB / 1.374 GB, free: 14.15 MB / 0.8855 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 (6): * Single equations (assignments): 4 * 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.0006751/0.5055, allocations: 0.79 MB / 1.375 GB, free: 13.35 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001195/0.5056, allocations: 36.05 kB / 1.375 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.5056, allocations: 0 / 1.375 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.348e-05/0.5057, allocations: 23.92 kB / 1.375 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.5058, allocations: 8 kB / 1.375 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007219/0.5065, allocations: 0.9727 MB / 1.376 GB, free: 12.24 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.5067, allocations: 0.6848 MB / 1.377 GB, free: 11.53 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.273e-05/0.5068, allocations: 8 kB / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.287e-05/0.5068, allocations: 19.38 kB / 1.377 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of SimCode: time 3.2e-07/0.5068, allocations: 0 / 1.377 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0137/0.5205, allocations: 1.999 MB / 1.378 GB, free: 9.625 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000217/0.5208, allocations: 218.4 kB / 1.379 GB, free: 9.383 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.532/2.053, allocations: 3.938 kB / 1.379 GB, free: 9.379 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_BaseClasses_Validation_Logit2D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_BaseClasses_Validation_Logit2D.fmu > Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D_res.mat does not exist to compare? outputFormat=mat