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.001946/0.001956, allocations: 108 kB / 15.6 MB, free: 132 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.001905/0.001905, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.591/1.591, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.99/2.99, allocations: 437 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 67.89 kB / 0.8693 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8103/0.8123, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.003116/0.8155, allocations: 0.7576 MB / 1.018 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002139/0.8177, allocations: 1.066 MB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.475e-05/0.8177, allocations: 7.938 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.495e-05/0.8178, allocations: 3.938 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.8179, allocations: 19.84 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.8183, allocations: 39.91 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.8185, allocations: 79.77 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.8187, allocations: 24.16 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.587e-05/0.8188, allocations: 27.86 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.93e-05/0.8189, allocations: 35.89 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.8189, allocations: 4 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.819, allocations: 19.98 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.779e-05/0.8191, allocations: 19.92 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.111e-05/0.8192, allocations: 23.88 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.8194, allocations: 79.73 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 1.044e-05/0.8194, allocations: 4 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.764e-06/0.8194, allocations: 0 / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.8194, allocations: 0 / 1.019 GB, free: 276 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.0008346/0.8203, allocations: 385.1 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.8203, allocations: 12.03 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.322e-05/0.8204, allocations: 4.938 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000225/0.8206, allocations: 180.1 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.8207, allocations: 8.375 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.8207, allocations: 8.312 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000294/0.821, allocations: 66.22 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.821, allocations: 7.938 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.8211, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.8211, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002746/0.8214, allocations: 43.91 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009282/0.8223, allocations: 332.6 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.8226, allocations: 62.56 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.8227, allocations: 28.97 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.8228, allocations: 0 / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003305/0.8231, allocations: 79.38 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.8231, allocations: 0 / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006217/0.8237, allocations: 129.5 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.8238, allocations: 59.34 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.824, allocations: 117.8 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.507e-05/0.824, allocations: 33.7 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.797e-05/0.8241, allocations: 88.05 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.82e-05/0.8242, allocations: 19.8 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.465e-05/0.8243, allocations: 29.7 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000204/0.8245, allocations: 322.8 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.8246, allocations: 27.97 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.8248, allocations: 73.98 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.8252, allocations: 117.8 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.8252, allocations: 4 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004237/0.8256, allocations: 121.5 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.8256, allocations: 4 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.8257, allocations: 8.156 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.8257, allocations: 4 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.8259, allocations: 23.91 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.8259, allocations: 4.312 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.826, allocations: 15.84 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.8261, allocations: 7.938 kB / 1.022 GB, free: 13.62 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.0001366/0.8262, allocations: 125.8 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.043e-05/0.8262, allocations: 3.906 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.554e-05/0.8263, allocations: 16.38 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.8263, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.8263, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.8263, allocations: 4 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006869/0.827, allocations: 378.4 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.827, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.026e-05/0.8271, allocations: 7.984 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.8271, allocations: 4 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.8272, allocations: 4 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.8272, allocations: 3.938 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.8272, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004146/0.8276, allocations: 203.3 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.464e-05/0.8277, allocations: 85.02 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.8277, allocations: 4 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.8278, allocations: 11.92 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.392e-05/0.8279, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.8279, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.2e-05/0.828, allocations: 95.27 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.828, allocations: 4 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004119/0.8284, allocations: 12 kB / 1.023 GB, free: 12.57 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.0002489/0.8287, allocations: 112.5 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00041/0.8291, allocations: 87.81 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.8291, allocations: 0 / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001553/0.8293, allocations: 27.98 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.8297, allocations: 16.36 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/0.8304, allocations: 162.2 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006521/0.831, allocations: 0.6935 MB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.237e-05/0.8311, allocations: 7.938 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.94e-05/0.8312, allocations: 15.44 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.8312, allocations: 0 / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of Templates: time 0.005845/0.837, allocations: 0.9678 MB / 1.025 GB, free: 10.47 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=400 -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