Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001894/0.001894, allocations: 189.8 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.337/2.337, allocations: 390.2 MB / 0.6644 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001368, allocations: 59.89 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5923/0.5937, allocations: 140.4 MB / 0.9493 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002036/0.5958, allocations: 0.7203 MB / 0.95 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00104/0.5968, allocations: 1.048 MB / 0.951 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.854e-05/0.5969, allocations: 5.375 kB / 0.951 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.478e-05/0.5969, allocations: 3.938 kB / 0.951 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.535e-05/0.597, allocations: 5.312 kB / 0.951 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.5973, allocations: 29.59 kB / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.25e-05/0.5973, allocations: 51.03 kB / 0.9511 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.314e-05/0.5974, allocations: 8.125 kB / 0.9511 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.296e-05/0.5975, allocations: 18.84 kB / 0.9511 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.797e-05/0.5976, allocations: 30.72 kB / 0.9511 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.5976, allocations: 8.125 kB / 0.9511 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.98e-05/0.5976, allocations: 13.62 kB / 0.9511 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.86e-05/0.5977, allocations: 10.73 kB / 0.9512 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.583e-05/0.5977, allocations: 16.05 kB / 0.9512 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.5978, allocations: 57.53 kB / 0.9512 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.5978, allocations: 0 / 0.9512 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.693e-06/0.5978, allocations: 0 / 0.9512 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.5979, allocations: 1.375 kB / 0.9512 GB, free: 7.551 MB / 0.7169 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.000497/0.5984, allocations: 370.4 kB / 0.9516 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.5984, allocations: 9.625 kB / 0.9516 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.7e-05/0.5984, allocations: 34.73 kB / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.5985, allocations: 11.59 kB / 0.9516 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.473e-05/0.5985, allocations: 167.1 kB / 0.9518 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.5986, allocations: 5.75 kB / 0.9518 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.5986, allocations: 3.125 kB / 0.9518 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.5988, allocations: 70.64 kB / 0.9519 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.5988, allocations: 5.312 kB / 0.9519 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.5988, allocations: 4 kB / 0.9519 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.5988, allocations: 1.375 kB / 0.9519 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.599, allocations: 39.48 kB / 0.9519 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003716/0.5994, allocations: 273.2 kB / 0.9522 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.5995, allocations: 65.48 kB / 0.9522 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.261e-05/0.5996, allocations: 30.23 kB / 0.9523 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.5997, allocations: 1.25 kB / 0.9523 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001971/0.5999, allocations: 73.47 kB / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.5999, allocations: 0 / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0003949/0.6003, allocations: 122.6 kB / 0.9525 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.6003, allocations: 52.5 kB / 0.9525 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.803e-05/0.6004, allocations: 109.5 kB / 0.9526 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.6004, allocations: 31.2 kB / 0.9526 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.706e-05/0.6004, allocations: 81.61 kB / 0.9527 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.6005, allocations: 17.11 kB / 0.9527 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.732e-05/0.6005, allocations: 28.66 kB / 0.9528 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.041e-05/0.6006, allocations: 324.2 kB / 0.9531 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-05/0.6007, allocations: 25.25 kB / 0.9531 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.6008, allocations: 43.27 kB / 0.9531 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.601, allocations: 90.25 kB / 0.9532 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.601, allocations: 0 / 0.9532 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002442/0.6012, allocations: 103.7 kB / 0.9533 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.6012, allocations: 4.906 kB / 0.9533 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.6013, allocations: 5.281 kB / 0.9533 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.6013, allocations: 2.281 kB / 0.9533 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.6014, allocations: 18.17 kB / 0.9533 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.6014, allocations: 1.469 kB / 0.9534 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.663e-05/0.6015, allocations: 8.734 kB / 0.9534 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.6015, allocations: 2.438 kB / 0.9534 GB, free: 5.457 MB / 0.7169 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 5.933e-05/0.6015, allocations: 118.3 kB / 0.9535 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.328e-05/0.6016, allocations: 5.312 kB / 0.9535 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000265/0.6018, allocations: 113.3 kB / 0.9536 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.6018, allocations: 1.406 kB / 0.9536 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.6019, allocations: 0 / 0.9536 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.6019, allocations: 0 / 0.9536 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003614/0.6022, allocations: 352.4 kB / 0.9539 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.6022, allocations: 0 / 0.9539 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.923e-05/0.6023, allocations: 14.83 kB / 0.9539 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.6023, allocations: 0 / 0.9539 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.6023, allocations: 1.531 kB / 0.9539 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6023, allocations: 3.938 kB / 0.9539 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6023, allocations: 1.469 kB / 0.9539 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002649/0.6026, allocations: 196.2 kB / 0.9541 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.288e-05/0.6026, allocations: 82.17 kB / 0.9542 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.6027, allocations: 1.062 kB / 0.9542 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.819e-05/0.6028, allocations: 13.42 kB / 0.9542 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.6028, allocations: 10.17 kB / 0.9542 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.6028, allocations: 2.25 kB / 0.9542 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.857e-05/0.6029, allocations: 87.88 kB / 0.9543 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6029, allocations: 0 / 0.9543 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002472/0.6031, allocations: 14.16 kB / 0.9543 GB, free: 4.523 MB / 0.7169 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.0004549/0.6036, allocations: 0.7339 MB / 0.9551 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002604/0.6039, allocations: 69.27 kB / 0.9551 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.6039, allocations: 5.312 kB / 0.9551 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.604, allocations: 37.97 kB / 0.9552 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.6042, allocations: 13.03 kB / 0.9552 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.6055, allocations: 1.367 MB / 0.9565 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000114/0.6056, allocations: 0.6867 MB / 0.9572 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.486e-05/0.6057, allocations: 10.52 kB / 0.9572 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.902e-05/0.6057, allocations: 19.12 kB / 0.9572 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.6057, allocations: 0 / 0.9572 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.6175, allocations: 1.591 MB / 0.9588 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001424/0.6177, allocations: 202.2 kB / 0.959 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.403, allocations: 0 / 0.959 GB, free: 0.6484 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches