Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001327/0.001327, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.001605/0.001605, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 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 0.9835/0.9835, allocations: 177.1 MB / 203.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.132/2.132, allocations: 429.5 MB / 0.6733 GB, free: 4.027 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 0.8782 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.079e-05/2.288e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.305 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001853/0.001876, allocations: 0.7669 MB / 0.8789 GB, free: 5.559 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001678/0.003554, allocations: 1.214 MB / 0.8801 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.046e-05/0.003615, allocations: 0 / 0.8801 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.963e-05/0.003654, allocations: 7.875 kB / 0.8801 GB, free: 4.328 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.873e-05/0.003743, allocations: 16.95 kB / 0.8801 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005447/0.004288, allocations: 136.2 kB / 0.8802 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001938/0.004482, allocations: 131.7 kB / 0.8804 GB, free: 4.051 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.004599, allocations: 13.14 kB / 0.8804 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.004732, allocations: 71.88 kB / 0.8805 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.302e-05/0.004825, allocations: 40.62 kB / 0.8805 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.077e-05/0.004856, allocations: 12 kB / 0.8805 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.096e-05/0.004937, allocations: 32.48 kB / 0.8805 GB, free: 3.883 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.713e-05/0.004964, allocations: 11.92 kB / 0.8805 GB, free: 3.871 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.577e-05/0.00503, allocations: 47.33 kB / 0.8806 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.00523, allocations: 103.8 kB / 0.8807 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005232, allocations: 0 / 0.8807 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.02e-07/0.005233, allocations: 0 / 0.8807 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.005237, allocations: 0 / 0.8807 GB, free: 3.727 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.0005483/0.005785, allocations: 438.1 kB / 0.8811 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.005828, allocations: 11.97 kB / 0.8811 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001327/0.005961, allocations: 20.83 kB / 0.8811 GB, free: 3.227 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.006066, allocations: 121.1 kB / 0.8813 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.006085, allocations: 8.375 kB / 0.8813 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.006116, allocations: 8.969 kB / 0.8813 GB, free: 3.066 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.006277, allocations: 67.88 kB / 0.8813 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.006288, allocations: 192 / 0.8813 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.006301, allocations: 8.312 kB / 0.8813 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.006311, allocations: 4.844 kB / 0.8813 GB, free: 2.98 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.165e-05/0.006363, allocations: 15.98 kB / 0.8814 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005372/0.0069, allocations: 321.1 kB / 0.8817 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.007033, allocations: 51.08 kB / 0.8817 GB, free: 2.555 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.744e-05/0.007071, allocations: 19.62 kB / 0.8817 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.007097, allocations: 4 kB / 0.8817 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001311/0.007228, allocations: 73.16 kB / 0.8818 GB, free: 2.441 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.007229, allocations: 0 / 0.8818 GB, free: 2.441 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002553/0.007484, allocations: 105.5 kB / 0.8819 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.007525, allocations: 59.39 kB / 0.882 GB, free: 2.262 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.007639, allocations: 181.8 kB / 0.8821 GB, free: 2.066 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.007664, allocations: 33.7 kB / 0.8822 GB, free: 2.027 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.081e-05/0.007735, allocations: 138.9 kB / 0.8823 GB, free: 1.887 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.315e-05/0.007758, allocations: 19.8 kB / 0.8823 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.235e-05/0.00783, allocations: 51.3 kB / 0.8824 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.007972, allocations: 0.4884 MB / 0.8829 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.008078, allocations: 69.67 kB / 0.8829 GB, free: 1.234 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.008197, allocations: 115.8 kB / 0.883 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.008342, allocations: 131.7 kB / 0.8832 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.008346, allocations: 4 kB / 0.8832 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003189/0.008665, allocations: 216.8 kB / 0.8834 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.354e-05/0.008709, allocations: 41.69 kB / 0.8834 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.008718, allocations: 4 kB / 0.8834 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.008738, allocations: 0 / 0.8834 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.993e-05/0.008838, allocations: 12 kB / 0.8834 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.008848, allocations: 11.92 kB / 0.8834 GB, free: 0.6211 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.008974, allocations: 19.98 kB / 0.8834 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/0.008998, allocations: 8.156 kB / 0.8835 GB, free: 0.5938 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 (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 0.0001155/0.009113, allocations: 172.6 kB / 0.8836 GB, free: 424 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.009132, allocations: 11.89 kB / 0.8836 GB, free: 412 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001807/0.009313, allocations: 90.09 kB / 0.8837 GB, free: 312 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.009315, allocations: 3.938 kB / 0.8837 GB, free: 308 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.009319, allocations: 0 / 0.8837 GB, free: 308 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.009326, allocations: 3.984 kB / 0.8837 GB, free: 304 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.009604, allocations: 341.4 kB / 0.8841 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.009606, allocations: 0 / 0.8841 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.191e-05/0.009648, allocations: 8 kB / 0.8841 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.009652, allocations: 7.984 kB / 0.8841 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.009661, allocations: 0 / 0.8841 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.009662, allocations: 0 / 0.8841 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.009663, allocations: 0 / 0.8841 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001718/0.009835, allocations: 244.2 kB / 0.8843 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.264e-05/0.009848, allocations: 11.89 kB / 0.8843 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.009865, allocations: 8 kB / 0.8843 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.31e-05/0.009928, allocations: 0 / 0.8843 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.009973, allocations: 7.984 kB / 0.8843 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.886e-06/0.009982, allocations: 7.938 kB / 0.8843 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.633e-05/0.01004, allocations: 139.2 kB / 0.8845 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01004, allocations: 0 / 0.8845 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.00029/0.01033, allocations: 24 kB / 0.8845 GB, free: 15.45 MB / 0.8542 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.0001241/0.01045, allocations: 99.23 kB / 0.8846 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000242/0.01069, allocations: 168.6 kB / 0.8847 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.0107, allocations: 0 / 0.8847 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 5.111e-05/0.01075, allocations: 31.73 kB / 0.8848 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.01105, allocations: 24.23 kB / 0.8848 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005939/0.01164, allocations: 182.4 kB / 0.885 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.236e-05/0.01169, allocations: 60.97 kB / 0.885 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.889e-05/0.01172, allocations: 4 kB / 0.885 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.121e-05/0.01175, allocations: 12.5 kB / 0.885 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of SimCode: time 8.22e-07/0.01176, allocations: 3.938 kB / 0.8851 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.003267/0.01502, allocations: 1.561 MB / 0.8866 GB, free: 13.28 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 5.594456287100911]