Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.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.Logit2D,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit2D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Logit2D,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit2D",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.508/2.508, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001263/0.001262, allocations: 191.3 kB / 0.4901 GB, free: 2.242 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.784/1.784, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.0009201/0.00092, allocations: 103.3 kB / 0.9396 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003913/0.0003917, allocations: 11 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4039/0.4043, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2041/0.6084, allocations: 150.4 MB / 1.376 GB, free: 3.117 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.6087, allocations: 71.97 kB / 1.376 GB, free: 3.047 MB / 0.8698 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.006949/0.6157, allocations: 2.337 MB / 1.379 GB, free: 0.707 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6157, allocations: 0 / 1.379 GB, free: 0.707 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.136e-06/0.6157, allocations: 4 kB / 1.379 GB, free: 0.7031 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.0004448/0.6162, allocations: 392.9 kB / 1.379 GB, free: 272 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.6162, allocations: 8.562 kB / 1.379 GB, free: 264 kB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.412e-05/0.6163, allocations: 38.56 kB / 1.379 GB, free: 216 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.6164, allocations: 7.953 kB / 1.379 GB, free: 208 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.6165, allocations: 175 kB / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.6166, allocations: 0 / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.6166, allocations: 4 kB / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.6167, allocations: 41.69 kB / 1.379 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.6167, allocations: 0 / 1.379 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.6167, allocations: 0 / 1.379 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.6167, allocations: 0 / 1.379 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.281e-05/0.6168, allocations: 15.94 kB / 1.379 GB, free: 15.93 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000334/0.6171, allocations: 256.8 kB / 1.379 GB, free: 15.62 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 7.184e-05/0.6172, allocations: 38.45 kB / 1.379 GB, free: 15.58 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.6172, allocations: 0 / 1.379 GB, free: 15.58 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001222/0.6174, allocations: 55.52 kB / 1.379 GB, free: 15.51 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 3.046e-06/0.6174, allocations: 11.98 kB / 1.38 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0002281/0.6176, allocations: 81.56 kB / 1.38 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.6177, allocations: 55.41 kB / 1.38 GB, free: 15.35 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.462e-05/0.6178, allocations: 96.98 kB / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.6178, allocations: 29.64 kB / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.6178, allocations: 88.14 kB / 1.38 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.6178, allocations: 11.8 kB / 1.38 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/0.6179, allocations: 4 kB / 1.38 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.618, allocations: 322.8 kB / 1.38 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.261e-05/0.618, allocations: 8 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.098e-05/0.6181, allocations: 40.28 kB / 1.38 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.35e-05/0.6181, allocations: 15.94 kB / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.6181, allocations: 4 kB / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001135/0.6182, allocations: 81.52 kB / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.6183, allocations: 4 kB / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.6183, allocations: 0 / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.6183, allocations: 4 kB / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.515e-05/0.6184, allocations: 11.94 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.6184, allocations: 3.953 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.073e-05/0.6184, allocations: 8 kB / 1.38 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.6184, allocations: 4 kB / 1.38 GB, free: 14.58 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 8.836e-05/0.6185, allocations: 126.7 kB / 1.38 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.222e-05/0.6185, allocations: 3.906 kB / 1.38 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.561e-05/0.6186, allocations: 3.969 kB / 1.38 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.6186, allocations: 4.5 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.6186, allocations: 0 / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.6186, allocations: 3.953 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.6189, allocations: 306.6 kB / 1.381 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.6189, allocations: 4 kB / 1.381 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.464e-05/0.6189, allocations: 4 kB / 1.381 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.6189, allocations: 4 kB / 1.381 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.6189, allocations: 3.984 kB / 1.381 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.6189, allocations: 3.938 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.619, allocations: 3.953 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001558/0.6191, allocations: 163.5 kB / 1.381 GB, free: 13.88 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.814e-05/0.6192, allocations: 81.02 kB / 1.381 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.6192, allocations: 8.172 kB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.281e-05/0.6192, allocations: 4 kB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.481e-05/0.6193, allocations: 11.89 kB / 1.381 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.6193, allocations: 4 kB / 1.381 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.573e-05/0.6193, allocations: 83.27 kB / 1.381 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6193, allocations: 0 / 1.381 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003141/0.6197, allocations: 40 kB / 1.381 GB, free: 13.63 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.0007621/0.6204, allocations: 0.8024 MB / 1.382 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001524/0.6206, allocations: 35.92 kB / 1.382 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6206, allocations: 0 / 1.382 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.565e-05/0.6207, allocations: 16 kB / 1.382 GB, free: 12.76 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.6208, allocations: 0 / 1.382 GB, free: 12.76 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008981/0.6217, allocations: 0.9885 MB / 1.383 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.622, allocations: 0.6848 MB / 1.384 GB, free: 11 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.199e-05/0.622, allocations: 4 kB / 1.384 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.766e-05/0.6221, allocations: 15.42 kB / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of SimCode: time 5.35e-06/0.6221, allocations: 0 / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01513/0.6372, allocations: 2.014 MB / 1.386 GB, free: 9.098 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000231/0.6375, allocations: 220.6 kB / 1.386 GB, free: 8.859 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.317, allocations: 0 / 1.386 GB, free: 8.859 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit2D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit2D.fmu > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D_res.mat does not exist to compare? outputFormat=mat