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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001412, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.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.781/2.781, allocations: 437 MB / 0.7103 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.91 kB / 0.8692 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.789/0.7903, allocations: 151.6 MB / 1.017 GB, free: 2.543 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.003043/0.7934, allocations: 0.744 MB / 1.018 GB, free: 1.797 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.795, allocations: 1.074 MB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.893e-05/0.7951, allocations: 4 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.743e-05/0.7952, allocations: 3.938 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.401e-05/0.7953, allocations: 7.875 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003803/0.7957, allocations: 55.81 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.00013/0.7958, allocations: 67.84 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.796, allocations: 32.14 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.7961, allocations: 27.86 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.829e-05/0.7962, allocations: 35.84 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/0.7962, allocations: 4 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.593e-05/0.7963, allocations: 15.98 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.207e-05/0.7963, allocations: 23.91 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.085e-05/0.7964, allocations: 31.86 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.7965, allocations: 71.75 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.7965, allocations: 0 / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7965, allocations: 4 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.7966, allocations: 0 / 1.019 GB, free: 332 kB / 0.7637 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.0006723/0.7972, allocations: 389.2 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.7973, allocations: 8.031 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.584e-05/0.7974, allocations: 8.938 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.7975, allocations: 172.2 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.7975, allocations: 4.375 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.7975, allocations: 12.31 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.7978, allocations: 74.16 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.7978, allocations: 3.938 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.7978, allocations: 0 / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.7978, allocations: 0 / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.798, allocations: 43.95 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007183/0.7987, allocations: 340.5 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.7989, allocations: 50.56 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.799, allocations: 28.95 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.7991, allocations: 8 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002576/0.7993, allocations: 79.41 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.004e-06/0.7994, allocations: 0 / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004819/0.7998, allocations: 125.5 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.7999, allocations: 55.41 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.8, allocations: 117.8 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.8001, allocations: 37.69 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/0.8001, allocations: 88.05 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.8002, allocations: 19.8 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.14e-05/0.8002, allocations: 29.7 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.8004, allocations: 326.8 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.8005, allocations: 23.98 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.8007, allocations: 82.34 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.8009, allocations: 105.9 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.8009, allocations: 0 / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003465/0.8013, allocations: 137.6 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.8013, allocations: 8 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.8013, allocations: 3.938 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.8013, allocations: 4 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.8015, allocations: 15.98 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.8015, allocations: 320 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.469e-05/0.8016, allocations: 19.83 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.8016, allocations: 4 kB / 1.022 GB, free: 13.68 MB / 0.7794 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.0001176/0.8017, allocations: 131.5 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.996e-05/0.8018, allocations: 7.906 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.694e-05/0.8018, allocations: 8.359 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.8018, allocations: 4 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.8018, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.8018, allocations: 3.984 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004781/0.8023, allocations: 382.4 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.8023, allocations: 4 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.594e-05/0.8024, allocations: 4 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.8024, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.8024, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.8024, allocations: 15.92 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.8024, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.8028, allocations: 195.4 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.8028, allocations: 85.02 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.8029, allocations: 3.984 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.924e-05/0.803, allocations: 15.88 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.803, allocations: 7.922 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.092e-06/0.803, allocations: 4 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.027e-05/0.8031, allocations: 95.42 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8031, allocations: 0 / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002682/0.8034, allocations: 20 kB / 1.023 GB, free: 12.61 MB / 0.7794 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.0001579/0.8035, allocations: 103.2 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003036/0.8038, allocations: 79.88 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.8039, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.804, allocations: 39.91 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.8043, allocations: 18.2 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004152/0.8047, allocations: 158.2 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.805, allocations: 0.6885 MB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.159e-05/0.805, allocations: 11.98 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.08e-05/0.8051, allocations: 11.44 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.8051, allocations: 4 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of Templates: time 0.003858/0.8089, allocations: 0.9634 MB / 1.025 GB, free: 10.52 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start