Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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.001457/0.001457, allocations: 109.4 kB / 16.46 MB, free: 6.035 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.001521/0.001521, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.461/1.461, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.602/2.602, allocations: 443.5 MB / 0.7287 GB, free: 13.31 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.Sampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 63.91 kB / 1.056 GB, free: 5.945 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.808/0.81, allocations: 160.7 MB / 1.213 GB, free: 3.883 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002321/0.8123, allocations: 0.6674 MB / 1.214 GB, free: 3.383 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00186/0.8141, allocations: 1.059 MB / 1.215 GB, free: 2.527 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.927e-05/0.8142, allocations: 1.125 kB / 1.215 GB, free: 2.527 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.516e-05/0.8142, allocations: 3.938 kB / 1.215 GB, free: 2.523 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.323e-05/0.8143, allocations: 5.031 kB / 1.215 GB, free: 2.52 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.00034/0.8147, allocations: 41.55 kB / 1.215 GB, free: 2.488 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.8148, allocations: 50.69 kB / 1.215 GB, free: 2.457 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.8149, allocations: 7.25 kB / 1.215 GB, free: 2.453 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.326e-05/0.815, allocations: 23.47 kB / 1.215 GB, free: 2.438 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.742e-05/0.815, allocations: 18.64 kB / 1.215 GB, free: 2.426 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.815, allocations: 11.22 kB / 1.215 GB, free: 2.418 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.708e-05/0.8151, allocations: 22.92 kB / 1.215 GB, free: 2.406 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.505e-05/0.8151, allocations: 9.078 kB / 1.215 GB, free: 2.398 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.217e-05/0.8152, allocations: 24.98 kB / 1.215 GB, free: 2.379 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.8153, allocations: 55.92 kB / 1.215 GB, free: 2.34 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.8153, allocations: 0 / 1.215 GB, free: 2.34 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8153, allocations: 0 / 1.215 GB, free: 2.34 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.8154, allocations: 0 / 1.215 GB, free: 2.34 MB / 0.92 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.000645/0.816, allocations: 368.8 kB / 1.215 GB, free: 1.953 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.816, allocations: 14.31 kB / 1.215 GB, free: 1.949 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.818e-05/0.8161, allocations: 35.91 kB / 1.215 GB, free: 1.906 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.897e-05/0.8161, allocations: 3 kB / 1.215 GB, free: 1.906 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.8163, allocations: 178.4 kB / 1.215 GB, free: 1.695 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.8163, allocations: 6.625 kB / 1.215 GB, free: 1.691 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.8163, allocations: 2.406 kB / 1.215 GB, free: 1.691 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002036/0.8165, allocations: 63.28 kB / 1.215 GB, free: 1.641 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.8165, allocations: 8.625 kB / 1.215 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.8165, allocations: 1.062 kB / 1.215 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.8165, allocations: 1.094 kB / 1.215 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.8167, allocations: 38.5 kB / 1.216 GB, free: 1.617 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005044/0.8172, allocations: 274.2 kB / 1.216 GB, free: 1.316 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.8174, allocations: 59.45 kB / 1.216 GB, free: 1.27 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.8175, allocations: 30.05 kB / 1.216 GB, free: 1.25 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.8176, allocations: 0 / 1.216 GB, free: 1.25 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.8178, allocations: 68.89 kB / 1.216 GB, free: 1.188 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.8178, allocations: 3.938 kB / 1.216 GB, free: 1.184 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0005988/0.8184, allocations: 126.7 kB / 1.216 GB, free: 1.105 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.8185, allocations: 52.53 kB / 1.216 GB, free: 1.043 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.8186, allocations: 106.5 kB / 1.216 GB, free: 0.9375 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.8186, allocations: 33.64 kB / 1.216 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.8187, allocations: 86.78 kB / 1.216 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.801e-05/0.8187, allocations: 21.12 kB / 1.216 GB, free: 0.793 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/0.8188, allocations: 20.94 kB / 1.216 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002111/0.819, allocations: 327.8 kB / 1.217 GB, free: 456 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.8191, allocations: 21.83 kB / 1.217 GB, free: 448 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.8192, allocations: 50.98 kB / 1.217 GB, free: 400 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.8194, allocations: 82.55 kB / 1.217 GB, free: 336 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.8194, allocations: 4 kB / 1.217 GB, free: 332 kB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002744/0.8197, allocations: 103.7 kB / 1.217 GB, free: 264 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.8197, allocations: 8.688 kB / 1.217 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.8197, allocations: 4.031 kB / 1.217 GB, free: 260 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.8197, allocations: 10.09 kB / 1.217 GB, free: 252 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.8199, allocations: 18.17 kB / 1.217 GB, free: 244 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.8199, allocations: 1.062 kB / 1.217 GB, free: 244 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.61e-05/0.82, allocations: 4.562 kB / 1.217 GB, free: 244 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.82, allocations: 6.891 kB / 1.217 GB, free: 240 kB / 0.92 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 0.0001032/0.8201, allocations: 121 kB / 1.217 GB, free: 116 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.555e-05/0.8201, allocations: 6.141 kB / 1.217 GB, free: 112 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002987/0.8204, allocations: 109.4 kB / 1.217 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.8204, allocations: 0 / 1.217 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.8204, allocations: 1.312 kB / 1.217 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.8204, allocations: 0 / 1.217 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007109/0.8211, allocations: 351.5 kB / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.8211, allocations: 0.9062 kB / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.8212, allocations: 13.67 kB / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.8212, allocations: 1.156 kB / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.8212, allocations: 1.125 kB / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.8212, allocations: 0 / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.8212, allocations: 1.125 kB / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004485/0.8217, allocations: 192.1 kB / 1.218 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-05/0.8217, allocations: 83.09 kB / 1.218 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.8218, allocations: 9.25 kB / 1.218 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.8219, allocations: 12.55 kB / 1.218 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/0.822, allocations: 10.22 kB / 1.218 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.822, allocations: 10.48 kB / 1.218 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.521e-05/0.8221, allocations: 79.69 kB / 1.218 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.8221, allocations: 0 / 1.218 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004283/0.8225, allocations: 14.38 kB / 1.218 GB, free: 15.3 MB / 0.9356 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.0009257/0.8235, allocations: 0.7342 MB / 1.219 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003669/0.8238, allocations: 68.22 kB / 1.219 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.8238, allocations: 192 / 1.219 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.824, allocations: 29.67 kB / 1.219 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/0.8244, allocations: 19.42 kB / 1.219 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.8268, allocations: 1.379 MB / 1.22 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.8273, allocations: 0.6842 MB / 1.221 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.11e-05/0.8273, allocations: 3.375 kB / 1.221 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.176e-05/0.8274, allocations: 14.91 kB / 1.221 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of SimCode: time 8.11e-07/0.8274, allocations: 4 kB / 1.221 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03033/0.8577, allocations: 1.751 MB / 1.223 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.258/9.115, allocations: 10.45 kB / 1.223 GB, free: 11.54 MB / 0.9356 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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: 14.892407392151654]