Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_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_9_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.001122/0.001122, allocations: 91.61 kB / 15.36 MB, free: 0.7383 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.008476/0.008476, allocations: 170.5 kB / 16.26 MB, free: 6.613 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.41/1.41, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.357/2.357, allocations: 390.9 MB / 0.6664 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003447, allocations: 11.94 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8205/0.8208, allocations: 142.4 MB / 0.9552 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.0008788/0.8218, allocations: 489 kB / 0.9557 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.8229, allocations: 1.057 MB / 0.9567 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.587e-05/0.8229, allocations: 5.25 kB / 0.9567 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.809e-05/0.8229, allocations: 3.938 kB / 0.9567 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.301e-05/0.823, allocations: 9.266 kB / 0.9567 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.8233, allocations: 48.33 kB / 0.9568 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.342e-05/0.8234, allocations: 63.75 kB / 0.9568 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.898e-05/0.8235, allocations: 24.12 kB / 0.9568 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.376e-05/0.8236, allocations: 17.64 kB / 0.9569 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.976e-05/0.8236, allocations: 36.53 kB / 0.9569 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.8236, allocations: 2.906 kB / 0.9569 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.963e-05/0.8237, allocations: 21.14 kB / 0.9569 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.709e-05/0.8237, allocations: 10.23 kB / 0.9569 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.331e-05/0.8238, allocations: 53.06 kB / 0.957 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001095/0.8239, allocations: 73.48 kB / 0.957 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.8239, allocations: 0 / 0.957 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8239, allocations: 0.8438 kB / 0.957 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.8239, allocations: 0 / 0.957 GB, free: 6.199 MB / 0.7169 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.0004383/0.8244, allocations: 371 kB / 0.9574 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.8244, allocations: 9.406 kB / 0.9574 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.301e-05/0.8245, allocations: 36.88 kB / 0.9574 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.8245, allocations: 8.531 kB / 0.9574 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.5e-05/0.8246, allocations: 179.6 kB / 0.9576 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.8246, allocations: 2.312 kB / 0.9576 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.8246, allocations: 8.625 kB / 0.9576 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.8248, allocations: 78.2 kB / 0.9577 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.8248, allocations: 0 / 0.9577 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.8248, allocations: 5.359 kB / 0.9577 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.8249, allocations: 0.9375 kB / 0.9577 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.825, allocations: 53.75 kB / 0.9578 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005348/0.8256, allocations: 331.8 kB / 0.9581 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.8258, allocations: 65.92 kB / 0.9581 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.722e-05/0.8259, allocations: 35.47 kB / 0.9582 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.8259, allocations: 1.344 kB / 0.9582 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.8261, allocations: 91.84 kB / 0.9583 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.8261, allocations: 0 / 0.9583 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003974/0.8265, allocations: 146.3 kB / 0.9584 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/0.8265, allocations: 52.72 kB / 0.9585 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.385e-05/0.8266, allocations: 129.6 kB / 0.9586 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.8266, allocations: 27.08 kB / 0.9586 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.581e-05/0.8267, allocations: 90.89 kB / 0.9587 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.8267, allocations: 14.55 kB / 0.9587 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.709e-05/0.8267, allocations: 17.84 kB / 0.9587 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.74e-05/0.8268, allocations: 328.1 kB / 0.959 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.8269, allocations: 28.3 kB / 0.9591 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.827, allocations: 84.36 kB / 0.9591 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/0.8272, allocations: 117.2 kB / 0.9593 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.8273, allocations: 0 / 0.9593 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002842/0.8275, allocations: 152 kB / 0.9594 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.8276, allocations: 4.469 kB / 0.9594 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.8276, allocations: 2.594 kB / 0.9594 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.8276, allocations: 2.5 kB / 0.9594 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.8277, allocations: 22.58 kB / 0.9594 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.8277, allocations: 6.625 kB / 0.9594 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.437e-05/0.8278, allocations: 20.64 kB / 0.9595 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.8278, allocations: 4.281 kB / 0.9595 GB, free: 3.965 MB / 0.7169 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 6.818e-05/0.8279, allocations: 122.2 kB / 0.9596 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.412e-05/0.8279, allocations: 7.188 kB / 0.9596 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.794e-05/0.828, allocations: 13.53 kB / 0.9596 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.828, allocations: 5.016 kB / 0.9596 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.828, allocations: 1.156 kB / 0.9596 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.828, allocations: 4 kB / 0.9596 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.8284, allocations: 387.6 kB / 0.96 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.8284, allocations: 3.984 kB / 0.96 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.417e-05/0.8285, allocations: 15.52 kB / 0.96 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.8285, allocations: 1.531 kB / 0.96 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.8285, allocations: 0 / 0.96 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.8285, allocations: 5.75 kB / 0.96 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.8285, allocations: 0 / 0.96 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002648/0.8288, allocations: 218.2 kB / 0.9602 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.269e-05/0.8288, allocations: 79.02 kB / 0.9603 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.8288, allocations: 5.703 kB / 0.9603 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.059e-05/0.8289, allocations: 8.875 kB / 0.9603 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.689e-05/0.829, allocations: 10.86 kB / 0.9603 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.829, allocations: 2.125 kB / 0.9603 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.834e-05/0.829, allocations: 100.9 kB / 0.9604 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.829, allocations: 0 / 0.9604 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002454/0.8293, allocations: 17.34 kB / 0.9604 GB, free: 3.055 MB / 0.7169 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.0004879/0.8298, allocations: 0.75 MB / 0.9612 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002657/0.83, allocations: 93.69 kB / 0.9612 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.83, allocations: 1.375 kB / 0.9612 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.8302, allocations: 32.73 kB / 0.9613 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.8304, allocations: 17.42 kB / 0.9613 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.8318, allocations: 1.563 MB / 0.9628 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.832, allocations: 0.6899 MB / 0.9635 GB, free: 140 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.547e-05/0.832, allocations: 16.27 kB / 0.9635 GB, free: 128 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.832, allocations: 18.88 kB / 0.9635 GB, free: 112 kB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.8321, allocations: 0 / 0.9635 GB, free: 112 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01201/0.8441, allocations: 1.822 MB / 0.9653 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.8443, allocations: 242.4 kB / 0.9655 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/2.648, allocations: 3.938 kB / 0.9655 GB, free: 15.05 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,samTri.period,samTri.shift,samTri.y,samTri1.period,samTri1.shift,samTri1.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.trigger,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start