Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.506/1.506, allocations: 249.3 MB / 261.8 MB, free: 5.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001011/0.001011, allocations: 168.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.2 MB / 0.572 GB, free: 10.63 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.0009434/0.0009436, allocations: 90.47 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.514e-05/4.518e-05, allocations: 4 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2056, allocations: 106.3 MB / 0.8918 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7176/0.9232, allocations: 131.6 MB / 1.02 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.9235, allocations: 71.11 kB / 1.02 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002341/0.9258, allocations: 0.8752 MB / 1.021 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.114e-06/0.9258, allocations: 0 / 1.021 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.752e-06/0.9259, allocations: 4 kB / 1.021 GB, free: 2.273 MB / 0.6355 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.000443/0.9263, allocations: 353.8 kB / 1.022 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.9264, allocations: 8.031 kB / 1.022 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.84e-05/0.9264, allocations: 10.16 kB / 1.022 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.9265, allocations: 167 kB / 1.022 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.9266, allocations: 8 kB / 1.022 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.9266, allocations: 3.438 kB / 1.022 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.9267, allocations: 48.94 kB / 1.022 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.9268, allocations: 3.938 kB / 1.022 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.9268, allocations: 0 / 1.022 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.9268, allocations: 4 kB / 1.022 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.834e-05/0.9269, allocations: 14.5 kB / 1.022 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004348/0.9273, allocations: 281.8 kB / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.171e-05/0.9274, allocations: 41.14 kB / 1.022 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.807e-05/0.9274, allocations: 16.3 kB / 1.022 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.9275, allocations: 3.938 kB / 1.022 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/0.9276, allocations: 61.52 kB / 1.022 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.785e-06/0.9276, allocations: 0 / 1.022 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001891/0.9278, allocations: 81.08 kB / 1.022 GB, free: 1.09 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.9279, allocations: 51.41 kB / 1.022 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.008e-05/0.928, allocations: 111 kB / 1.022 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.02e-05/0.928, allocations: 28.7 kB / 1.022 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.9281, allocations: 88.12 kB / 1.023 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.9281, allocations: 15.44 kB / 1.023 GB, free: 0.7852 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-06/0.9281, allocations: 0 / 1.023 GB, free: 0.7852 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.9282, allocations: 318.7 kB / 1.023 GB, free: 480 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.018e-05/0.9283, allocations: 15 kB / 1.023 GB, free: 468 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.558e-05/0.9283, allocations: 41.05 kB / 1.023 GB, free: 420 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.482e-05/0.9284, allocations: 11.62 kB / 1.023 GB, free: 412 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.9284, allocations: 0 / 1.023 GB, free: 412 kB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001171/0.9285, allocations: 78.78 kB / 1.023 GB, free: 336 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.9285, allocations: 12.08 kB / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.9285, allocations: 0 / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.9286, allocations: 4 kB / 1.023 GB, free: 320 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.9287, allocations: 19.92 kB / 1.023 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.9287, allocations: 0 / 1.023 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.574e-05/0.9288, allocations: 11.62 kB / 1.023 GB, free: 292 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.9288, allocations: 7.953 kB / 1.023 GB, free: 284 kB / 0.6355 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.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.191e-05/0.9289, allocations: 108.2 kB / 1.023 GB, free: 172 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.444e-05/0.9289, allocations: 7.984 kB / 1.023 GB, free: 164 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.929, allocations: 75.12 kB / 1.023 GB, free: 92 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.9291, allocations: 4 kB / 1.023 GB, free: 88 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.9291, allocations: 0 / 1.023 GB, free: 88 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.9291, allocations: 7.922 kB / 1.023 GB, free: 80 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000348/0.9294, allocations: 328.9 kB / 1.024 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.9295, allocations: 3.984 kB / 1.024 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.411e-05/0.9295, allocations: 23.92 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.9295, allocations: 0 / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.739e-06/0.9296, allocations: 2.875 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.9296, allocations: 0 / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.9296, allocations: 0 / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001576/0.9297, allocations: 173.5 kB / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.9298, allocations: 81.08 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.9298, allocations: 4 kB / 1.024 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.9299, allocations: 15.98 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.06e-05/0.93, allocations: 7.875 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.93, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.843e-05/0.93, allocations: 91.22 kB / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.93, allocations: 0 / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0001981/0.9302, allocations: 11.06 kB / 1.024 GB, free: 15.3 MB / 0.6511 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 () * 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 (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.00012/0.9304, allocations: 107.1 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 9.96e-05/0.9305, allocations: 34.62 kB / 1.024 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.9305, allocations: 0 / 1.024 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.528e-05/0.9305, allocations: 23.75 kB / 1.024 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001562/0.9307, allocations: 7.859 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002578/0.931, allocations: 80.42 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.9313, allocations: 0.6928 MB / 1.025 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.031e-05/0.9313, allocations: 192 / 1.025 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.173e-05/0.9314, allocations: 11.44 kB / 1.025 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of SimCode: time 3.51e-07/0.9314, allocations: 3.938 kB / 1.025 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of Templates: time 0.00239/0.9338, allocations: 0.5373 MB / 1.025 GB, free: 13.79 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches