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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.BaseClasses.Validation.Logit2D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D") translateModel(Buildings.Occupants.BaseClasses.Validation.Logit2D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 97.8 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01109/0.01109, allocations: 171.2 kB / 16.27 MB, free: 6.652 MB / 14.72 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.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.761/2.761, allocations: 443.3 MB / 0.7175 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003626, allocations: 8.906 kB / 0.8796 GB, free: 41.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3622, allocations: 155.2 MB / 1.031 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit2D): time 0.001534/0.3638, allocations: 0.9477 MB / 1.032 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001051/0.3649, allocations: 451.1 kB / 1.032 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.874e-05/0.3649, allocations: 0 / 1.032 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.678e-05/0.3649, allocations: 0 / 1.032 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.115e-05/0.365, allocations: 3.938 kB / 1.032 GB, free: 2.906 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006219/0.3656, allocations: 91.78 kB / 1.033 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.703e-05/0.3657, allocations: 19.98 kB / 1.033 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.529e-05/0.3658, allocations: 3.984 kB / 1.033 GB, free: 2.793 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.738e-05/0.3658, allocations: 11.94 kB / 1.033 GB, free: 2.781 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.722e-05/0.3659, allocations: 11.92 kB / 1.033 GB, free: 2.77 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.3659, allocations: 0 / 1.033 GB, free: 2.77 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002618/0.3661, allocations: 107.8 kB / 1.033 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.964e-05/0.3662, allocations: 4 kB / 1.033 GB, free: 2.66 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.092e-05/0.3662, allocations: 41.62 kB / 1.033 GB, free: 2.613 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.3665, allocations: 99.8 kB / 1.033 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3665, allocations: 3.938 kB / 1.033 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3665, allocations: 4 kB / 1.033 GB, free: 2.508 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.3665, allocations: 0 / 1.033 GB, free: 2.508 MB / 0.7794 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.0004718/0.367, allocations: 377.4 kB / 1.033 GB, free: 2.082 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.367, allocations: 11.97 kB / 1.033 GB, free: 2.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/0.3671, allocations: 4.844 kB / 1.033 GB, free: 2.066 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.3672, allocations: 176.3 kB / 1.033 GB, free: 1.855 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.3673, allocations: 384 / 1.033 GB, free: 1.855 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.3673, allocations: 4.375 kB / 1.033 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001304/0.3674, allocations: 42.25 kB / 1.033 GB, free: 1.805 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.3674, allocations: 4.188 kB / 1.033 GB, free: 1.801 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.3674, allocations: 3.938 kB / 1.033 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3675, allocations: 0 / 1.033 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.106e-05/0.3675, allocations: 7.984 kB / 1.033 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002127/0.3677, allocations: 157.7 kB / 1.034 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.412e-05/0.3678, allocations: 30.52 kB / 1.034 GB, free: 1.547 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.572e-05/0.3678, allocations: 16.98 kB / 1.034 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.815e-06/0.3679, allocations: 4 kB / 1.034 GB, free: 1.523 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001615/0.368, allocations: 59.39 kB / 1.034 GB, free: 1.453 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.222e-06/0.368, allocations: 0 / 1.034 GB, free: 1.453 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0002358/0.3683, allocations: 85.45 kB / 1.034 GB, free: 1.363 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.3683, allocations: 51.41 kB / 1.034 GB, free: 1.301 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.916e-05/0.3684, allocations: 106.1 kB / 1.034 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.3684, allocations: 29.7 kB / 1.034 GB, free: 1.152 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.383e-05/0.3685, allocations: 84.14 kB / 1.034 GB, free: 1.066 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.3685, allocations: 11.84 kB / 1.034 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.3685, allocations: 21.7 kB / 1.034 GB, free: 1.027 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.818e-05/0.3686, allocations: 310.8 kB / 1.034 GB, free: 0.7148 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.46e-05/0.3687, allocations: 8 kB / 1.034 GB, free: 0.707 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.022e-05/0.3687, allocations: 40.28 kB / 1.034 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.134e-05/0.3688, allocations: 60.22 kB / 1.034 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3688, allocations: 0 / 1.034 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001156/0.3689, allocations: 77.59 kB / 1.035 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.369, allocations: 13.81 kB / 1.035 GB, free: 496 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.369, allocations: 4.25 kB / 1.035 GB, free: 492 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.369, allocations: 0 / 1.035 GB, free: 492 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.619e-05/0.3691, allocations: 12 kB / 1.035 GB, free: 480 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.3691, allocations: 3.984 kB / 1.035 GB, free: 476 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.214e-05/0.3691, allocations: 4 kB / 1.035 GB, free: 472 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.3691, allocations: 7.938 kB / 1.035 GB, free: 464 kB / 0.7794 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 (y,$PRE.y,curSeed,$PRE.curSeed,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.253e-05/0.3692, allocations: 119.2 kB / 1.035 GB, free: 336 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.3692, allocations: 11.84 kB / 1.035 GB, free: 324 kB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.814e-05/0.3693, allocations: 15.5 kB / 1.035 GB, free: 304 kB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3693, allocations: 0 / 1.035 GB, free: 304 kB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3693, allocations: 0 / 1.035 GB, free: 304 kB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3693, allocations: 4 kB / 1.035 GB, free: 300 kB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001307/0.3694, allocations: 157.7 kB / 1.035 GB, free: 92 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3695, allocations: 0 / 1.035 GB, free: 92 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.957e-05/0.3695, allocations: 4 kB / 1.035 GB, free: 88 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3695, allocations: 3.938 kB / 1.035 GB, free: 84 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.3695, allocations: 0 / 1.035 GB, free: 84 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3695, allocations: 0 / 1.035 GB, free: 84 kB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3695, allocations: 4 kB / 1.035 GB, free: 80 kB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.3697, allocations: 97.05 kB / 1.035 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.962e-05/0.3698, allocations: 81.05 kB / 1.035 GB, free: 15.87 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.3698, allocations: 3.938 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.172e-05/0.3698, allocations: 0 / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.728e-05/0.3698, allocations: 7.984 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.3698, allocations: 0 / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.011e-05/0.3699, allocations: 83.28 kB / 1.035 GB, free: 15.77 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3699, allocations: 4 kB / 1.035 GB, free: 15.77 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002698/0.3702, allocations: 31.98 kB / 1.035 GB, free: 15.74 MB / 0.795 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 (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000385/0.3706, allocations: 165.2 kB / 1.035 GB, free: 15.58 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001185/0.3707, allocations: 31.92 kB / 1.035 GB, free: 15.55 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3707, allocations: 8.188 kB / 1.035 GB, free: 15.54 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 4.149e-05/0.3708, allocations: 16 kB / 1.035 GB, free: 15.53 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001437/0.3709, allocations: 5.344 kB / 1.035 GB, free: 15.52 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002923/0.3712, allocations: 126.6 kB / 1.036 GB, free: 15.37 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.3715, allocations: 0.6809 MB / 1.036 GB, free: 14.66 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.254e-05/0.3715, allocations: 0 / 1.036 GB, free: 14.66 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.733e-05/0.3716, allocations: 15.44 kB / 1.036 GB, free: 14.65 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3716, allocations: 0 / 1.036 GB, free: 14.65 MB / 0.795 GB Notification: Performance of Templates: time 0.003906/0.3755, allocations: 1.074 MB / 1.037 GB, free: 13.57 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.makefile (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 & ./Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_Logit2D.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:A,B,C,seed,t0,time,y