Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.001325/0.001325, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001632/0.001632, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.275/1.275, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.519/2.519, allocations: 461.9 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 65.19 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3115, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002145/0.3137, allocations: 0.8025 MB / 1.053 GB, free: 7.41 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001425/0.3151, allocations: 1.081 MB / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.296e-05/0.3152, allocations: 4 kB / 1.054 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.584e-05/0.3153, allocations: 0 / 1.054 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.257e-05/0.3154, allocations: 15.84 kB / 1.054 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.3157, allocations: 39.97 kB / 1.054 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001049/0.3158, allocations: 71.72 kB / 1.054 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.3159, allocations: 24.17 kB / 1.054 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.283e-05/0.316, allocations: 23.92 kB / 1.054 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.184e-05/0.3161, allocations: 35.83 kB / 1.054 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.3161, allocations: 4 kB / 1.054 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.92e-05/0.3161, allocations: 15.98 kB / 1.054 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.332e-05/0.3162, allocations: 11.98 kB / 1.054 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.104e-05/0.3162, allocations: 23.81 kB / 1.054 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.3164, allocations: 79.73 kB / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3164, allocations: 0 / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.51e-07/0.3164, allocations: 0 / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.3164, allocations: 0 / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005077/0.3169, allocations: 379.5 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.317, allocations: 15.97 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.635e-05/0.317, allocations: 38.73 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.463e-05/0.317, allocations: 8.844 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.3172, allocations: 180.2 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.3172, allocations: 4.375 kB / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.3172, allocations: 8.312 kB / 1.055 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.3174, allocations: 73.97 kB / 1.055 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.3174, allocations: 0 / 1.055 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3175, allocations: 4 kB / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-06/0.3175, allocations: 0 / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.3176, allocations: 47.89 kB / 1.055 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006237/0.3183, allocations: 324.7 kB / 1.055 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.3184, allocations: 58.58 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.462e-05/0.3185, allocations: 32.95 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.3186, allocations: 3.984 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.3188, allocations: 79.38 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.743e-06/0.3188, allocations: 0 / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003897/0.3192, allocations: 129.5 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.3193, allocations: 59.34 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.872e-05/0.3194, allocations: 117.8 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.3194, allocations: 25.7 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.3194, allocations: 100 kB / 1.056 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.3195, allocations: 19.75 kB / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.023e-05/0.3195, allocations: 33.64 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3196, allocations: 322.8 kB / 1.056 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.3197, allocations: 23.98 kB / 1.056 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.3199, allocations: 74.3 kB / 1.056 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002172/0.3201, allocations: 113.8 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3201, allocations: 0 / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003008/0.3204, allocations: 129.4 kB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.3204, allocations: 12.2 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3205, allocations: 4 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.3205, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.3206, allocations: 19.98 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.3206, allocations: 7.922 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.492e-05/0.3207, allocations: 11.98 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.3207, allocations: 4 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.915e-05/0.3208, allocations: 122.9 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.499e-05/0.3208, allocations: 11.91 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.3209, allocations: 4.375 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3209, allocations: 0 / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3209, allocations: 7.938 kB / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3209, allocations: 3.984 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004508/0.3213, allocations: 374.4 kB / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3214, allocations: 0 / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.558e-05/0.3214, allocations: 15.98 kB / 1.057 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3214, allocations: 0 / 1.057 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.3214, allocations: 0 / 1.057 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.3214, allocations: 3.938 kB / 1.057 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3214, allocations: 0 / 1.057 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000277/0.3217, allocations: 203.3 kB / 1.057 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.641e-05/0.3218, allocations: 81.02 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/0.3218, allocations: 8 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.171e-05/0.3219, allocations: 15.86 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.3219, allocations: 11.97 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.3219, allocations: 8 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.259e-05/0.322, allocations: 91.27 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.322, allocations: 0 / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000249/0.3223, allocations: 16 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0005713/0.3228, allocations: 0.742 MB / 1.058 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002544/0.3231, allocations: 76.25 kB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3231, allocations: 4.062 kB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.3232, allocations: 31.98 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.3235, allocations: 19.92 kB / 1.059 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.3251, allocations: 1.519 MB / 1.06 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.3254, allocations: 0.6888 MB / 1.061 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.678e-05/0.3254, allocations: 11.98 kB / 1.061 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.723e-05/0.3255, allocations: 19.44 kB / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3255, allocations: 0 / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/0.4417, allocations: 1.875 MB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002387/0.442, allocations: 227.3 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/2.034, allocations: 0 / 1.063 GB, free: 12.96 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches