Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.006339/0.006339, allocations: 109.1 kB / 15.74 MB, free: 6.016 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.001407/0.001407, allocations: 190.3 kB / 16.67 MB, free: 5.941 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.633/1.633, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.809/2.809, allocations: 461.9 MB / 0.7348 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 67.89 kB / 1.054 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3238, allocations: 157.4 MB / 1.207 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002527/0.3264, allocations: 0.7555 MB / 1.208 GB, free: 9.305 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001414/0.3278, allocations: 1.069 MB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.984e-05/0.3279, allocations: 0 / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.474e-05/0.328, allocations: 11.86 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.146e-05/0.3281, allocations: 11.92 kB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.3285, allocations: 51.83 kB / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.3286, allocations: 71.83 kB / 1.209 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.3287, allocations: 16.19 kB / 1.209 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.3289, allocations: 35.78 kB / 1.209 GB, free: 8.023 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.843e-05/0.3289, allocations: 31.91 kB / 1.209 GB, free: 7.992 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.329, allocations: 4 kB / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.89e-05/0.3291, allocations: 15.98 kB / 1.209 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.105e-05/0.3291, allocations: 23.92 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.741e-05/0.3292, allocations: 35.84 kB / 1.209 GB, free: 7.914 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.3294, allocations: 71.75 kB / 1.209 GB, free: 7.844 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 1.854e-05/0.3294, allocations: 4 kB / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of FrontEnd: time 5.28e-06/0.3294, allocations: 0 / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.044e-05/0.3294, allocations: 3.938 kB / 1.209 GB, free: 7.836 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.0006662/0.3301, allocations: 379.5 kB / 1.21 GB, free: 7.418 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.3302, allocations: 12.03 kB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.866e-05/0.3302, allocations: 30.75 kB / 1.21 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.807e-05/0.3303, allocations: 12.84 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.3304, allocations: 180.2 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.3304, allocations: 4.375 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.889e-05/0.3305, allocations: 4.375 kB / 1.21 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.3307, allocations: 66.48 kB / 1.21 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.3307, allocations: 0 / 1.21 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.3308, allocations: 11.98 kB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3308, allocations: 3.938 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001783/0.331, allocations: 43.91 kB / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006783/0.3316, allocations: 324.7 kB / 1.21 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.3318, allocations: 58.58 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.817e-05/0.3319, allocations: 32.97 kB / 1.211 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.332, allocations: 0 / 1.211 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.3322, allocations: 79.36 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.3322, allocations: 0 / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004332/0.3327, allocations: 133.5 kB / 1.211 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.3327, allocations: 59.34 kB / 1.211 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.3328, allocations: 121.8 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.3329, allocations: 29.7 kB / 1.211 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.852e-05/0.3329, allocations: 88.14 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.941e-05/0.333, allocations: 23.73 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.333, allocations: 25.7 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3331, allocations: 318.8 kB / 1.211 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.3333, allocations: 39.91 kB / 1.211 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.3334, allocations: 69.98 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.3336, allocations: 113.8 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3337, allocations: 0 / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003027/0.334, allocations: 129.4 kB / 1.212 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.334, allocations: 4 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.334, allocations: 4 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.334, allocations: 0 / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.3341, allocations: 15.98 kB / 1.212 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3342, allocations: 11.92 kB / 1.212 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.362e-05/0.3343, allocations: 12.12 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.3343, allocations: 12 kB / 1.212 GB, free: 5.156 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.669e-05/0.3344, allocations: 121.8 kB / 1.212 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.3344, allocations: 4 kB / 1.212 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.3344, allocations: 8.375 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.3344, allocations: 0 / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.3344, allocations: 4 kB / 1.212 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3344, allocations: 4 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004467/0.3349, allocations: 382.2 kB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3349, allocations: 0 / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.437e-05/0.335, allocations: 11.98 kB / 1.212 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.335, allocations: 0 / 1.212 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.335, allocations: 0 / 1.212 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.335, allocations: 3.938 kB / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.335, allocations: 0 / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002961/0.3353, allocations: 219.3 kB / 1.213 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.243e-05/0.3354, allocations: 77.11 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.3354, allocations: 0 / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-05/0.3355, allocations: 11.92 kB / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.048e-05/0.3355, allocations: 4 kB / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.3355, allocations: 4 kB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.598e-05/0.3356, allocations: 99.86 kB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3356, allocations: 4 kB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002805/0.3359, allocations: 19.91 kB / 1.213 GB, free: 4.094 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.0006342/0.3365, allocations: 0.7362 MB / 1.213 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002831/0.3368, allocations: 75.89 kB / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3368, allocations: 4 kB / 1.214 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.337, allocations: 43.89 kB / 1.214 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.3372, allocations: 13.94 kB / 1.214 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.3389, allocations: 1.522 MB / 1.215 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.3392, allocations: 0.6905 MB / 1.216 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.686e-05/0.3392, allocations: 12 kB / 1.216 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.517e-05/0.3393, allocations: 24.97 kB / 1.216 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of SimCode: time 3.4e-07/0.3393, allocations: 3.938 kB / 1.216 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.3588, allocations: 2.147 MB / 1.218 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.522/7.881, allocations: 15.75 kB / 1.218 GB, free: 14.83 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches