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.409/1.409, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001268/0.001268, allocations: 171.2 kB / 326.5 MB, free: 2.242 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.939/1.939, allocations: 205.4 MB / 0.5775 GB, free: 20.55 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.000844/0.0008441, allocations: 93.23 kB / 0.6821 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003218/0.0003218, allocations: 12.88 kB / 0.7963 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.1924, allocations: 106.3 MB / 0.9001 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1614/0.3538, allocations: 131.9 MB / 1.029 GB, free: 12.34 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.3541, allocations: 67.97 kB / 1.029 GB, free: 12.28 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003162/0.3573, allocations: 1.13 MB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.164e-06/0.3573, allocations: 0 / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.583e-06/0.3573, allocations: 0 / 1.03 GB, free: 11.14 MB / 0.6823 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.0004795/0.3578, allocations: 390.9 kB / 1.03 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.3579, allocations: 12.02 kB / 1.03 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.981e-05/0.3579, allocations: 7.906 kB / 1.03 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.3581, allocations: 175 kB / 1.031 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.3581, allocations: 11.94 kB / 1.031 GB, free: 10.47 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.3581, allocations: 8 kB / 1.031 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.3583, allocations: 77.66 kB / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.3583, allocations: 0 / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.3584, allocations: 0 / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.3584, allocations: 0 / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.3586, allocations: 71.94 kB / 1.031 GB, free: 10.31 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004847/0.3591, allocations: 308.6 kB / 1.031 GB, free: 9.961 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.3592, allocations: 70.55 kB / 1.031 GB, free: 9.883 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.3593, allocations: 4 kB / 1.031 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002325/0.3595, allocations: 83.5 kB / 1.031 GB, free: 9.785 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.3595, allocations: 4 kB / 1.031 GB, free: 9.781 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.0004467/0.36, allocations: 161.4 kB / 1.031 GB, free: 9.617 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.36, allocations: 63.34 kB / 1.031 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.753e-05/0.3601, allocations: 117.2 kB / 1.032 GB, free: 9.418 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.3602, allocations: 29.7 kB / 1.032 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.297e-05/0.3602, allocations: 92.05 kB / 1.032 GB, free: 9.289 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.3603, allocations: 15.8 kB / 1.032 GB, free: 9.273 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.3603, allocations: 4 kB / 1.032 GB, free: 9.27 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3604, allocations: 318.8 kB / 1.032 GB, free: 8.949 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.3605, allocations: 35.97 kB / 1.032 GB, free: 8.914 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/0.3606, allocations: 64.27 kB / 1.032 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001136/0.3607, allocations: 43.92 kB / 1.032 GB, free: 8.793 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3607, allocations: 0 / 1.032 GB, free: 8.793 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002639/0.361, allocations: 129.6 kB / 1.032 GB, free: 8.66 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.361, allocations: 4 kB / 1.032 GB, free: 8.656 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.361, allocations: 0 / 1.032 GB, free: 8.656 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.3611, allocations: 7.938 kB / 1.032 GB, free: 8.648 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.3612, allocations: 15.98 kB / 1.032 GB, free: 8.633 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.3612, allocations: 4 kB / 1.032 GB, free: 8.629 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.3613, allocations: 23.94 kB / 1.032 GB, free: 8.605 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.3613, allocations: 8.031 kB / 1.032 GB, free: 8.598 MB / 0.6823 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 () * Number of clocked 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 9.386e-05/0.3614, allocations: 128.5 kB / 1.032 GB, free: 8.465 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.395e-05/0.3615, allocations: 7.906 kB / 1.032 GB, free: 8.457 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003037/0.3618, allocations: 126 kB / 1.033 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3618, allocations: 0 / 1.033 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3618, allocations: 4 kB / 1.033 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3618, allocations: 0 / 1.033 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00054/0.3623, allocations: 411.1 kB / 1.033 GB, free: 7.871 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3624, allocations: 0 / 1.033 GB, free: 7.871 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.422e-05/0.3624, allocations: 11.98 kB / 1.033 GB, free: 7.859 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.3624, allocations: 48 / 1.033 GB, free: 7.859 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.3625, allocations: 11.98 kB / 1.033 GB, free: 7.848 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.157e-05/0.3625, allocations: 0 / 1.033 GB, free: 7.848 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3625, allocations: 7.891 kB / 1.033 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000304/0.3628, allocations: 219.4 kB / 1.033 GB, free: 7.609 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.154e-05/0.3628, allocations: 85 kB / 1.033 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.3629, allocations: 8 kB / 1.033 GB, free: 7.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.363, allocations: 15.98 kB / 1.033 GB, free: 7.484 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/0.363, allocations: 11.94 kB / 1.033 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.3631, allocations: 8 kB / 1.033 GB, free: 7.465 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.522e-05/0.3631, allocations: 95.58 kB / 1.033 GB, free: 7.371 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3631, allocations: 0 / 1.033 GB, free: 7.371 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002206/0.3634, allocations: 16 kB / 1.033 GB, free: 7.355 MB / 0.6823 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 () * 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.0001221/0.3635, allocations: 95.25 kB / 1.034 GB, free: 7.25 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002753/0.3638, allocations: 95.88 kB / 1.034 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3638, allocations: 0 / 1.034 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.3639, allocations: 44.17 kB / 1.034 GB, free: 7.113 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001936/0.3641, allocations: 15.02 kB / 1.034 GB, free: 7.102 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003878/0.3645, allocations: 187.2 kB / 1.034 GB, free: 6.883 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.3648, allocations: 0.6946 MB / 1.035 GB, free: 6.164 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.563e-05/0.3648, allocations: 7.984 kB / 1.035 GB, free: 6.156 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.3649, allocations: 11.44 kB / 1.035 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of SimCode: time 3.11e-07/0.3649, allocations: 0 / 1.035 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of Templates: time 0.002722/0.3676, allocations: 0.7692 MB / 1.035 GB, free: 5.387 MB / 0.6823 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