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.007291/0.007291, allocations: 99.64 kB / 15.73 MB, free: 6.469 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.001734/0.001734, allocations: 194.1 kB / 16.67 MB, free: 6.379 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.43/2.43, allocations: 390.2 MB / 0.6648 GB, free: 288 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 62.83 kB / 0.9504 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3118, allocations: 140.4 MB / 1.087 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001945/0.3138, allocations: 0.6656 MB / 1.088 GB, free: 1.375 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001383/0.3152, allocations: 1.056 MB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.492e-05/0.3152, allocations: 4 kB / 1.089 GB, free: 308 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.8e-05/0.3153, allocations: 0 / 1.089 GB, free: 308 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.46e-05/0.3154, allocations: 3.938 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002862/0.3156, allocations: 47.83 kB / 1.089 GB, free: 256 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.098e-05/0.3157, allocations: 39.91 kB / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.349e-05/0.3158, allocations: 12 kB / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.767e-05/0.3159, allocations: 19.86 kB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.201e-05/0.316, allocations: 27.91 kB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.316, allocations: 8 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.65e-05/0.3161, allocations: 19.98 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.888e-05/0.3161, allocations: 7.984 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.713e-05/0.3162, allocations: 23.8 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.3163, allocations: 55.84 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3163, allocations: 0 / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3163, allocations: 0 / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.3163, allocations: 0 / 1.089 GB, free: 40 kB / 0.8419 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.0006403/0.317, allocations: 366.3 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.317, allocations: 8.031 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.004e-05/0.3171, allocations: 38.73 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.079e-05/0.3171, allocations: 0.9375 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.3172, allocations: 177 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.3172, allocations: 384 / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.3173, allocations: 8.375 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/0.3175, allocations: 58.22 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3175, allocations: 7.875 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.3175, allocations: 8 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3175, allocations: 4 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.3177, allocations: 35.95 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004228/0.3181, allocations: 280.8 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.3183, allocations: 54.55 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.917e-05/0.3184, allocations: 36.95 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.3185, allocations: 0 / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.3187, allocations: 75.38 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.3187, allocations: 0 / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004065/0.3191, allocations: 125.5 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.3192, allocations: 51.41 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.303e-05/0.3193, allocations: 105.8 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.3193, allocations: 29.7 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.079e-05/0.3193, allocations: 84.14 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.63e-05/0.3194, allocations: 11.81 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.196e-05/0.3194, allocations: 25.7 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3195, allocations: 318.8 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.3196, allocations: 31.97 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.3197, allocations: 43.42 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.32, allocations: 87.31 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.32, allocations: 0 / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002609/0.3202, allocations: 109.4 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3203, allocations: 4 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.3203, allocations: 0.5 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3203, allocations: 8.094 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.3204, allocations: 11.98 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3204, allocations: 4 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.054e-05/0.3205, allocations: 19.92 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.3205, allocations: 7.938 kB / 1.092 GB, free: 13.59 MB / 0.8575 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 8.197e-05/0.3206, allocations: 118.8 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.313e-05/0.3206, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002974/0.3209, allocations: 110 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3209, allocations: 0 / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3209, allocations: 0 / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3209, allocations: 0 / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004223/0.3214, allocations: 366.3 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3214, allocations: 0 / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.828e-05/0.3214, allocations: 7.984 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3215, allocations: 4 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.3215, allocations: 4 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3215, allocations: 0 / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3215, allocations: 0 / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002833/0.3218, allocations: 191.4 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.551e-05/0.3218, allocations: 88.95 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.3218, allocations: 0 / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.382e-05/0.3219, allocations: 11.98 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.322, allocations: 15.92 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.322, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.279e-05/0.3221, allocations: 83.47 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3221, allocations: 4 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002593/0.3223, allocations: 12 kB / 1.093 GB, free: 12.49 MB / 0.8575 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.0006049/0.3229, allocations: 0.7242 MB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002603/0.3232, allocations: 67.89 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3232, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.3233, allocations: 32.11 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.3236, allocations: 15.92 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.3252, allocations: 1.37 MB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.3255, allocations: 0.6845 MB / 1.095 GB, free: 9.445 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.413e-05/0.3256, allocations: 11.69 kB / 1.095 GB, free: 9.434 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.096e-05/0.3256, allocations: 15.44 kB / 1.095 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of SimCode: time 5.71e-07/0.3256, allocations: 0 / 1.095 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01913/0.3448, allocations: 1.779 MB / 1.097 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.511/7.856, allocations: 2.953 kB / 1.097 GB, free: 7.73 MB / 0.8575 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