Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.374/2.374, allocations: 390.5 MB / 398 MB, free: 10.95 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.001225/0.001225, allocations: 176.8 kB / 491.2 MB, free: 1.574 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.779/1.779, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.0009257/0.0009257, allocations: 99.52 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.487e-05/2.49e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3333, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9894/1.323, allocations: 149.8 MB / 1.359 GB, free: 17.58 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/1.323, allocations: 70.39 kB / 1.359 GB, free: 17.58 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007016/1.33, allocations: 2.263 MB / 1.361 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.172e-06/1.33, allocations: 0 / 1.361 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.935e-06/1.33, allocations: 0 / 1.361 GB, free: 33.16 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004375/1.331, allocations: 403.5 kB / 1.361 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/1.331, allocations: 11.5 kB / 1.361 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.043e-05/1.331, allocations: 13.27 kB / 1.361 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.13e-05/1.331, allocations: 170.8 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/1.331, allocations: 5.656 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.806e-05/1.331, allocations: 6.156 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.406e-05/1.331, allocations: 21.97 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.3e-05/1.331, allocations: 54.53 kB / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/1.331, allocations: 0 / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/1.331, allocations: 7.812 kB / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/1.331, allocations: 0 / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004334/1.332, allocations: 317.5 kB / 1.362 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.788e-05/1.332, allocations: 47.95 kB / 1.362 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.864e-05/1.332, allocations: 15.2 kB / 1.362 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/1.332, allocations: 0 / 1.362 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001266/1.332, allocations: 83.03 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/1.332, allocations: 0 / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0001945/1.332, allocations: 95.92 kB / 1.362 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.135e-05/1.332, allocations: 51.41 kB / 1.362 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.512e-05/1.332, allocations: 106.1 kB / 1.362 GB, free: 32 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/1.332, allocations: 33.42 kB / 1.362 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.653e-05/1.332, allocations: 99.22 kB / 1.362 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/1.332, allocations: 20.02 kB / 1.362 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.294e-05/1.332, allocations: 7.938 kB / 1.362 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001066/1.332, allocations: 320.3 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.863e-05/1.333, allocations: 38.03 kB / 1.363 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.06e-05/1.333, allocations: 72.08 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/1.333, allocations: 48.22 kB / 1.363 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/1.333, allocations: 0 / 1.363 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003072/1.333, allocations: 148.9 kB / 1.363 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/1.333, allocations: 40.55 kB / 1.363 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/1.333, allocations: 0 / 1.363 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/1.333, allocations: 3.844 kB / 1.363 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/1.333, allocations: 20.47 kB / 1.363 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/1.333, allocations: 9.219 kB / 1.363 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/1.334, allocations: 41.22 kB / 1.363 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/1.334, allocations: 16.95 kB / 1.363 GB, free: 31.4 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.942e-05/1.334, allocations: 117.2 kB / 1.363 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/1.334, allocations: 3.906 kB / 1.363 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/1.334, allocations: 95.3 kB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/1.334, allocations: 0 / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/1.334, allocations: 1.453 kB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/1.334, allocations: 3.953 kB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002109/1.334, allocations: 324.8 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/1.334, allocations: 0 / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.902e-05/1.334, allocations: 14.64 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/1.334, allocations: 1.594 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/1.334, allocations: 0 / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/1.334, allocations: 0 / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/1.334, allocations: 0 / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001449/1.334, allocations: 198.4 kB / 1.364 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.592e-05/1.334, allocations: 86.64 kB / 1.364 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/1.334, allocations: 0 / 1.364 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.764e-05/1.334, allocations: 10.58 kB / 1.364 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/1.335, allocations: 6.297 kB / 1.364 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/1.335, allocations: 0 / 1.364 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.392e-05/1.335, allocations: 101 kB / 1.364 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.335, allocations: 0 / 1.364 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002543/1.335, allocations: 22.88 kB / 1.364 GB, free: 30.65 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001491/1.335, allocations: 116.9 kB / 1.364 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001971/1.335, allocations: 146.7 kB / 1.364 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.335, allocations: 7.844 kB / 1.364 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.45e-05/1.335, allocations: 25.88 kB / 1.364 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/1.335, allocations: 7.062 kB / 1.364 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002477/1.336, allocations: 104.2 kB / 1.364 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/1.336, allocations: 0.6931 MB / 1.365 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.385e-05/1.336, allocations: 7.625 kB / 1.365 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.206e-05/1.336, allocations: 11.25 kB / 1.365 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.336, allocations: 0 / 1.365 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of Templates: time 0.003215/1.339, allocations: 1.166 MB / 1.366 GB, free: 29.59 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches