Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 71.75 kB / 20.97 MB, free: 3.574 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009689/0.0009689, allocations: 169 kB / 24.28 MB, free: 276 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.001/1.001, allocations: 177.1 MB / 204.6 MB, free: 5.27 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.869/1.869, allocations: 377.8 MB / 0.6239 GB, free: 8.547 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 0.8115 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.255e-05, allocations: 2.312 kB / 0.8115 GB, free: 0.9297 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001601/0.001623, allocations: 0.7518 MB / 0.8122 GB, free: 204 kB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.002836, allocations: 1.219 MB / 0.8134 GB, free: 14.97 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.145e-05/0.002887, allocations: 0 / 0.8134 GB, free: 14.97 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 2.847e-05/0.002915, allocations: 3.938 kB / 0.8134 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 7.228e-05/0.002988, allocations: 15.88 kB / 0.8135 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004037/0.003391, allocations: 136.6 kB / 0.8136 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.003549, allocations: 131.7 kB / 0.8137 GB, free: 14.69 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.00366, allocations: 21.72 kB / 0.8137 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.00377, allocations: 63.95 kB / 0.8138 GB, free: 14.6 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 7.448e-05/0.003845, allocations: 43.86 kB / 0.8138 GB, free: 14.56 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 2.135e-05/0.003866, allocations: 12 kB / 0.8139 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 5.654e-05/0.003923, allocations: 20.66 kB / 0.8139 GB, free: 14.53 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 2.558e-05/0.003948, allocations: 20.44 kB / 0.8139 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 4.917e-05/0.003998, allocations: 35.97 kB / 0.8139 GB, free: 14.47 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.004156, allocations: 112.7 kB / 0.814 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.004158, allocations: 0 / 0.814 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of FrontEnd: time 4.4e-07/0.004159, allocations: 0 / 0.814 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.097e-06/0.004163, allocations: 0.6562 kB / 0.814 GB, free: 14.36 MB / 0.7292 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.0004481/0.004611, allocations: 440.1 kB / 0.8145 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.004648, allocations: 8.031 kB / 0.8145 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.004758, allocations: 20.89 kB / 0.8145 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.521e-05/0.004844, allocations: 128.4 kB / 0.8146 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.004858, allocations: 4.375 kB / 0.8146 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.815e-05/0.004876, allocations: 12.38 kB / 0.8146 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001351/0.005011, allocations: 71.78 kB / 0.8147 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.005019, allocations: 192 / 0.8147 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.005029, allocations: 4.359 kB / 0.8147 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.00504, allocations: 5.156 kB / 0.8147 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.041e-05/0.00508, allocations: 15.94 kB / 0.8147 GB, free: 13.6 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004029/0.005483, allocations: 321 kB / 0.815 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 8.999e-05/0.005573, allocations: 51.08 kB / 0.8151 GB, free: 13.19 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.759e-05/0.005601, allocations: 21.55 kB / 0.8151 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.005623, allocations: 4 kB / 0.8151 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001033/0.005726, allocations: 77.16 kB / 0.8152 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.005727, allocations: 0 / 0.8152 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8): time 0.0002309/0.005958, allocations: 105.5 kB / 0.8153 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.005994, allocations: 61.09 kB / 0.8153 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.369e-05/0.006088, allocations: 173.9 kB / 0.8155 GB, free: 12.7 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.00611, allocations: 33.7 kB / 0.8155 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.768e-05/0.006167, allocations: 142.8 kB / 0.8157 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.006188, allocations: 16.8 kB / 0.8157 GB, free: 12.5 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.233e-05/0.00624, allocations: 47.34 kB / 0.8157 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.006372, allocations: 0.4884 MB / 0.8162 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.422e-05/0.006446, allocations: 62.2 kB / 0.8163 GB, free: 11.88 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.135e-05/0.006537, allocations: 120.3 kB / 0.8164 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.006653, allocations: 129.5 kB / 0.8165 GB, free: 11.58 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.006657, allocations: 4.531 kB / 0.8165 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002315/0.006888, allocations: 222.1 kB / 0.8167 GB, free: 11.34 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.00692, allocations: 38.84 kB / 0.8167 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.006927, allocations: 4 kB / 0.8167 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.006941, allocations: 0 / 0.8167 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.007023, allocations: 20.95 kB / 0.8168 GB, free: 11.27 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.007031, allocations: 4 kB / 0.8168 GB, free: 11.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.643e-05/0.007127, allocations: 32.72 kB / 0.8168 GB, free: 11.24 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.007145, allocations: 7.984 kB / 0.8168 GB, free: 11.23 MB / 0.7292 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 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.534e-05/0.00724, allocations: 171.9 kB / 0.817 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.007253, allocations: 13.17 kB / 0.817 GB, free: 11.04 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000144/0.007397, allocations: 90.11 kB / 0.8171 GB, free: 10.95 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.0074, allocations: 48 / 0.8171 GB, free: 10.95 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.007406, allocations: 4.828 kB / 0.8171 GB, free: 10.95 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.007414, allocations: 3.984 kB / 0.8171 GB, free: 10.94 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.007641, allocations: 338.4 kB / 0.8174 GB, free: 10.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.007642, allocations: 0 / 0.8174 GB, free: 10.57 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.004e-05/0.007672, allocations: 11.98 kB / 0.8174 GB, free: 10.56 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.007674, allocations: 1.375 kB / 0.8174 GB, free: 10.56 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.007684, allocations: 4 kB / 0.8174 GB, free: 10.55 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.007685, allocations: 0 / 0.8174 GB, free: 10.55 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.007686, allocations: 0 / 0.8174 GB, free: 10.55 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/0.007823, allocations: 245.2 kB / 0.8177 GB, free: 10.3 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-06/0.007829, allocations: 0 / 0.8177 GB, free: 10.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.007843, allocations: 4 kB / 0.8177 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.459e-05/0.007877, allocations: 3.984 kB / 0.8177 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.451e-05/0.007922, allocations: 10.94 kB / 0.8177 GB, free: 10.28 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.00793, allocations: 7.984 kB / 0.8177 GB, free: 10.27 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.122e-05/0.007982, allocations: 127.2 kB / 0.8178 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6e-08/0.007982, allocations: 0 / 0.8178 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001797/0.008161, allocations: 35.88 kB / 0.8178 GB, free: 10.11 MB / 0.7292 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001294/0.008291, allocations: 103.2 kB / 0.8179 GB, free: 10 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002131/0.008504, allocations: 166.5 kB / 0.8181 GB, free: 9.82 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.008505, allocations: 3.938 kB / 0.8181 GB, free: 9.816 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 4.056e-05/0.008546, allocations: 31.61 kB / 0.8181 GB, free: 9.781 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.008752, allocations: 16.92 kB / 0.8181 GB, free: 9.766 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005137/0.009266, allocations: 182.3 kB / 0.8183 GB, free: 9.562 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.068e-05/0.009306, allocations: 59.34 kB / 0.8184 GB, free: 9.484 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.423e-05/0.00933, allocations: 4 kB / 0.8184 GB, free: 9.48 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.492e-05/0.009355, allocations: 16.5 kB / 0.8184 GB, free: 9.465 MB / 0.7292 GB Notification: Performance of SimCode: time 5.71e-07/0.009356, allocations: 0 / 0.8184 GB, free: 9.465 MB / 0.7292 GB Notification: Performance of Templates: time 0.003323/0.01268, allocations: 1.572 MB / 0.8199 GB, free: 7.957 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.931134085869417]