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.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.578/1.578, allocations: 249.5 MB / 257 MB, free: 6.941 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.001284/0.001284, allocations: 178.1 kB / 316.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.666/1.666, allocations: 205.3 MB / 0.5671 GB, free: 15.87 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.0009832/0.0009831, allocations: 86.55 kB / 0.6714 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.311e-05/1.314e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1886, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6581/0.8468, allocations: 132.1 MB / 1.014 GB, free: 5.633 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.847, allocations: 78.19 kB / 1.014 GB, free: 5.59 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002891/0.8499, allocations: 1.121 MB / 1.015 GB, free: 4.586 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.052e-06/0.8499, allocations: 0 / 1.015 GB, free: 4.586 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.832e-06/0.85, allocations: 0 / 1.015 GB, free: 4.586 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005033/0.8505, allocations: 378 kB / 1.016 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.8505, allocations: 8.031 kB / 1.016 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.148e-05/0.8506, allocations: 6.875 kB / 1.016 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.8507, allocations: 182.7 kB / 1.016 GB, free: 3.949 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.8508, allocations: 4 kB / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.8508, allocations: 4 kB / 1.016 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.768e-05/0.8509, allocations: 23.69 kB / 1.016 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.867e-05/0.851, allocations: 61.16 kB / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.851, allocations: 0 / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.851, allocations: 3.984 kB / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.851, allocations: 4 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004183/0.8515, allocations: 281.4 kB / 1.016 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.391e-05/0.8516, allocations: 56.81 kB / 1.016 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.222e-05/0.8516, allocations: 19.05 kB / 1.016 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.8516, allocations: 0 / 1.016 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001167/0.8518, allocations: 66.14 kB / 1.016 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.8518, allocations: 0 / 1.016 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8): time 0.0001868/0.852, allocations: 81 kB / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.852, allocations: 55.41 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.413e-05/0.8521, allocations: 116.3 kB / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.8521, allocations: 29.64 kB / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.654e-05/0.8522, allocations: 87.45 kB / 1.017 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.348e-05/0.8522, allocations: 27.69 kB / 1.017 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-06/0.8522, allocations: 0 / 1.017 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.8524, allocations: 317.9 kB / 1.017 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.275e-05/0.8524, allocations: 17.86 kB / 1.017 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.472e-05/0.8525, allocations: 56.91 kB / 1.017 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.373e-05/0.8525, allocations: 11.19 kB / 1.017 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.8525, allocations: 4 kB / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001411/0.8527, allocations: 86.92 kB / 1.017 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.8527, allocations: 11.94 kB / 1.017 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.8527, allocations: 0 / 1.017 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.8527, allocations: 4 kB / 1.017 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.8528, allocations: 15.98 kB / 1.017 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.8529, allocations: 0.7812 kB / 1.017 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.925e-05/0.853, allocations: 24.06 kB / 1.017 GB, free: 2.496 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.853, allocations: 11.94 kB / 1.017 GB, free: 2.484 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 8.533e-05/0.8531, allocations: 111.4 kB / 1.017 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.8531, allocations: 4 kB / 1.018 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.8533, allocations: 87.7 kB / 1.018 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.8533, allocations: 0 / 1.018 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.8533, allocations: 0 / 1.018 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.8533, allocations: 3.984 kB / 1.018 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003891/0.8537, allocations: 351.7 kB / 1.018 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.8537, allocations: 0.875 kB / 1.018 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.868e-05/0.8538, allocations: 15.73 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.8538, allocations: 4 kB / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.8538, allocations: 0 / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.8538, allocations: 0 / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.8538, allocations: 3.75 kB / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001685/0.854, allocations: 183.2 kB / 1.018 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-05/0.8541, allocations: 81.09 kB / 1.018 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.8541, allocations: 4 kB / 1.018 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.8542, allocations: 11.98 kB / 1.018 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.8543, allocations: 10.98 kB / 1.018 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.8543, allocations: 11.94 kB / 1.018 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.166e-05/0.8544, allocations: 86.34 kB / 1.018 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8544, allocations: 0 / 1.018 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002288/0.8546, allocations: 22.58 kB / 1.018 GB, free: 1.488 MB / 0.6355 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 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,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.0001096/0.8547, allocations: 103.4 kB / 1.018 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001228/0.8549, allocations: 57.36 kB / 1.018 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.8549, allocations: 0 / 1.018 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.644e-05/0.8549, allocations: 20.19 kB / 1.019 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.8551, allocations: 15.92 kB / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002718/0.8554, allocations: 98.16 kB / 1.019 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.8557, allocations: 0.6924 MB / 1.019 GB, free: 492 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.566e-05/0.8557, allocations: 11.94 kB / 1.019 GB, free: 480 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.259e-05/0.8558, allocations: 15.44 kB / 1.019 GB, free: 464 kB / 0.6355 GB Notification: Performance of SimCode: time 2.7e-07/0.8558, allocations: 3.938 kB / 1.019 GB, free: 460 kB / 0.6355 GB Notification: Performance of Templates: time 0.002527/0.8583, allocations: 0.7248 MB / 1.02 GB, free: 15.74 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches