Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 104.6 kB / 16.27 MB, free: 5.98 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.001885/0.001886, allocations: 196.2 kB / 17.2 MB, free: 5.609 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.352/1.352, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.19/2.19, allocations: 390.3 MB / 0.6653 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001489, allocations: 63.52 kB / 0.8132 GB, free: 33.04 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2838, allocations: 140.4 MB / 0.9503 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002567/0.2864, allocations: 0.6598 MB / 0.9509 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001461/0.2879, allocations: 1.048 MB / 0.952 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.037e-05/0.288, allocations: 3.938 kB / 0.952 GB, free: 7.09 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.034e-05/0.288, allocations: 3.938 kB / 0.952 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.219e-05/0.2882, allocations: 3.938 kB / 0.952 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003206/0.2885, allocations: 43.83 kB / 0.952 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001034/0.2886, allocations: 51.84 kB / 0.9521 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.2887, allocations: 12 kB / 0.9521 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.369e-05/0.2888, allocations: 19.98 kB / 0.9521 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.998e-05/0.2889, allocations: 23.84 kB / 0.9521 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.2889, allocations: 7.938 kB / 0.9521 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.603e-05/0.289, allocations: 19.98 kB / 0.9521 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.418e-05/0.289, allocations: 7.984 kB / 0.9521 GB, free: 6.898 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.138e-05/0.2891, allocations: 23.92 kB / 0.9522 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.2892, allocations: 55.78 kB / 0.9522 GB, free: 6.82 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.2892, allocations: 0 / 0.9522 GB, free: 6.82 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2892, allocations: 0 / 0.9522 GB, free: 6.82 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.2892, allocations: 0 / 0.9522 GB, free: 6.82 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006387/0.2899, allocations: 367.6 kB / 0.9526 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.2899, allocations: 12.03 kB / 0.9526 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.005e-05/0.29, allocations: 0.9375 kB / 0.9526 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.2901, allocations: 168.3 kB / 0.9527 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.2901, allocations: 4.359 kB / 0.9527 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.2901, allocations: 8.375 kB / 0.9528 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.2904, allocations: 62.17 kB / 0.9528 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.2904, allocations: 4.172 kB / 0.9528 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.2904, allocations: 7.938 kB / 0.9528 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.2904, allocations: 4 kB / 0.9528 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.2906, allocations: 39.94 kB / 0.9529 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004772/0.2911, allocations: 280.8 kB / 0.9531 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.2913, allocations: 62.42 kB / 0.9532 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.2914, allocations: 32.97 kB / 0.9532 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.2914, allocations: 0 / 0.9532 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/0.2916, allocations: 71.38 kB / 0.9533 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/0.2917, allocations: 4 kB / 0.9533 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0004198/0.2921, allocations: 121.5 kB / 0.9534 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.2921, allocations: 55.34 kB / 0.9535 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.185e-05/0.2922, allocations: 105.8 kB / 0.9536 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.2923, allocations: 29.7 kB / 0.9536 GB, free: 5.207 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.511e-05/0.2923, allocations: 84.14 kB / 0.9537 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.2923, allocations: 19.8 kB / 0.9537 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.219e-05/0.2924, allocations: 21.72 kB / 0.9537 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.2925, allocations: 314.8 kB / 0.954 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.435e-05/0.2926, allocations: 19.98 kB / 0.954 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.2927, allocations: 55.34 kB / 0.9541 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.2929, allocations: 91.2 kB / 0.9542 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2929, allocations: 0 / 0.9542 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002577/0.2932, allocations: 101.7 kB / 0.9543 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.2932, allocations: 7.984 kB / 0.9543 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2932, allocations: 0 / 0.9543 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.2932, allocations: 4 kB / 0.9543 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.2934, allocations: 15.92 kB / 0.9543 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.2934, allocations: 4 kB / 0.9543 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.724e-05/0.2935, allocations: 11.91 kB / 0.9543 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.2935, allocations: 0 / 0.9543 GB, free: 4.422 MB / 0.7325 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 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * 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 9e-05/0.2936, allocations: 125.7 kB / 0.9544 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.437e-05/0.2936, allocations: 8 kB / 0.9544 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002736/0.2939, allocations: 106 kB / 0.9545 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.2939, allocations: 0 / 0.9545 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2939, allocations: 0.5625 kB / 0.9545 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.2939, allocations: 0 / 0.9545 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004238/0.2943, allocations: 358.6 kB / 0.9549 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2943, allocations: 4 kB / 0.9549 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.982e-05/0.2944, allocations: 7.984 kB / 0.9549 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2944, allocations: 0 / 0.9549 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.2944, allocations: 4 kB / 0.9549 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.2944, allocations: 3.938 kB / 0.9549 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2944, allocations: 0 / 0.9549 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002788/0.2947, allocations: 199.3 kB / 0.9551 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.387e-05/0.2948, allocations: 81.16 kB / 0.9552 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.2948, allocations: 3.984 kB / 0.9552 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.625e-05/0.2949, allocations: 7.984 kB / 0.9552 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.132e-05/0.295, allocations: 8 kB / 0.9552 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.295, allocations: 3.938 kB / 0.9552 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.14e-05/0.295, allocations: 83.27 kB / 0.9553 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.295, allocations: 0 / 0.9553 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002385/0.2953, allocations: 20 kB / 0.9553 GB, free: 3.312 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * 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 (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.0001626/0.2954, allocations: 103.2 kB / 0.9554 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002604/0.2957, allocations: 67.88 kB / 0.9555 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.2957, allocations: 0 / 0.9555 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.2958, allocations: 35.86 kB / 0.9555 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.2961, allocations: 20.11 kB / 0.9555 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003598/0.2965, allocations: 151.2 kB / 0.9557 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.2967, allocations: 0.6905 MB / 0.9563 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.079e-05/0.2968, allocations: 11.44 kB / 0.9563 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of SimCode: time 4.41e-07/0.2968, allocations: 0 / 0.9563 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of Templates: time 0.002438/0.2992, allocations: 0.8622 MB / 0.9572 GB, free: 1.316 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches