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: 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_latest_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_latest_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.01369/0.01369, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.002527/0.002527, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.526/1.526, 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 3.051/3.051, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002246/0.002246, allocations: 64.05 kB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4091, allocations: 157.4 MB / 1.208 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00227/0.4114, allocations: 0.7477 MB / 1.208 GB, free: 8.914 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001529/0.413, allocations: 1.065 MB / 1.21 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.682e-05/0.413, allocations: 4 kB / 1.21 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.452e-05/0.4131, allocations: 11.81 kB / 1.21 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.798e-05/0.4132, allocations: 15.88 kB / 1.21 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000371/0.4136, allocations: 51.81 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001586/0.4137, allocations: 75.83 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.4139, allocations: 20.16 kB / 1.21 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.231e-05/0.414, allocations: 27.86 kB / 1.21 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.094e-05/0.4141, allocations: 35.84 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.4141, allocations: 4 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.35e-05/0.4142, allocations: 23.97 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.987e-05/0.4142, allocations: 23.92 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.768e-05/0.4143, allocations: 23.88 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.4145, allocations: 79.73 kB / 1.21 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4145, allocations: 4 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.494e-06/0.4145, allocations: 0 / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.29e-05/0.4145, allocations: 0 / 1.21 GB, free: 7.438 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.0007221/0.4153, allocations: 375.2 kB / 1.21 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.031e-05/0.4153, allocations: 16.56 kB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.518e-05/0.4154, allocations: 8.844 kB / 1.21 GB, free: 7 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.4155, allocations: 184.1 kB / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.4156, allocations: 8.375 kB / 1.21 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.4156, allocations: 4.375 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002229/0.4158, allocations: 66.72 kB / 1.211 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.4159, allocations: 3.938 kB / 1.211 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.4159, allocations: 0 / 1.211 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.4159, allocations: 0 / 1.211 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.4161, allocations: 51.89 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007778/0.4169, allocations: 320.7 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.4171, allocations: 58.55 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.65e-05/0.4172, allocations: 24.97 kB / 1.211 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.191e-05/0.4172, allocations: 12.08 kB / 1.211 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/0.4174, allocations: 71.33 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.4174, allocations: 4 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004411/0.4179, allocations: 125.6 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.4179, allocations: 55.41 kB / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.4181, allocations: 125.7 kB / 1.211 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.4181, allocations: 33.7 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.455e-05/0.4182, allocations: 92.06 kB / 1.211 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.4182, allocations: 15.75 kB / 1.211 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.021e-05/0.4183, allocations: 33.64 kB / 1.212 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.4185, allocations: 322.8 kB / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.4186, allocations: 27.97 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.4188, allocations: 77.92 kB / 1.212 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.419, allocations: 105.9 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.419, allocations: 0 / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003853/0.4194, allocations: 137.4 kB / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.4195, allocations: 8 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.4195, allocations: 0 / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.4195, allocations: 4 kB / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.4196, allocations: 19.97 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.4196, allocations: 4 kB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.076e-05/0.4197, allocations: 15.84 kB / 1.212 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.4198, allocations: 8.172 kB / 1.212 GB, free: 4.801 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 0.000115/0.4199, allocations: 123.5 kB / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.048e-05/0.4199, allocations: 4 kB / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.005e-05/0.42, allocations: 12.38 kB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.42, allocations: 0 / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.42, allocations: 0 / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.42, allocations: 4 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000541/0.4205, allocations: 382.3 kB / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4205, allocations: 0 / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.674e-05/0.4206, allocations: 7.984 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.4206, allocations: 3.984 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.4206, allocations: 4 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4206, allocations: 3.938 kB / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4206, allocations: 0 / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003132/0.421, allocations: 203.3 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.936e-05/0.4211, allocations: 89.05 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.4211, allocations: 0 / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.946e-05/0.4212, allocations: 11.92 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.422e-05/0.4212, allocations: 4 kB / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.4212, allocations: 0 / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.42e-05/0.4213, allocations: 95.27 kB / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4213, allocations: 3.938 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002846/0.4216, allocations: 19.91 kB / 1.213 GB, free: 3.746 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.0002674/0.4219, allocations: 107.2 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003222/0.4222, allocations: 84.33 kB / 1.213 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4222, allocations: 0 / 1.213 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.4224, allocations: 36.36 kB / 1.213 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.4227, allocations: 26.12 kB / 1.213 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005235/0.4232, allocations: 154.1 kB / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005206/0.4238, allocations: 0.6885 MB / 1.214 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.697e-05/0.4238, allocations: 4 kB / 1.214 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.134e-05/0.4239, allocations: 15.44 kB / 1.214 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of SimCode: time 2.41e-07/0.4239, allocations: 4 kB / 1.214 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of Templates: time 0.004613/0.4285, allocations: 0.9737 MB / 1.215 GB, free: 1.645 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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