Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.451/2.451, allocations: 390.5 MB / 398 MB, free: 10.94 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.001278/0.001278, allocations: 192.8 kB / 491.2 MB, free: 1.562 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.781/1.781, allocations: 221.5 MB / 0.7868 GB, free: 13.31 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.0009892/0.0009892, allocations: 87.58 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.452e-05/1.456e-05, allocations: 7.984 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2725, allocations: 143 MB / 1.212 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8397/1.112, allocations: 149.3 MB / 1.358 GB, free: 17.31 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/1.112, allocations: 70.95 kB / 1.358 GB, free: 17.31 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003542/1.116, allocations: 1.103 MB / 1.359 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.363e-06/1.116, allocations: 3.938 kB / 1.359 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.642e-06/1.116, allocations: 3.844 kB / 1.359 GB, free: 32.95 MB / 0.8386 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.0003759/1.116, allocations: 361.7 kB / 1.36 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/1.116, allocations: 7.844 kB / 1.36 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.122e-05/1.117, allocations: 7.75 kB / 1.36 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.84e-05/1.117, allocations: 172.2 kB / 1.36 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/1.117, allocations: 3.844 kB / 1.36 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/1.117, allocations: 0 / 1.36 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.557e-05/1.117, allocations: 19.56 kB / 1.36 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.742e-05/1.117, allocations: 45.52 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/1.117, allocations: 0 / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/1.117, allocations: 7.844 kB / 1.36 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/1.117, allocations: 0 / 1.36 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003701/1.117, allocations: 256.1 kB / 1.36 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.137e-05/1.117, allocations: 39.8 kB / 1.36 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.956e-05/1.117, allocations: 20.75 kB / 1.36 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/1.117, allocations: 4 kB / 1.36 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.674e-05/1.118, allocations: 59.59 kB / 1.36 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/1.118, allocations: 0 / 1.36 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001669/1.118, allocations: 70.33 kB / 1.36 GB, free: 32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/1.118, allocations: 52.91 kB / 1.36 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.127e-05/1.118, allocations: 93.69 kB / 1.36 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/1.118, allocations: 33.48 kB / 1.36 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.551e-05/1.118, allocations: 88.91 kB / 1.361 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/1.118, allocations: 15.62 kB / 1.361 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-06/1.118, allocations: 0 / 1.361 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.591e-05/1.118, allocations: 320.3 kB / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.482e-05/1.118, allocations: 15.53 kB / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.74e-05/1.118, allocations: 32.59 kB / 1.361 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/1.118, allocations: 28.52 kB / 1.361 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.118, allocations: 1.312 kB / 1.361 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001631/1.118, allocations: 80.03 kB / 1.361 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/1.118, allocations: 7.688 kB / 1.361 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/1.118, allocations: 0 / 1.361 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/1.118, allocations: 3.906 kB / 1.361 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/1.119, allocations: 27.16 kB / 1.361 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/1.119, allocations: 1.125 kB / 1.361 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.758e-05/1.119, allocations: 10.38 kB / 1.361 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/1.119, allocations: 7.094 kB / 1.361 GB, free: 31.31 MB / 0.8386 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 6.011e-05/1.119, allocations: 104.9 kB / 1.361 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.125e-05/1.119, allocations: 9.328 kB / 1.361 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001491/1.119, allocations: 72.41 kB / 1.361 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/1.119, allocations: 3.938 kB / 1.361 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/1.119, allocations: 7.875 kB / 1.361 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/1.119, allocations: 3.938 kB / 1.361 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/1.119, allocations: 295.8 kB / 1.362 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/1.119, allocations: 3.844 kB / 1.362 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.532e-05/1.119, allocations: 11.33 kB / 1.362 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/1.119, allocations: 3.984 kB / 1.362 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/1.119, allocations: 0 / 1.362 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/1.119, allocations: 5.312 kB / 1.362 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/1.119, allocations: 4 kB / 1.362 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001147/1.119, allocations: 168.1 kB / 1.362 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.769e-05/1.119, allocations: 86.16 kB / 1.362 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/1.119, allocations: 1.828 kB / 1.362 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.629e-05/1.12, allocations: 10.72 kB / 1.362 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/1.12, allocations: 8.766 kB / 1.362 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/1.12, allocations: 4 kB / 1.362 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.142e-05/1.12, allocations: 80.77 kB / 1.362 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.12, allocations: 0 / 1.362 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002342/1.12, allocations: 19.47 kB / 1.362 GB, free: 30.55 MB / 0.8386 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.0001362/1.12, allocations: 109.7 kB / 1.362 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001003/1.12, allocations: 37.72 kB / 1.362 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/1.12, allocations: 0 / 1.362 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.629e-05/1.12, allocations: 19.31 kB / 1.362 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001821/1.12, allocations: 8.719 kB / 1.362 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002108/1.121, allocations: 86.66 kB / 1.362 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/1.121, allocations: 0.6874 MB / 1.363 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.004e-05/1.121, allocations: 4.031 kB / 1.363 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.899e-05/1.121, allocations: 9.078 kB / 1.363 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.121, allocations: 0 / 1.363 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of Templates: time 0.002609/1.124, allocations: 0.6311 MB / 1.363 GB, free: 29.61 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches