Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.291/2.291, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001601/0.001601, allocations: 177.1 kB / 498.1 MB, free: 5.742 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.578/1.578, allocations: 223.2 MB / 0.7948 GB, free: 18.84 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.0009043/0.0009042, allocations: 102.3 kB / 0.9346 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003637, allocations: 9.312 kB / 1.084 GB, free: 212.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3186, allocations: 142.4 MB / 1.223 GB, free: 89.56 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1939/0.5126, allocations: 149.7 MB / 1.369 GB, free: 3.652 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.5129, allocations: 71.95 kB / 1.369 GB, free: 3.582 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006477/0.5194, allocations: 2.279 MB / 1.371 GB, free: 1.301 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.987e-06/0.5194, allocations: 0 / 1.371 GB, free: 1.301 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.777e-06/0.5195, allocations: 7.938 kB / 1.371 GB, free: 1.293 MB / 0.8698 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.0005559/0.52, allocations: 414.7 kB / 1.372 GB, free: 0.8359 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.5201, allocations: 8.031 kB / 1.372 GB, free: 0.8281 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.039e-05/0.5201, allocations: 11.89 kB / 1.372 GB, free: 0.8164 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.5203, allocations: 174.9 kB / 1.372 GB, free: 0.6055 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.5203, allocations: 8 kB / 1.372 GB, free: 0.5977 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.5204, allocations: 8 kB / 1.372 GB, free: 0.5898 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000212/0.5206, allocations: 77.66 kB / 1.372 GB, free: 0.5078 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.5206, allocations: 0 / 1.372 GB, free: 0.5078 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.5206, allocations: 11.92 kB / 1.372 GB, free: 0.4961 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.5206, allocations: 0 / 1.372 GB, free: 0.4961 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.5208, allocations: 59.89 kB / 1.372 GB, free: 448 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005473/0.5214, allocations: 340.7 kB / 1.372 GB, free: 56 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.5216, allocations: 62.55 kB / 1.373 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.5216, allocations: 4.094 kB / 1.373 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003475/0.522, allocations: 99.41 kB / 1.373 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 3.206e-06/0.522, allocations: 3.984 kB / 1.373 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0004798/0.5225, allocations: 169.5 kB / 1.373 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.5226, allocations: 55.41 kB / 1.373 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.94e-05/0.5227, allocations: 112.9 kB / 1.373 GB, free: 15.51 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.5227, allocations: 33.7 kB / 1.373 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.705e-05/0.5228, allocations: 103.9 kB / 1.373 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.5228, allocations: 19.8 kB / 1.373 GB, free: 15.35 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.341e-05/0.5228, allocations: 4 kB / 1.373 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.5229, allocations: 318.8 kB / 1.373 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.5231, allocations: 51.97 kB / 1.373 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.5233, allocations: 101.1 kB / 1.374 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.5235, allocations: 93.67 kB / 1.374 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5235, allocations: 0 / 1.374 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004442/0.5239, allocations: 215.1 kB / 1.374 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.152e-05/0.524, allocations: 37.7 kB / 1.374 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.524, allocations: 4.156 kB / 1.374 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.524, allocations: 4 kB / 1.374 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.5241, allocations: 23.88 kB / 1.374 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.5242, allocations: 7.984 kB / 1.374 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/0.5244, allocations: 43.97 kB / 1.374 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.5244, allocations: 11.98 kB / 1.374 GB, free: 14.4 MB / 0.8855 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 () * Number of clocked 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 9.959e-05/0.5245, allocations: 118.1 kB / 1.374 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.674e-05/0.5245, allocations: 7.906 kB / 1.374 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003094/0.5249, allocations: 138.2 kB / 1.374 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.5249, allocations: 0 / 1.374 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.5249, allocations: 3.953 kB / 1.374 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.5249, allocations: 4 kB / 1.374 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004268/0.5253, allocations: 390.5 kB / 1.375 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.5253, allocations: 3.938 kB / 1.375 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.495e-05/0.5254, allocations: 11.98 kB / 1.375 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.5254, allocations: 0 / 1.375 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.5254, allocations: 8 kB / 1.375 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.5255, allocations: 3.953 kB / 1.375 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5255, allocations: 0 / 1.375 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003196/0.5258, allocations: 223.3 kB / 1.375 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.002e-05/0.5259, allocations: 92.94 kB / 1.375 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.5259, allocations: 0 / 1.375 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.415e-05/0.526, allocations: 19.98 kB / 1.375 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.563e-05/0.526, allocations: 7.953 kB / 1.375 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.526, allocations: 0 / 1.375 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.324e-05/0.5261, allocations: 91.27 kB / 1.375 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.214e-06/0.5261, allocations: 0 / 1.375 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002713/0.5264, allocations: 31.94 kB / 1.375 GB, free: 13.16 MB / 0.8855 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 () * Number of clocked 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.0001693/0.5266, allocations: 119 kB / 1.375 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003856/0.527, allocations: 187.3 kB / 1.375 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.527, allocations: 4 kB / 1.375 GB, free: 12.83 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.5271, allocations: 48.28 kB / 1.375 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001944/0.5273, allocations: 15.94 kB / 1.375 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003893/0.5277, allocations: 187 kB / 1.376 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.528, allocations: 0.7043 MB / 1.376 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.708e-05/0.528, allocations: 3.781 kB / 1.376 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.13e-05/0.528, allocations: 11.44 kB / 1.376 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of SimCode: time 2.1e-07/0.528, allocations: 0 / 1.376 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of Templates: time 0.003627/0.5317, allocations: 1.25 MB / 1.378 GB, free: 10.57 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches