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.001258/0.001258, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 199.7 kB / 16.79 MB, free: 6.828 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.351/1.351, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.592/2.592, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 62.62 kB / 0.899 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2692, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit2D): time 0.002638/0.2719, allocations: 1.287 MB / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009349/0.2729, allocations: 458.6 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.511e-05/0.2729, allocations: 0 / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.274e-05/0.273, allocations: 0 / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.354e-05/0.273, allocations: 0 / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005358/0.2736, allocations: 95.72 kB / 1.055 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.324e-05/0.2736, allocations: 19.92 kB / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.574e-05/0.2737, allocations: 8 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.335e-05/0.2737, allocations: 7.984 kB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.152e-05/0.2738, allocations: 15.92 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.2738, allocations: 0 / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.274, allocations: 103.8 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.861e-05/0.274, allocations: 7.984 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.893e-05/0.2741, allocations: 7.938 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.2742, allocations: 79.88 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2743, allocations: 3.938 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2743, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.2743, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 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.000475/0.2747, allocations: 385.4 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.2748, allocations: 15.97 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.636e-05/0.2748, allocations: 4.844 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.275, allocations: 168.4 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.275, allocations: 384 / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.275, allocations: 8.375 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.2751, allocations: 50.11 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.2751, allocations: 192 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.2752, allocations: 11.94 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.2752, allocations: 0 / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.745e-05/0.2752, allocations: 4 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.2754, allocations: 153.7 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.847e-05/0.2755, allocations: 26.61 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.969e-05/0.2755, allocations: 16.86 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.2755, allocations: 0 / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.2757, allocations: 75.41 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.673e-06/0.2757, allocations: 0 / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0002344/0.276, allocations: 81.52 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.276, allocations: 51.41 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.33e-05/0.2761, allocations: 101.9 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.2761, allocations: 25.7 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.614e-05/0.2762, allocations: 88.12 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.497e-05/0.2762, allocations: 23.69 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.2762, allocations: 17.72 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.2763, allocations: 326.8 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.029e-05/0.2764, allocations: 4 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.921e-05/0.2764, allocations: 40.28 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.645e-05/0.2765, allocations: 56.23 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2765, allocations: 0 / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001106/0.2766, allocations: 77.55 kB / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2766, allocations: 7.938 kB / 1.056 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.2766, allocations: 128 / 1.056 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.2767, allocations: 8 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.018e-05/0.2767, allocations: 12 kB / 1.057 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2767, allocations: 0 / 1.057 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.054e-05/0.2768, allocations: 4 kB / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.2768, allocations: 0 / 1.057 GB, free: 4.125 MB / 0.8106 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.372e-05/0.2769, allocations: 117.8 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.731e-05/0.2769, allocations: 15.83 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.99e-05/0.2769, allocations: 3.562 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.2769, allocations: 4.5 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2769, allocations: 0 / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.277, allocations: 0 / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.2771, allocations: 161.7 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2771, allocations: 4 kB / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.863e-05/0.2771, allocations: 0 / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.2771, allocations: 7.938 kB / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.2771, allocations: 3.984 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.2771, allocations: 3.938 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2771, allocations: 0 / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.2773, allocations: 89.12 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.304e-05/0.2773, allocations: 89 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.2774, allocations: 3.938 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.328e-05/0.2774, allocations: 3.938 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.922e-05/0.2774, allocations: 4 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.2774, allocations: 4 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.502e-05/0.2775, allocations: 83.27 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2775, allocations: 0 / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002566/0.2777, allocations: 32 kB / 1.057 GB, free: 3.414 MB / 0.8106 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.0003264/0.2781, allocations: 176.6 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001147/0.2782, allocations: 35.92 kB / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2782, allocations: 0 / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.375e-05/0.2782, allocations: 20.23 kB / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.2784, allocations: 4 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/0.2786, allocations: 141.7 kB / 1.057 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.2789, allocations: 0.6809 MB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.854e-05/0.2789, allocations: 11.44 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of SimCode: time 6.41e-07/0.2789, allocations: 0 / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of Templates: time 0.00283/0.2817, allocations: 1.276 MB / 1.059 GB, free: 1.012 MB / 0.8106 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches