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.001005/0.001005, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001038/0.001038, allocations: 173.3 kB / 23.49 MB, free: 1.062 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 1.071/1.071, allocations: 177.1 MB / 203.8 MB, free: 5.637 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.311/2.311, allocations: 429.5 MB / 0.6736 GB, free: 4.047 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 3.286e-06/3.286e-06, allocations: 0 / 0.8782 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.623e-05/3.951e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.645 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001806/0.001846, allocations: 0.7682 MB / 0.8789 GB, free: 5.898 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.003342, allocations: 1.208 MB / 0.8801 GB, free: 4.68 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.068e-05/0.003413, allocations: 9.062 kB / 0.8801 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.841e-05/0.003451, allocations: 3.938 kB / 0.8801 GB, free: 4.668 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.003553, allocations: 15.86 kB / 0.8801 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005725/0.004125, allocations: 137.1 kB / 0.8803 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001965/0.004322, allocations: 127.7 kB / 0.8804 GB, free: 4.395 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.00445, allocations: 18.48 kB / 0.8804 GB, free: 4.375 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.004583, allocations: 67.89 kB / 0.8805 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003846/0.004967, allocations: 39.92 kB / 0.8805 GB, free: 4.27 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.259e-05/0.005, allocations: 12 kB / 0.8805 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.187e-05/0.005082, allocations: 27.92 kB / 0.8805 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.084e-05/0.005113, allocations: 19.92 kB / 0.8806 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.779e-05/0.00517, allocations: 38.12 kB / 0.8806 GB, free: 4.176 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001978/0.005368, allocations: 107.7 kB / 0.8807 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.005373, allocations: 3.984 kB / 0.8807 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.262e-06/0.005375, allocations: 0 / 0.8807 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.00538, allocations: 0 / 0.8807 GB, free: 4.066 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.0005603/0.00594, allocations: 434.1 kB / 0.8811 GB, free: 3.602 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.005989, allocations: 12.75 kB / 0.8811 GB, free: 3.59 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.006135, allocations: 20.81 kB / 0.8811 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.006238, allocations: 122.2 kB / 0.8813 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.006257, allocations: 4.375 kB / 0.8813 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.006279, allocations: 12.31 kB / 0.8813 GB, free: 3.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001574/0.006436, allocations: 74.92 kB / 0.8813 GB, free: 3.328 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.006444, allocations: 1.5 kB / 0.8813 GB, free: 3.328 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.006455, allocations: 384 / 0.8813 GB, free: 3.328 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.006466, allocations: 8.125 kB / 0.8814 GB, free: 3.32 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.325e-05/0.006509, allocations: 15.98 kB / 0.8814 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004784/0.006987, allocations: 327.5 kB / 0.8817 GB, free: 2.949 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.00709, allocations: 43.05 kB / 0.8817 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.022e-05/0.00712, allocations: 23.61 kB / 0.8817 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.007139, allocations: 0 / 0.8817 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000127/0.007266, allocations: 77.19 kB / 0.8818 GB, free: 2.777 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.007267, allocations: 0 / 0.8818 GB, free: 2.777 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002447/0.007512, allocations: 105.6 kB / 0.8819 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.007554, allocations: 51.41 kB / 0.882 GB, free: 2.605 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.462e-05/0.007649, allocations: 181.9 kB / 0.8821 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.007673, allocations: 37.69 kB / 0.8822 GB, free: 2.367 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.323e-05/0.007736, allocations: 142.8 kB / 0.8823 GB, free: 2.223 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.00776, allocations: 27.73 kB / 0.8823 GB, free: 2.195 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.229e-05/0.007832, allocations: 47.34 kB / 0.8824 GB, free: 2.141 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.007958, allocations: 496.1 kB / 0.8829 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.602e-05/0.008044, allocations: 61.67 kB / 0.8829 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.631e-05/0.00814, allocations: 123.8 kB / 0.883 GB, free: 1.426 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.008263, allocations: 127.8 kB / 0.8832 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.008265, allocations: 0 / 0.8832 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002477/0.008513, allocations: 216.8 kB / 0.8834 GB, free: 1.039 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/0.008555, allocations: 37.69 kB / 0.8834 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.008562, allocations: 0 / 0.8834 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.00858, allocations: 0 / 0.8834 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.008688, allocations: 20.08 kB / 0.8834 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.008696, allocations: 8 kB / 0.8834 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.0088, allocations: 27.98 kB / 0.8835 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.008819, allocations: 11.98 kB / 0.8835 GB, free: 0.9297 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.0001011/0.00892, allocations: 160.6 kB / 0.8836 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/0.008938, allocations: 15.83 kB / 0.8836 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001575/0.009095, allocations: 90.09 kB / 0.8837 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.009099, allocations: 4 kB / 0.8837 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.009103, allocations: 0 / 0.8837 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.009107, allocations: 4 kB / 0.8837 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.009369, allocations: 345.3 kB / 0.8841 GB, free: 268 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.009371, allocations: 0 / 0.8841 GB, free: 268 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.044e-05/0.009422, allocations: 7.984 kB / 0.8841 GB, free: 260 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.009425, allocations: 0 / 0.8841 GB, free: 260 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.009433, allocations: 0 / 0.8841 GB, free: 260 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.009436, allocations: 4 kB / 0.8841 GB, free: 256 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.009438, allocations: 0 / 0.8841 GB, free: 256 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.009614, allocations: 239.8 kB / 0.8843 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.445e-05/0.009628, allocations: 19.92 kB / 0.8843 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.009642, allocations: 4 kB / 0.8843 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.88e-05/0.00969, allocations: 11.88 kB / 0.8843 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.318e-05/0.009734, allocations: 3.984 kB / 0.8843 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.009742, allocations: 11.94 kB / 0.8843 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.895e-05/0.009791, allocations: 131.2 kB / 0.8845 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.009791, allocations: 0 / 0.8845 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002048/0.009996, allocations: 24 kB / 0.8845 GB, free: 15.79 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.0001572/0.01015, allocations: 99.25 kB / 0.8846 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002277/0.01038, allocations: 172.9 kB / 0.8848 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.01038, allocations: 0 / 0.8848 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.421e-05/0.01043, allocations: 27.67 kB / 0.8848 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.01066, allocations: 15.88 kB / 0.8848 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005958/0.01126, allocations: 182.4 kB / 0.885 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.361e-05/0.0113, allocations: 59.34 kB / 0.885 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.051e-05/0.01133, allocations: 8.125 kB / 0.885 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.01136, allocations: 12.5 kB / 0.885 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of SimCode: time 1.793e-06/0.01136, allocations: 0 / 0.885 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of Templates: time 0.003978/0.01534, allocations: 1.581 MB / 0.8866 GB, free: 13.61 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.911314385943115]