Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 110.8 kB / 17.54 MB, free: 4.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 189.9 kB / 20.71 MB, free: 1.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 225.6 MB / 249.3 MB, free: 3.352 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.49/2.49, allocations: 476.7 MB / 0.7628 GB, free: 15.15 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 63.91 kB / 1.107 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7755/0.7773, allocations: 168.7 MB / 1.271 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001542/0.7788, allocations: 0.6764 MB / 1.272 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009811/0.7798, allocations: 1.055 MB / 1.273 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.896e-05/0.7798, allocations: 0.7188 kB / 1.273 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.079e-05/0.7798, allocations: 8.625 kB / 1.273 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.338e-05/0.7799, allocations: 6.156 kB / 1.273 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.7801, allocations: 46.03 kB / 1.273 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.072e-05/0.7802, allocations: 44.97 kB / 1.273 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.703e-05/0.7803, allocations: 13.3 kB / 1.273 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.717e-05/0.7803, allocations: 14.45 kB / 1.273 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.286e-05/0.7804, allocations: 32.08 kB / 1.273 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.443e-05/0.7804, allocations: 3.781 kB / 1.273 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.011e-05/0.7805, allocations: 18.88 kB / 1.273 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.764e-05/0.7805, allocations: 11.42 kB / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.24e-05/0.7805, allocations: 19.52 kB / 1.273 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.7807, allocations: 59.44 kB / 1.273 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.7807, allocations: 0 / 1.273 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.654e-06/0.7807, allocations: 0.7812 kB / 1.273 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.7807, allocations: 0 / 1.273 GB, free: 6.375 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000449/0.7811, allocations: 362.6 kB / 1.274 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.7811, allocations: 9.031 kB / 1.274 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.356e-05/0.7812, allocations: 37.67 kB / 1.274 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.506e-05/0.7812, allocations: 2.812 kB / 1.274 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.574e-05/0.7812, allocations: 176 kB / 1.274 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.7813, allocations: 2 kB / 1.274 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.7813, allocations: 11.69 kB / 1.274 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.7814, allocations: 62.2 kB / 1.274 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.7815, allocations: 5.094 kB / 1.274 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.7815, allocations: 0 / 1.274 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.7815, allocations: 1.594 kB / 1.274 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.7816, allocations: 41.81 kB / 1.274 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003104/0.782, allocations: 281.6 kB / 1.274 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001418/0.7821, allocations: 54.84 kB / 1.274 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.542e-05/0.7822, allocations: 27.97 kB / 1.274 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.7822, allocations: 1.375 kB / 1.274 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001602/0.7824, allocations: 77.23 kB / 1.274 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.7824, allocations: 0 / 1.274 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0003545/0.7827, allocations: 123 kB / 1.275 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.28e-05/0.7827, allocations: 60.31 kB / 1.275 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.864e-05/0.7828, allocations: 107 kB / 1.275 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.7828, allocations: 26.7 kB / 1.275 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.162e-05/0.7828, allocations: 83.45 kB / 1.275 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.7828, allocations: 21.91 kB / 1.275 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.7829, allocations: 22.3 kB / 1.275 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.426e-05/0.7829, allocations: 322.8 kB / 1.275 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.788e-05/0.783, allocations: 25.73 kB / 1.275 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.221e-05/0.7831, allocations: 54.53 kB / 1.275 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.7832, allocations: 78.75 kB / 1.275 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.7832, allocations: 0 / 1.275 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002248/0.7835, allocations: 110.8 kB / 1.275 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.7835, allocations: 5.562 kB / 1.275 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.7835, allocations: 0.9688 kB / 1.275 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.7835, allocations: 4.234 kB / 1.275 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.003e-05/0.7836, allocations: 16.28 kB / 1.275 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.7836, allocations: 0.8125 kB / 1.275 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.519e-05/0.7837, allocations: 7.953 kB / 1.275 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.7837, allocations: 2.938 kB / 1.275 GB, free: 4.441 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 4.877e-05/0.7837, allocations: 127.7 kB / 1.276 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.227e-05/0.7837, allocations: 6.047 kB / 1.276 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002403/0.784, allocations: 105.3 kB / 1.276 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.784, allocations: 0.7188 kB / 1.276 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.784, allocations: 0.7188 kB / 1.276 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.784, allocations: 0 / 1.276 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003204/0.7843, allocations: 359.7 kB / 1.276 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.7843, allocations: 0 / 1.276 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.336e-05/0.7844, allocations: 10.19 kB / 1.276 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.7844, allocations: 3.984 kB / 1.276 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.7844, allocations: 2.062 kB / 1.276 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.7844, allocations: 0 / 1.276 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.7844, allocations: 1.344 kB / 1.276 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002266/0.7846, allocations: 204.6 kB / 1.276 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.434e-05/0.7846, allocations: 78.67 kB / 1.276 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.7846, allocations: 5.312 kB / 1.276 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.912e-05/0.7847, allocations: 7.5 kB / 1.276 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.7847, allocations: 13.03 kB / 1.276 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.7848, allocations: 2.219 kB / 1.276 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.402e-05/0.7848, allocations: 91.98 kB / 1.276 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.7848, allocations: 0 / 1.276 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002199/0.785, allocations: 14.94 kB / 1.276 GB, free: 3.559 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0003803/0.7854, allocations: 0.7292 MB / 1.277 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002193/0.7856, allocations: 64.03 kB / 1.277 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.7856, allocations: 0 / 1.277 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.782e-05/0.7857, allocations: 32.27 kB / 1.277 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/0.7859, allocations: 13.72 kB / 1.277 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.7871, allocations: 1.385 MB / 1.279 GB, free: 17.57 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.7873, allocations: 0.6827 MB / 1.279 GB, free: 16.88 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.633e-05/0.7874, allocations: 6.844 kB / 1.279 GB, free: 16.87 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.314e-05/0.7874, allocations: 16.36 kB / 1.279 GB, free: 16.86 MB / 1.014 GB Notification: Performance of SimCode: time 2.91e-07/0.7874, allocations: 0 / 1.279 GB, free: 16.86 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.809, allocations: 1.734 MB / 1.281 GB, free: 16.48 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.96/7.769, allocations: 8.891 kB / 1.281 GB, free: 16.48 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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: 13.050472109000111]