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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.007184/0.007184, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001676/0.001676, allocations: 196.2 kB / 16.67 MB, free: 5.977 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.75/2.75, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 71.88 kB / 1.054 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3101, allocations: 157.4 MB / 1.207 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002041/0.3122, allocations: 0.7526 MB / 1.208 GB, free: 9.34 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.3136, allocations: 1.073 MB / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.015e-05/0.3136, allocations: 4 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.512e-05/0.3137, allocations: 7.922 kB / 1.209 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.634e-05/0.3138, allocations: 7.875 kB / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003283/0.3141, allocations: 55.83 kB / 1.209 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.3142, allocations: 67.83 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.3143, allocations: 24.11 kB / 1.209 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.664e-05/0.3144, allocations: 23.92 kB / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.3145, allocations: 35.84 kB / 1.209 GB, free: 8.027 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.3145, allocations: 8 kB / 1.209 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.793e-05/0.3146, allocations: 23.97 kB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.186e-05/0.3146, allocations: 11.98 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.09e-05/0.3147, allocations: 35.8 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.3148, allocations: 83.62 kB / 1.209 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3148, allocations: 4 kB / 1.209 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3148, allocations: 0 / 1.209 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.647e-06/0.3149, allocations: 0 / 1.209 GB, free: 7.863 MB / 0.9669 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.0005271/0.3154, allocations: 375.5 kB / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.3154, allocations: 16.62 kB / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.867e-05/0.3155, allocations: 30.75 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.148e-05/0.3155, allocations: 12.84 kB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.3157, allocations: 176.2 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.3157, allocations: 4.375 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.3157, allocations: 4.375 kB / 1.21 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.3159, allocations: 70.42 kB / 1.21 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.316, allocations: 0 / 1.21 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.316, allocations: 7.984 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.316, allocations: 4 kB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.3162, allocations: 43.95 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.3168, allocations: 324.6 kB / 1.21 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.317, allocations: 58.55 kB / 1.211 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.354e-05/0.3171, allocations: 28.97 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.3171, allocations: 0 / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.3174, allocations: 83.39 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.974e-06/0.3174, allocations: 0 / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004092/0.3178, allocations: 133.5 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.3179, allocations: 51.41 kB / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.688e-05/0.318, allocations: 121.8 kB / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.318, allocations: 33.64 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.027e-05/0.318, allocations: 92.12 kB / 1.211 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.898e-05/0.3181, allocations: 23.73 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/0.3181, allocations: 29.7 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.862e-05/0.3182, allocations: 318.8 kB / 1.211 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.3183, allocations: 31.97 kB / 1.211 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.3185, allocations: 73.92 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.3187, allocations: 109.9 kB / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3187, allocations: 4 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000304/0.319, allocations: 129.4 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3191, allocations: 7.938 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3191, allocations: 4 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.3191, allocations: 0 / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.3192, allocations: 24.2 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.3192, allocations: 11.98 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.299e-05/0.3193, allocations: 11.91 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.3193, allocations: 4 kB / 1.212 GB, free: 5.184 MB / 0.9669 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.873e-05/0.3194, allocations: 125.7 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.424e-05/0.3195, allocations: 4 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/0.3195, allocations: 8.375 kB / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3195, allocations: 0 / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3195, allocations: 0 / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.3195, allocations: 8 kB / 1.212 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004281/0.3199, allocations: 378.2 kB / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.32, allocations: 0 / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.005e-05/0.32, allocations: 15.98 kB / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.32, allocations: 0 / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.32, allocations: 0 / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3201, allocations: 3.938 kB / 1.212 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3201, allocations: 3.938 kB / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.3203, allocations: 203.4 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.328e-05/0.3204, allocations: 81.05 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.3204, allocations: 0 / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.495e-05/0.3205, allocations: 11.92 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.436e-05/0.3205, allocations: 8 kB / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.3206, allocations: 4 kB / 1.213 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.823e-05/0.3206, allocations: 95.27 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3206, allocations: 0 / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002565/0.3209, allocations: 19.91 kB / 1.213 GB, free: 4.129 MB / 0.9669 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.000583/0.3215, allocations: 0.7408 MB / 1.213 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002651/0.3217, allocations: 75.83 kB / 1.214 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3217, allocations: 0 / 1.214 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.3219, allocations: 35.97 kB / 1.214 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.3221, allocations: 13.08 kB / 1.214 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.3238, allocations: 1.538 MB / 1.215 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.324, allocations: 0.6924 MB / 1.216 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.556e-05/0.3241, allocations: 4 kB / 1.216 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.172e-05/0.3241, allocations: 23.42 kB / 1.216 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of SimCode: time 3.4e-07/0.3241, allocations: 0 / 1.216 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.3418, allocations: 2.133 MB / 1.218 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.451/7.793, allocations: 12.91 kB / 1.218 GB, free: 14.84 MB / 0.9825 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