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.001156/0.001156, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.001296/0.001296, allocations: 177.9 kB / 23.21 MB, free: 1.352 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.9155/0.9155, allocations: 177.1 MB / 203.5 MB, free: 5.723 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.775/1.775, allocations: 377.9 MB / 0.6228 GB, free: 8.637 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 3.777e-06/3.777e-06, allocations: 0 / 0.9822 GB, free: 2.082 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.995e-05/4.372e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.078 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001789/0.001833, allocations: 0.7324 MB / 0.9829 GB, free: 1.348 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001296/0.003129, allocations: 1.197 MB / 0.9841 GB, free: 140 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.208e-05/0.003181, allocations: 0 / 0.9841 GB, free: 140 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.451e-05/0.003216, allocations: 11.92 kB / 0.9841 GB, free: 128 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.099e-05/0.003287, allocations: 15.8 kB / 0.9841 GB, free: 112 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.00044/0.003727, allocations: 138.8 kB / 0.9842 GB, free: 15.97 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.003886, allocations: 127.7 kB / 0.9843 GB, free: 15.85 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.004007, allocations: 20.17 kB / 0.9844 GB, free: 15.82 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.00412, allocations: 71.92 kB / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.947e-05/0.0042, allocations: 35.89 kB / 0.9845 GB, free: 15.72 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.004229, allocations: 12 kB / 0.9845 GB, free: 15.71 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.493e-05/0.004294, allocations: 27.97 kB / 0.9845 GB, free: 15.68 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.68e-05/0.004321, allocations: 19.92 kB / 0.9845 GB, free: 15.66 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 4.925e-05/0.00437, allocations: 31.97 kB / 0.9846 GB, free: 15.63 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.004556, allocations: 151.4 kB / 0.9847 GB, free: 15.48 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.004559, allocations: 0 / 0.9847 GB, free: 15.48 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.152e-06/0.00456, allocations: 0 / 0.9847 GB, free: 15.48 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.004565, allocations: 0 / 0.9847 GB, free: 15.48 MB / 0.948 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.0005025/0.005067, allocations: 351.7 kB / 0.985 GB, free: 15.11 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.00511, allocations: 15.97 kB / 0.985 GB, free: 15.09 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.015e-05/0.0052, allocations: 8.891 kB / 0.9851 GB, free: 15.08 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.916e-05/0.005279, allocations: 109.7 kB / 0.9852 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.005293, allocations: 4.375 kB / 0.9852 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.005313, allocations: 16.36 kB / 0.9852 GB, free: 14.93 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001539/0.005466, allocations: 74.16 kB / 0.9853 GB, free: 14.85 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.005474, allocations: 192 / 0.9853 GB, free: 14.85 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.005484, allocations: 4.375 kB / 0.9853 GB, free: 14.85 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.00549, allocations: 8.125 kB / 0.9853 GB, free: 14.84 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.005595, allocations: 47.95 kB / 0.9853 GB, free: 14.79 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004715/0.006067, allocations: 260.4 kB / 0.9856 GB, free: 14.51 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.006192, allocations: 54.55 kB / 0.9856 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.244e-05/0.006244, allocations: 28.91 kB / 0.9856 GB, free: 14.41 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.006263, allocations: 8 kB / 0.9856 GB, free: 14.41 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001541/0.006417, allocations: 91.41 kB / 0.9857 GB, free: 14.3 MB / 0.948 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.006419, allocations: 3.938 kB / 0.9857 GB, free: 14.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=8): time 0.0002906/0.006709, allocations: 149.6 kB / 0.9859 GB, free: 14.15 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.006745, allocations: 51.41 kB / 0.9859 GB, free: 14.09 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.036e-05/0.006815, allocations: 125.7 kB / 0.986 GB, free: 13.95 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.006835, allocations: 33.69 kB / 0.9861 GB, free: 13.91 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.006883, allocations: 104 kB / 0.9862 GB, free: 13.81 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.006901, allocations: 15.84 kB / 0.9862 GB, free: 13.79 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.068e-05/0.006952, allocations: 37.69 kB / 0.9862 GB, free: 13.75 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.631e-05/0.007028, allocations: 318.8 kB / 0.9865 GB, free: 13.43 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.007139, allocations: 85.66 kB / 0.9866 GB, free: 13.34 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.007252, allocations: 122.8 kB / 0.9867 GB, free: 13.2 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.007415, allocations: 158.7 kB / 0.9869 GB, free: 13.02 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.007417, allocations: 0 / 0.9869 GB, free: 13.02 MB / 0.948 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002696/0.007686, allocations: 248.8 kB / 0.9871 GB, free: 12.75 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 3.093e-05/0.007717, allocations: 41.69 kB / 0.9872 GB, free: 12.71 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.007722, allocations: 4.156 kB / 0.9872 GB, free: 12.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.007734, allocations: 4 kB / 0.9872 GB, free: 12.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.221e-05/0.007796, allocations: 11.98 kB / 0.9872 GB, free: 12.69 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.007803, allocations: 7.938 kB / 0.9872 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.00791, allocations: 39.92 kB / 0.9872 GB, free: 12.64 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.00793, allocations: 11.98 kB / 0.9872 GB, free: 12.63 MB / 0.948 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 7.765e-05/0.008008, allocations: 120.9 kB / 0.9874 GB, free: 12.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-06/0.008016, allocations: 11.94 kB / 0.9874 GB, free: 12.49 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001909/0.008207, allocations: 130.4 kB / 0.9875 GB, free: 12.36 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.00821, allocations: 0 / 0.9875 GB, free: 12.36 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.008215, allocations: 3.938 kB / 0.9875 GB, free: 12.36 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.008218, allocations: 4 kB / 0.9875 GB, free: 12.35 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002713/0.00849, allocations: 318.1 kB / 0.9878 GB, free: 12 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.008493, allocations: 4 kB / 0.9878 GB, free: 12 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.397e-05/0.008527, allocations: 8 kB / 0.9878 GB, free: 11.99 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.008532, allocations: 4.031 kB / 0.9878 GB, free: 11.99 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.008543, allocations: 7.984 kB / 0.9878 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.008545, allocations: 0 / 0.9878 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.008546, allocations: 0 / 0.9878 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001694/0.008715, allocations: 215.4 kB / 0.988 GB, free: 11.75 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-06/0.008723, allocations: 3.953 kB / 0.988 GB, free: 11.75 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.008736, allocations: 4 kB / 0.988 GB, free: 11.75 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.226e-05/0.008778, allocations: 11.98 kB / 0.988 GB, free: 11.73 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.008816, allocations: 7.984 kB / 0.9881 GB, free: 11.73 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.008823, allocations: 4 kB / 0.9881 GB, free: 11.72 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.488e-05/0.008858, allocations: 91.27 kB / 0.9881 GB, free: 11.63 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.008858, allocations: 0 / 0.9881 GB, free: 11.63 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001759/0.009034, allocations: 28 kB / 0.9882 GB, free: 11.61 MB / 0.948 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.0001105/0.009144, allocations: 107.1 kB / 0.9883 GB, free: 11.49 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002561/0.0094, allocations: 204.9 kB / 0.9885 GB, free: 11.27 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.009402, allocations: 0 / 0.9885 GB, free: 11.27 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.473e-05/0.009467, allocations: 39.91 kB / 0.9885 GB, free: 11.23 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.009669, allocations: 11.94 kB / 0.9885 GB, free: 11.22 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003248/0.009993, allocations: 199 kB / 0.9887 GB, free: 11 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.062e-05/0.01005, allocations: 79.89 kB / 0.9888 GB, free: 10.9 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.524e-05/0.01008, allocations: 12.5 kB / 0.9888 GB, free: 10.88 MB / 0.948 GB Notification: Performance of SimCode: time 7.11e-07/0.01008, allocations: 0 / 0.9888 GB, free: 10.88 MB / 0.948 GB Notification: Performance of Templates: time 0.002117/0.0122, allocations: 1.315 MB / 0.9901 GB, free: 9.582 MB / 0.948 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 6.613873899914324]