Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic") translateModel(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.355/1.355, allocations: 251.9 MB / 266.9 MB, free: 10.85 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001252/0.001251, allocations: 183.8 kB / 326.5 MB, free: 2.203 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.804/1.804, allocations: 205.4 MB / 0.5775 GB, free: 20.21 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009831/0.0009831, allocations: 82.44 kB / 0.6821 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003832, allocations: 11.83 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2091, allocations: 106.3 MB / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1632/0.3724, allocations: 132.1 MB / 1.029 GB, free: 11.64 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.3726, allocations: 71.97 kB / 1.029 GB, free: 11.57 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.006443/0.3791, allocations: 2.338 MB / 1.031 GB, free: 9.227 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.003e-06/0.3791, allocations: 0 / 1.031 GB, free: 9.227 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.3791, allocations: 0 / 1.031 GB, free: 9.227 MB / 0.6823 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.0003922/0.3795, allocations: 396.8 kB / 1.032 GB, free: 8.785 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3796, allocations: 8.031 kB / 1.032 GB, free: 8.777 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.774e-05/0.3796, allocations: 7.906 kB / 1.032 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.3797, allocations: 163 kB / 1.032 GB, free: 8.57 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.3798, allocations: 4 kB / 1.032 GB, free: 8.566 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.3798, allocations: 0 / 1.032 GB, free: 8.566 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.3799, allocations: 45.67 kB / 1.032 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3799, allocations: 0 / 1.032 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.3799, allocations: 4 kB / 1.032 GB, free: 8.512 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3799, allocations: 0 / 1.032 GB, free: 8.512 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.249e-05/0.38, allocations: 7.984 kB / 1.032 GB, free: 8.504 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001779/0.3802, allocations: 161.6 kB / 1.032 GB, free: 8.297 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.503e-05/0.3802, allocations: 35.22 kB / 1.032 GB, free: 8.254 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 9.578e-06/0.3803, allocations: 3.938 kB / 1.032 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/0.3804, allocations: 59.48 kB / 1.032 GB, free: 8.18 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.3804, allocations: 0 / 1.032 GB, free: 8.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.000198/0.3806, allocations: 69.62 kB / 1.032 GB, free: 8.105 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.3807, allocations: 55.39 kB / 1.032 GB, free: 8.039 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.3807, allocations: 96.91 kB / 1.032 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.3808, allocations: 29.7 kB / 1.033 GB, free: 7.902 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.649e-05/0.3808, allocations: 84.14 kB / 1.033 GB, free: 7.816 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.3808, allocations: 7.891 kB / 1.033 GB, free: 7.809 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-06/0.3809, allocations: 4 kB / 1.033 GB, free: 7.805 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.381, allocations: 322.8 kB / 1.033 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.899e-05/0.381, allocations: 7.984 kB / 1.033 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.454e-05/0.381, allocations: 35.42 kB / 1.033 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.814e-05/0.3811, allocations: 8 kB / 1.033 GB, free: 7.418 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3811, allocations: 4 kB / 1.033 GB, free: 7.414 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001063/0.3812, allocations: 69.56 kB / 1.033 GB, free: 7.34 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.3812, allocations: 4 kB / 1.033 GB, free: 7.336 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3812, allocations: 7.984 kB / 1.033 GB, free: 7.328 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3812, allocations: 256 / 1.033 GB, free: 7.328 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.734e-05/0.3813, allocations: 8 kB / 1.033 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.3813, allocations: 4 kB / 1.033 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.892e-05/0.3814, allocations: 11.84 kB / 1.033 GB, free: 7.305 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.3814, allocations: 0 / 1.033 GB, free: 7.305 MB / 0.6823 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.y,y,$PRE.curSeed,curSeed,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.853e-05/0.3815, allocations: 125.8 kB / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.276e-06/0.3815, allocations: 0 / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.032e-05/0.3815, allocations: 11.89 kB / 1.033 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3815, allocations: 0 / 1.033 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3815, allocations: 0 / 1.033 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3815, allocations: 0 / 1.033 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.3817, allocations: 157.6 kB / 1.033 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3817, allocations: 0 / 1.033 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.384e-05/0.3817, allocations: 4 kB / 1.033 GB, free: 6.949 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3817, allocations: 0 / 1.033 GB, free: 6.949 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.3817, allocations: 8 kB / 1.033 GB, free: 6.941 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.3817, allocations: 0 / 1.033 GB, free: 6.941 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3817, allocations: 8.078 kB / 1.033 GB, free: 6.934 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001291/0.3819, allocations: 81.12 kB / 1.033 GB, free: 6.836 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.925e-05/0.3819, allocations: 85.25 kB / 1.034 GB, free: 6.734 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.3819, allocations: 3.984 kB / 1.034 GB, free: 6.73 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.264e-05/0.382, allocations: 4 kB / 1.034 GB, free: 6.727 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.385e-05/0.382, allocations: 7.922 kB / 1.034 GB, free: 6.719 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.382, allocations: 4 kB / 1.034 GB, free: 6.715 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.67e-05/0.3821, allocations: 87.27 kB / 1.034 GB, free: 6.629 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3821, allocations: 0 / 1.034 GB, free: 6.629 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002364/0.3823, allocations: 43.94 kB / 1.034 GB, free: 6.586 MB / 0.6823 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,y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * 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.0003359/0.3826, allocations: 185.3 kB / 1.034 GB, free: 6.41 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 9.605e-05/0.3828, allocations: 31.92 kB / 1.034 GB, free: 6.379 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3828, allocations: 1.688 kB / 1.034 GB, free: 6.379 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 3.504e-05/0.3828, allocations: 12 kB / 1.034 GB, free: 6.367 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.978e-05/0.3829, allocations: 0 / 1.034 GB, free: 6.367 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002545/0.3832, allocations: 132.4 kB / 1.034 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.3834, allocations: 0.6811 MB / 1.035 GB, free: 5.5 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 1.854e-05/0.3835, allocations: 8 kB / 1.035 GB, free: 5.492 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.396e-05/0.3835, allocations: 7.438 kB / 1.035 GB, free: 5.484 MB / 0.6823 GB Notification: Performance of SimCode: time 3.1e-07/0.3835, allocations: 4 kB / 1.035 GB, free: 5.48 MB / 0.6823 GB Notification: Performance of Templates: time 0.003136/0.3866, allocations: 1.216 MB / 1.036 GB, free: 4.266 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:A,B,C,D,seed,t0,time,y