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.001152/0.001152, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.001313/0.001313, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.9108/0.9108, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.726/1.726, allocations: 377.8 MB / 0.6221 GB, free: 8.645 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.815e-06/2.815e-06, allocations: 0 / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.047e-05/2.328e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.609 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001417/0.00144, allocations: 0.7441 MB / 0.9817 GB, free: 1.867 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001629/0.003069, allocations: 1.197 MB / 0.9828 GB, free: 0.6562 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.606e-05/0.003125, allocations: 0 / 0.9828 GB, free: 0.6562 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.227e-05/0.003158, allocations: 7.875 kB / 0.9828 GB, free: 0.6484 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.603e-05/0.003234, allocations: 19.86 kB / 0.9829 GB, free: 0.6289 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005012/0.003735, allocations: 141.3 kB / 0.983 GB, free: 0.4961 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.003877, allocations: 123.8 kB / 0.9831 GB, free: 384 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.518e-05/0.003972, allocations: 20.11 kB / 0.9831 GB, free: 360 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.004102, allocations: 75.88 kB / 0.9832 GB, free: 284 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.357e-05/0.004175, allocations: 39.86 kB / 0.9832 GB, free: 244 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.004196, allocations: 12 kB / 0.9833 GB, free: 232 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.602e-05/0.004252, allocations: 27.98 kB / 0.9833 GB, free: 204 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.854e-05/0.004271, allocations: 7.984 kB / 0.9833 GB, free: 196 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 4.705e-05/0.004318, allocations: 43.91 kB / 0.9833 GB, free: 152 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.004475, allocations: 139.6 kB / 0.9835 GB, free: 12 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.004477, allocations: 0 / 0.9835 GB, free: 12 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.052e-06/0.004478, allocations: 0 / 0.9835 GB, free: 12 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.004482, allocations: 0 / 0.9835 GB, free: 12 kB / 0.9323 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.0004318/0.004914, allocations: 355.7 kB / 0.9838 GB, free: 15.63 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.004949, allocations: 8.031 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.557e-05/0.004975, allocations: 34.75 kB / 0.9838 GB, free: 15.58 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.791e-05/0.005053, allocations: 8.891 kB / 0.9838 GB, free: 15.57 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.671e-05/0.005129, allocations: 121.7 kB / 0.984 GB, free: 15.43 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.005143, allocations: 8.375 kB / 0.984 GB, free: 15.42 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.00516, allocations: 8.359 kB / 0.984 GB, free: 15.41 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.005295, allocations: 78.16 kB / 0.9841 GB, free: 15.33 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.005303, allocations: 192 / 0.9841 GB, free: 15.33 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.707e-06/0.005311, allocations: 4.375 kB / 0.9841 GB, free: 15.32 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.005317, allocations: 3.938 kB / 0.9841 GB, free: 15.32 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.00542, allocations: 55.83 kB / 0.9841 GB, free: 15.27 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003815/0.005801, allocations: 295.8 kB / 0.9844 GB, free: 14.93 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.005922, allocations: 58.58 kB / 0.9845 GB, free: 14.87 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.743e-05/0.005979, allocations: 32.95 kB / 0.9845 GB, free: 14.83 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.005999, allocations: 0 / 0.9845 GB, free: 14.83 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000161/0.00616, allocations: 91.31 kB / 0.9846 GB, free: 14.73 MB / 0.948 GB Notification: Performance of pre-optimization done (n=8): time 8.62e-07/0.006161, allocations: 0 / 0.9846 GB, free: 14.73 MB / 0.948 GB Notification: Performance of matching and sorting (n=8): time 0.0002804/0.006441, allocations: 149.5 kB / 0.9847 GB, free: 14.58 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.006473, allocations: 55.41 kB / 0.9848 GB, free: 14.51 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.02e-05/0.006544, allocations: 125.8 kB / 0.9849 GB, free: 14.38 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.006562, allocations: 29.7 kB / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.103e-05/0.006613, allocations: 92.09 kB / 0.985 GB, free: 14.25 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.006632, allocations: 23.88 kB / 0.985 GB, free: 14.23 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.103e-05/0.006683, allocations: 37.7 kB / 0.9851 GB, free: 14.18 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.416e-05/0.006767, allocations: 326.8 kB / 0.9854 GB, free: 13.86 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.006876, allocations: 81.66 kB / 0.9855 GB, free: 13.77 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.007002, allocations: 118.8 kB / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.007167, allocations: 150.8 kB / 0.9857 GB, free: 13.46 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.007169, allocations: 0 / 0.9857 GB, free: 13.46 MB / 0.948 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002645/0.007434, allocations: 248.8 kB / 0.9859 GB, free: 13.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.007461, allocations: 37.86 kB / 0.986 GB, free: 13.15 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.007468, allocations: 4 kB / 0.986 GB, free: 13.15 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.007479, allocations: 0 / 0.986 GB, free: 13.15 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.531e-05/0.007544, allocations: 15.98 kB / 0.986 GB, free: 13.13 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.007551, allocations: 0 / 0.986 GB, free: 13.13 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.007661, allocations: 47.78 kB / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.007678, allocations: 12 kB / 0.9861 GB, free: 13.07 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 8.798e-05/0.007766, allocations: 129.7 kB / 0.9862 GB, free: 12.94 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.017e-06/0.007775, allocations: 7.984 kB / 0.9862 GB, free: 12.93 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001808/0.007956, allocations: 122.4 kB / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.007958, allocations: 0 / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.007961, allocations: 0 / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.007964, allocations: 0 / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003151/0.00828, allocations: 353.5 kB / 0.9866 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.008284, allocations: 7.984 kB / 0.9867 GB, free: 12.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.283e-05/0.008327, allocations: 4 kB / 0.9867 GB, free: 12.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.008331, allocations: 4 kB / 0.9867 GB, free: 12.39 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.00834, allocations: 3.984 kB / 0.9867 GB, free: 12.39 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.008343, allocations: 0 / 0.9867 GB, free: 12.39 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.008344, allocations: 0 / 0.9867 GB, free: 12.39 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002369/0.008581, allocations: 215.4 kB / 0.9869 GB, free: 12.16 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.181e-05/0.008592, allocations: 11.89 kB / 0.9869 GB, free: 12.15 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.008608, allocations: 0 / 0.9869 GB, free: 12.15 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.972e-05/0.008677, allocations: 19.92 kB / 0.9869 GB, free: 12.13 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.678e-05/0.008714, allocations: 7.984 kB / 0.9869 GB, free: 12.12 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.008721, allocations: 0 / 0.9869 GB, free: 12.12 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.961e-05/0.008771, allocations: 95.2 kB / 0.987 GB, free: 12.03 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.008771, allocations: 0 / 0.987 GB, free: 12.03 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002094/0.008981, allocations: 35.89 kB / 0.987 GB, free: 12 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.0003946/0.009375, allocations: 0.7398 MB / 0.9878 GB, free: 11.23 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002512/0.009626, allocations: 196.9 kB / 0.9879 GB, free: 11.02 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.009629, allocations: 4 kB / 0.9879 GB, free: 11.02 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.344e-05/0.009692, allocations: 35.95 kB / 0.988 GB, free: 10.98 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000204/0.009896, allocations: 15.45 kB / 0.988 GB, free: 10.97 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.0118, allocations: 1.835 MB / 0.9898 GB, free: 8.988 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.522e-05/0.01186, allocations: 71.58 kB / 0.9899 GB, free: 8.898 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.136e-05/0.01189, allocations: 4 kB / 0.9899 GB, free: 8.895 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.846e-05/0.01193, allocations: 28.62 kB / 0.9899 GB, free: 8.863 MB / 0.948 GB Notification: Performance of SimCode: time 4.61e-07/0.01193, allocations: 0 / 0.9899 GB, free: 8.863 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01698/0.0289, allocations: 3.361 MB / 0.9932 GB, free: 5.68 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.676/6.705, allocations: 5.016 kB / 0.9932 GB, free: 5.68 MB / 0.948 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] 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: 10.834792147390544]