Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.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: translateModel(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic") translateModel(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.273/2.273, 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.001089/0.001089, allocations: 180 kB / 0.4902 GB, free: 2.309 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.487/1.487, allocations: 223.1 MB / 0.7992 GB, free: 14.79 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.0009322/0.0009322, allocations: 98.45 kB / 0.9396 GB, free: 1.98 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.0003757, allocations: 6.75 kB / 1.09 GB, free: 216.9 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3239, allocations: 143 MB / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2043/0.5283, allocations: 150.4 MB / 1.376 GB, free: 3.391 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.5286, allocations: 71.97 kB / 1.376 GB, free: 3.32 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.007024/0.5356, allocations: 2.36 MB / 1.378 GB, free: 0.957 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.685e-06/0.5357, allocations: 0 / 1.378 GB, free: 0.957 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.287e-06/0.5357, allocations: 0 / 1.378 GB, free: 0.957 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006275/0.5363, allocations: 392.9 kB / 1.379 GB, free: 0.5195 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.431e-05/0.5364, allocations: 12.56 kB / 1.379 GB, free: 0.5078 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.692e-05/0.5364, allocations: 3.953 kB / 1.379 GB, free: 0.5039 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.5367, allocations: 163.1 kB / 1.379 GB, free: 312 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.042e-05/0.5367, allocations: 3.984 kB / 1.379 GB, free: 308 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.552e-05/0.5367, allocations: 4 kB / 1.379 GB, free: 304 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.5369, allocations: 41.62 kB / 1.379 GB, free: 256 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.5369, allocations: 0 / 1.379 GB, free: 256 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.5369, allocations: 4 kB / 1.379 GB, free: 252 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.537, allocations: 0 / 1.379 GB, free: 252 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.134e-05/0.537, allocations: 4 kB / 1.379 GB, free: 248 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002577/0.5373, allocations: 169.6 kB / 1.379 GB, free: 28 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.5374, allocations: 22.62 kB / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.5374, allocations: 0 / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/0.5376, allocations: 63.38 kB / 1.379 GB, free: 15.92 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=4): time 1.663e-06/0.5376, allocations: 4 kB / 1.379 GB, free: 15.92 MB / 0.8855 GB Notification: Performance of matching and sorting (n=4): time 0.0002637/0.5379, allocations: 73.52 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.421e-05/0.538, allocations: 55.41 kB / 1.379 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.035e-05/0.5381, allocations: 93 kB / 1.38 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.5381, allocations: 33.64 kB / 1.38 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.155e-05/0.5382, allocations: 84.12 kB / 1.38 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.297e-05/0.5382, allocations: 11.91 kB / 1.38 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.5382, allocations: 4 kB / 1.38 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.5384, allocations: 314.8 kB / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.324e-05/0.5384, allocations: 11.98 kB / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.594e-05/0.5385, allocations: 35.38 kB / 1.38 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.066e-05/0.5385, allocations: 4 kB / 1.38 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.5385, allocations: 4 kB / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001248/0.5387, allocations: 73.52 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.5387, allocations: 8 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.5387, allocations: 0 / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.5387, allocations: 0 / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.774e-05/0.5388, allocations: 12.17 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.5388, allocations: 0 / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.706e-05/0.5389, allocations: 8 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.5389, allocations: 0 / 1.38 GB, free: 15.05 MB / 0.8855 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 0.0001216/0.539, allocations: 121.9 kB / 1.38 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.017e-05/0.539, allocations: 3.984 kB / 1.38 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.5391, allocations: 11.91 kB / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.5391, allocations: 0 / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5391, allocations: 0 / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.5391, allocations: 256 / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.5393, allocations: 161.6 kB / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.5393, allocations: 4 kB / 1.38 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.43e-05/0.5393, allocations: 4 kB / 1.38 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.728e-06/0.5393, allocations: 3.984 kB / 1.38 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.5393, allocations: 4 kB / 1.38 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.5393, allocations: 0 / 1.38 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.5394, allocations: 4 kB / 1.38 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/0.5395, allocations: 92.91 kB / 1.381 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.5396, allocations: 77.11 kB / 1.381 GB, free: 14.47 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.5396, allocations: 4 kB / 1.381 GB, free: 14.47 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.338e-05/0.5396, allocations: 0 / 1.381 GB, free: 14.47 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.5397, allocations: 0 / 1.381 GB, free: 14.47 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.5397, allocations: 7.938 kB / 1.381 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.242e-05/0.5398, allocations: 91.27 kB / 1.381 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5398, allocations: 0 / 1.381 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003192/0.5401, allocations: 47.94 kB / 1.381 GB, free: 14.32 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,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.0004609/0.5406, allocations: 169.6 kB / 1.381 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001412/0.5407, allocations: 31.92 kB / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.5407, allocations: 0 / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.404e-05/0.5408, allocations: 12.14 kB / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.5409, allocations: 7.953 kB / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003959/0.5413, allocations: 135 kB / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003863/0.5417, allocations: 0.685 MB / 1.382 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.402e-05/0.5417, allocations: 4 kB / 1.382 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.936e-05/0.5418, allocations: 11.44 kB / 1.382 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of SimCode: time 7.01e-07/0.5418, allocations: 0 / 1.382 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of Templates: time 0.004251/0.546, allocations: 1.213 MB / 1.383 GB, free: 12.01 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.makefile (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.sim & ./Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic.csv","../files/Buildings_latest_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