Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001939/0.001939, allocations: 83.69 kB / 20.23 MB, free: 4.184 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.002098/0.002098, allocations: 165.3 kB / 23.55 MB, free: 0.8672 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.59/1.59, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.923/2.923, allocations: 359 MB / 0.6048 GB, free: 10.97 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 0 / 0.7864 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.92e-05/3.166e-05, allocations: 5.922 kB / 0.7864 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002174/0.002205, allocations: 0.7592 MB / 0.7871 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002335/0.004541, allocations: 1.191 MB / 0.7883 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.042e-05/0.004601, allocations: 0.9062 kB / 0.7883 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.55e-05/0.004636, allocations: 7.875 kB / 0.7883 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.736e-05/0.004724, allocations: 12.75 kB / 0.7883 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005669/0.005291, allocations: 140.8 kB / 0.7884 GB, free: 10.75 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002546/0.005545, allocations: 127.7 kB / 0.7885 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.00567, allocations: 21.08 kB / 0.7886 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.005839, allocations: 63.94 kB / 0.7886 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.005949, allocations: 39.88 kB / 0.7887 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.005986, allocations: 12.66 kB / 0.7887 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.006105, allocations: 35.41 kB / 0.7887 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.137e-05/0.006137, allocations: 11.94 kB / 0.7887 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 7.939e-05/0.006216, allocations: 35.95 kB / 0.7887 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002755/0.006491, allocations: 147.5 kB / 0.7889 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.006494, allocations: 0 / 0.7889 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.082e-06/0.006495, allocations: 0 / 0.7889 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.006501, allocations: 4 kB / 0.7889 GB, free: 10.26 MB / 0.7448 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.0007647/0.007265, allocations: 441.7 kB / 0.7893 GB, free: 9.789 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.007305, allocations: 11.97 kB / 0.7893 GB, free: 9.777 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.007469, allocations: 17.55 kB / 0.7893 GB, free: 9.762 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.007611, allocations: 116.5 kB / 0.7895 GB, free: 9.621 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.007629, allocations: 4.969 kB / 0.7895 GB, free: 9.617 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.007657, allocations: 16.36 kB / 0.7895 GB, free: 9.602 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002062/0.007863, allocations: 67.8 kB / 0.7895 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.007873, allocations: 192 / 0.7895 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.007884, allocations: 384 / 0.7895 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.007893, allocations: 4.125 kB / 0.7895 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.008051, allocations: 41.5 kB / 0.7896 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000647/0.008698, allocations: 335.5 kB / 0.7899 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.008872, allocations: 60.64 kB / 0.79 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.008973, allocations: 31.73 kB / 0.79 GB, free: 9.02 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.009, allocations: 0 / 0.79 GB, free: 9.02 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002009/0.009201, allocations: 85.66 kB / 0.7901 GB, free: 8.922 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.009202, allocations: 1.969 kB / 0.7901 GB, free: 8.922 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8): time 0.0004302/0.009632, allocations: 137.6 kB / 0.7902 GB, free: 8.781 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.009688, allocations: 59.39 kB / 0.7903 GB, free: 8.711 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.009858, allocations: 181.9 kB / 0.7904 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.009899, allocations: 38.25 kB / 0.7905 GB, free: 8.473 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.01002, allocations: 139.5 kB / 0.7906 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.01005, allocations: 15.91 kB / 0.7906 GB, free: 8.316 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/0.01015, allocations: 48.56 kB / 0.7907 GB, free: 8.262 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002767/0.01042, allocations: 0.4923 MB / 0.7911 GB, free: 7.758 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.0106, allocations: 81.67 kB / 0.7912 GB, free: 7.672 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.01083, allocations: 151.3 kB / 0.7914 GB, free: 7.496 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.01114, allocations: 169.6 kB / 0.7915 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.01114, allocations: 0.6562 kB / 0.7915 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005114/0.01165, allocations: 254 kB / 0.7918 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.87e-05/0.0117, allocations: 38.41 kB / 0.7918 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.01171, allocations: 0 / 0.7918 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.01172, allocations: 5.219 kB / 0.7918 GB, free: 6.988 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.01183, allocations: 19.94 kB / 0.7918 GB, free: 6.969 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.076e-06/0.01184, allocations: 4.297 kB / 0.7918 GB, free: 6.965 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/0.01202, allocations: 29 kB / 0.7919 GB, free: 6.938 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.01204, allocations: 8.938 kB / 0.7919 GB, free: 6.93 MB / 0.7448 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.0001532/0.01219, allocations: 173.4 kB / 0.792 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.49e-05/0.01222, allocations: 11.89 kB / 0.7921 GB, free: 6.738 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002748/0.01249, allocations: 120.2 kB / 0.7922 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.0125, allocations: 8.031 kB / 0.7922 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.01251, allocations: 0 / 0.7922 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.01251, allocations: 0 / 0.7922 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004759/0.01299, allocations: 369.4 kB / 0.7925 GB, free: 6.211 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01299, allocations: 6.781 kB / 0.7925 GB, free: 6.207 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.972e-05/0.01304, allocations: 4 kB / 0.7925 GB, free: 6.203 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.01304, allocations: 0 / 0.7925 GB, free: 6.203 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.01305, allocations: 0 / 0.7925 GB, free: 6.203 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.01305, allocations: 7.938 kB / 0.7925 GB, free: 6.195 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.01306, allocations: 3.984 kB / 0.7925 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000349/0.0134, allocations: 259.8 kB / 0.7928 GB, free: 5.918 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.53e-05/0.01342, allocations: 9.453 kB / 0.7928 GB, free: 5.91 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.01344, allocations: 0 / 0.7928 GB, free: 5.91 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.972e-05/0.01351, allocations: 4 kB / 0.7928 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.176e-05/0.01356, allocations: 7.984 kB / 0.7928 GB, free: 5.898 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.01357, allocations: 4.5 kB / 0.7928 GB, free: 5.895 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 9.422e-05/0.01366, allocations: 139.7 kB / 0.793 GB, free: 5.758 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.01366, allocations: 0 / 0.793 GB, free: 5.758 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002777/0.01394, allocations: 29.27 kB / 0.793 GB, free: 5.73 MB / 0.7448 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.0001876/0.01413, allocations: 119 kB / 0.7931 GB, free: 5.602 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0004552/0.01458, allocations: 213.9 kB / 0.7933 GB, free: 5.371 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01459, allocations: 1 kB / 0.7933 GB, free: 5.371 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.01472, allocations: 39.67 kB / 0.7933 GB, free: 5.328 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.01501, allocations: 23.89 kB / 0.7934 GB, free: 5.309 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004913/0.0155, allocations: 178.4 kB / 0.7935 GB, free: 5.105 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.62e-05/0.01559, allocations: 79.25 kB / 0.7936 GB, free: 5.008 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.124e-05/0.01563, allocations: 7.984 kB / 0.7936 GB, free: 5 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.793e-05/0.01568, allocations: 12.5 kB / 0.7936 GB, free: 4.988 MB / 0.7448 GB Notification: Performance of SimCode: time 6.72e-07/0.01568, allocations: 0.9375 kB / 0.7936 GB, free: 4.988 MB / 0.7448 GB Notification: Performance of Templates: time 0.005502/0.02118, allocations: 1.564 MB / 0.7952 GB, free: 3.473 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.122704229084775]