Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_10_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_10_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.008368/0.008368, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001804/0.001804, allocations: 195.8 kB / 16.67 MB, free: 5.52 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.501/2.501, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 71.89 kB / 1.018 GB, free: 9.875 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9369/0.9383, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.003215/0.9416, allocations: 0.7592 MB / 1.167 GB, free: 3.023 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002392/0.944, allocations: 1.08 MB / 1.168 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.685e-05/0.9442, allocations: 0 / 1.168 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.972e-05/0.9442, allocations: 7.922 kB / 1.168 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.9444, allocations: 15.86 kB / 1.168 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005175/0.945, allocations: 55.77 kB / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001881/0.9452, allocations: 67.83 kB / 1.168 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.9454, allocations: 12.19 kB / 1.168 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.9455, allocations: 39.91 kB / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.9456, allocations: 31.84 kB / 1.168 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.9457, allocations: 8 kB / 1.168 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.9458, allocations: 19.92 kB / 1.168 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.718e-05/0.9459, allocations: 15.92 kB / 1.168 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.367e-05/0.946, allocations: 31.84 kB / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.9462, allocations: 79.75 kB / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.9462, allocations: 0 / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9462, allocations: 0 / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.294e-05/0.9463, allocations: 0 / 1.168 GB, free: 1.547 MB / 0.8887 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.0008435/0.9471, allocations: 385.5 kB / 1.169 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.9472, allocations: 8.922 kB / 1.169 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.24e-05/0.9473, allocations: 30.75 kB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.357e-05/0.9473, allocations: 12.78 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001916/0.9475, allocations: 180.2 kB / 1.169 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.9476, allocations: 8.375 kB / 1.169 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.9476, allocations: 4.375 kB / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002914/0.9479, allocations: 65.98 kB / 1.169 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.948, allocations: 7.984 kB / 1.169 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.948, allocations: 0 / 1.169 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.948, allocations: 0 / 1.169 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003185/0.9483, allocations: 43.91 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009222/0.9493, allocations: 324.6 kB / 1.169 GB, free: 360 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002598/0.9495, allocations: 62.55 kB / 1.169 GB, free: 288 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.9498, allocations: 24.97 kB / 1.169 GB, free: 260 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-05/0.9498, allocations: 4.094 kB / 1.169 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003883/0.9502, allocations: 79.22 kB / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 2.746e-06/0.9502, allocations: 4 kB / 1.17 GB, free: 160 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0007474/0.951, allocations: 133.6 kB / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.25e-05/0.9511, allocations: 51.41 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.9513, allocations: 125.7 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.9513, allocations: 33.7 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.875e-05/0.9514, allocations: 84.14 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.706e-05/0.9515, allocations: 15.8 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.288e-05/0.9516, allocations: 41.64 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.9518, allocations: 322.8 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.952, allocations: 27.97 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.9523, allocations: 77.92 kB / 1.17 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004204/0.9527, allocations: 109.9 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.9527, allocations: 0 / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005679/0.9533, allocations: 129.4 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.9533, allocations: 8 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.9534, allocations: 0 / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.9534, allocations: 8.219 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.9536, allocations: 19.98 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.9536, allocations: 3.984 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.9538, allocations: 19.88 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.9539, allocations: 4 kB / 1.171 GB, free: 14.86 MB / 0.9044 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 0.000147/0.954, allocations: 121.8 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.62e-05/0.954, allocations: 7.906 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.156e-05/0.9541, allocations: 8.375 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.9541, allocations: 8 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.9541, allocations: 0 / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.9542, allocations: 0 / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008023/0.955, allocations: 378.6 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.955, allocations: 0 / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.105e-05/0.9551, allocations: 7.984 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.9551, allocations: 0 / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.9551, allocations: 0 / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.124e-06/0.9552, allocations: 11.94 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.9552, allocations: 80 / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000492/0.9557, allocations: 211.3 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/0.9558, allocations: 81.11 kB / 1.171 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.9558, allocations: 0 / 1.171 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.956, allocations: 15.86 kB / 1.171 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.669e-05/0.9561, allocations: 4 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.9561, allocations: 4 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.228e-05/0.9562, allocations: 99.86 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.786e-06/0.9562, allocations: 0 / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004997/0.9567, allocations: 19.94 kB / 1.172 GB, free: 13.8 MB / 0.9044 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.001005/0.9578, allocations: 0.7436 MB / 1.172 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005184/0.9583, allocations: 71.89 kB / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.9583, allocations: 0 / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.9585, allocations: 32.41 kB / 1.172 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.959, allocations: 20.5 kB / 1.172 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002928/0.962, allocations: 1.52 MB / 1.174 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.9624, allocations: 0.6924 MB / 1.175 GB, free: 10.56 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.698e-05/0.9625, allocations: 4 kB / 1.175 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.652e-05/0.9626, allocations: 23.42 kB / 1.175 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of SimCode: time 3.767e-06/0.9626, allocations: 0 / 1.175 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.9844, allocations: 2.128 MB / 1.177 GB, free: 8.59 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.592/8.576, allocations: 9.375 kB / 1.177 GB, free: 8.586 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches