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.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.0007884/0.0007884, 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.0008443/0.0008443, allocations: 169.9 kB / 22.46 MB, free: 2.102 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.901/0.901, allocations: 177.1 MB / 202.7 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.667/1.667, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] 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: "" <> 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 2.295e-06/2.295e-06, allocations: 0 / 0.9505 GB, free: 3.504 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.976e-05/2.205e-05, allocations: 10.22 kB / 0.9505 GB, free: 3.492 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001352/0.001374, allocations: 0.6611 MB / 0.9511 GB, free: 2.828 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001067/0.002441, allocations: 1.081 MB / 0.9522 GB, free: 1.734 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.688e-05/0.002488, allocations: 4 kB / 0.9522 GB, free: 1.73 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.678e-05/0.002515, allocations: 3.938 kB / 0.9522 GB, free: 1.727 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.124e-05/0.002576, allocations: 7.922 kB / 0.9522 GB, free: 1.719 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003008/0.002877, allocations: 51.7 kB / 0.9522 GB, free: 1.668 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 8.852e-05/0.002966, allocations: 43.86 kB / 0.9523 GB, free: 1.625 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.437e-05/0.00306, allocations: 11.98 kB / 0.9523 GB, free: 1.613 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 7.742e-05/0.003138, allocations: 23.97 kB / 0.9523 GB, free: 1.59 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.326e-05/0.003181, allocations: 23.91 kB / 0.9523 GB, free: 1.566 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.485e-05/0.003196, allocations: 4 kB / 0.9523 GB, free: 1.562 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.843e-05/0.003254, allocations: 12 kB / 0.9524 GB, free: 1.551 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.003274, allocations: 11.98 kB / 0.9524 GB, free: 1.539 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.88e-05/0.003303, allocations: 15.97 kB / 0.9524 GB, free: 1.523 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.00344, allocations: 71.72 kB / 0.9524 GB, free: 1.453 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.003443, allocations: 0 / 0.9524 GB, free: 1.453 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.021e-06/0.003444, allocations: 0 / 0.9524 GB, free: 1.453 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.978e-06/0.003448, allocations: 0 / 0.9524 GB, free: 1.453 MB / 0.9011 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.000432/0.00388, allocations: 296.2 kB / 0.9527 GB, free: 1.133 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.00392, allocations: 12.03 kB / 0.9527 GB, free: 1.121 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.775e-05/0.003948, allocations: 34.69 kB / 0.9528 GB, free: 1.078 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.485e-05/0.004013, allocations: 8.938 kB / 0.9528 GB, free: 1.07 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.95e-05/0.004092, allocations: 113.8 kB / 0.9529 GB, free: 0.9336 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.004103, allocations: 4.359 kB / 0.9529 GB, free: 0.9297 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-06/0.004113, allocations: 4.375 kB / 0.9529 GB, free: 0.9258 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.00425, allocations: 58.23 kB / 0.953 GB, free: 0.8633 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.004257, allocations: 4.125 kB / 0.953 GB, free: 0.8594 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-06/0.004266, allocations: 384 / 0.953 GB, free: 0.8594 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.00427, allocations: 4.125 kB / 0.953 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001009/0.004371, allocations: 51.89 kB / 0.953 GB, free: 0.8047 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003408/0.004712, allocations: 239.9 kB / 0.9532 GB, free: 0.5273 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.004825, allocations: 50.55 kB / 0.9533 GB, free: 480 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.356e-05/0.004878, allocations: 28.95 kB / 0.9533 GB, free: 448 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 1.889e-05/0.004897, allocations: 3.938 kB / 0.9533 GB, free: 444 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001556/0.005053, allocations: 83.31 kB / 0.9534 GB, free: 348 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=6): time 2.164e-06/0.005055, allocations: 4 kB / 0.9534 GB, free: 344 kB / 0.9011 GB Notification: Performance of matching and sorting (n=6): time 0.0002618/0.005317, allocations: 121.6 kB / 0.9535 GB, free: 216 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.005354, allocations: 59.39 kB / 0.9536 GB, free: 144 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.814e-05/0.005412, allocations: 101.9 kB / 0.9537 GB, free: 32 kB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.005423, allocations: 25.7 kB / 0.9537 GB, free: 0 / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 4.754e-05/0.005471, allocations: 88.12 kB / 0.9538 GB, free: 15.91 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.005488, allocations: 15.91 kB / 0.9538 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.005519, allocations: 17.72 kB / 0.9538 GB, free: 15.87 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.464e-05/0.005594, allocations: 322.8 kB / 0.9541 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.296e-05/0.005647, allocations: 27.92 kB / 0.9542 GB, free: 15.52 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.446e-05/0.005711, allocations: 47.41 kB / 0.9542 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.005825, allocations: 83.33 kB / 0.9543 GB, free: 15.37 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-06/0.005827, allocations: 0 / 0.9543 GB, free: 15.37 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001491/0.005976, allocations: 113.5 kB / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.005989, allocations: 4 kB / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.005995, allocations: 4 kB / 0.9544 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.006006, allocations: 0 / 0.9544 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.83e-05/0.006075, allocations: 11.98 kB / 0.9544 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.006083, allocations: 7.938 kB / 0.9544 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.519e-05/0.006118, allocations: 7.984 kB / 0.9544 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.006127, allocations: 8.094 kB / 0.9544 GB, free: 15.21 MB / 0.9167 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 6.482e-05/0.006192, allocations: 113.8 kB / 0.9545 GB, free: 15.09 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.827e-06/0.006201, allocations: 7.891 kB / 0.9545 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/0.006368, allocations: 106 kB / 0.9546 GB, free: 14.96 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.00637, allocations: 0 / 0.9546 GB, free: 14.96 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.006374, allocations: 0 / 0.9546 GB, free: 14.96 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.006378, allocations: 0 / 0.9546 GB, free: 14.96 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.00666, allocations: 338 kB / 0.955 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.006661, allocations: 0 / 0.955 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.097e-05/0.006692, allocations: 16.05 kB / 0.955 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.006694, allocations: 0 / 0.955 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.006701, allocations: 0 / 0.955 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.006703, allocations: 0 / 0.955 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.006704, allocations: 0 / 0.955 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004079/0.007111, allocations: 203.3 kB / 0.9552 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.673e-06/0.007118, allocations: 4 kB / 0.9552 GB, free: 14.35 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.007129, allocations: 4 kB / 0.9552 GB, free: 14.35 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.996e-05/0.007179, allocations: 11.98 kB / 0.9552 GB, free: 14.34 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.007211, allocations: 4 kB / 0.9552 GB, free: 14.33 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.007222, allocations: 0 / 0.9552 GB, free: 14.33 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.884e-05/0.007251, allocations: 87.27 kB / 0.9553 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007251, allocations: 0 / 0.9553 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001713/0.007422, allocations: 12 kB / 0.9553 GB, free: 14.23 MB / 0.9167 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.0003703/0.007793, allocations: 0.7318 MB / 0.956 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001533/0.007946, allocations: 67.88 kB / 0.9561 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.007947, allocations: 0 / 0.9561 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.559e-05/0.008003, allocations: 27.98 kB / 0.9561 GB, free: 13.38 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.008196, allocations: 14.33 kB / 0.9561 GB, free: 13.37 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.009217, allocations: 1.373 MB / 0.9575 GB, free: 11.9 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.753e-05/0.009264, allocations: 75.22 kB / 0.9575 GB, free: 11.8 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.517e-05/0.009289, allocations: 0 / 0.9575 GB, free: 11.8 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.826e-05/0.009328, allocations: 20.5 kB / 0.9575 GB, free: 11.79 MB / 0.9167 GB Notification: Performance of SimCode: time 8.61e-07/0.009329, allocations: 0 / 0.9575 GB, free: 11.79 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.02419, allocations: 2.466 MB / 0.96 GB, free: 9.465 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.757/6.781, allocations: 6.281 kB / 0.96 GB, free: 9.461 MB / 0.9167 GB " [Timeout remaining time 293] (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 --stepSize=0.0004 --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/jenkins/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: 10.737026242539287]