Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,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.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,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.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, 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.001641/0.001641, allocations: 194 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.516/1.516, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.72/2.72, allocations: 437 MB / 0.7103 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 63.91 kB / 0.8692 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9176/0.9191, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002377/0.9216, allocations: 0.7579 MB / 1.018 GB, free: 1.75 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001601/0.9232, allocations: 1.066 MB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.886e-05/0.9232, allocations: 7.875 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.203e-05/0.9233, allocations: 3.938 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.259e-05/0.9234, allocations: 11.88 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003564/0.9238, allocations: 51.88 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.9239, allocations: 71.78 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.924, allocations: 20.16 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.565e-05/0.9241, allocations: 31.86 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.337e-05/0.9242, allocations: 31.91 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.997e-05/0.9242, allocations: 8 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.234e-05/0.9243, allocations: 19.97 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.659e-05/0.9243, allocations: 15.92 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.854e-05/0.9244, allocations: 27.86 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.9246, allocations: 83.75 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.9246, allocations: 0 / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.763e-06/0.9246, allocations: 0 / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.9246, allocations: 0 / 1.019 GB, free: 292 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.0006299/0.9252, allocations: 389.2 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.9253, allocations: 11.98 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.9253, allocations: 4.938 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.9256, allocations: 180.1 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.9256, allocations: 384 / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.9256, allocations: 8.375 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002174/0.9259, allocations: 78.09 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.9259, allocations: 3.938 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.9259, allocations: 4 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.9259, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.9261, allocations: 47.89 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00074/0.9268, allocations: 328.6 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.927, allocations: 54.59 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.9271, allocations: 32.95 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.9272, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002427/0.9274, allocations: 79.38 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.9274, allocations: 0 / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004353/0.9279, allocations: 129.5 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.9279, allocations: 55.34 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.928, allocations: 125.8 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.9281, allocations: 29.69 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.199e-05/0.9281, allocations: 96.03 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.9282, allocations: 15.81 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-05/0.9282, allocations: 29.7 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.9284, allocations: 318.8 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.9285, allocations: 27.98 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.9286, allocations: 77.97 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002351/0.9289, allocations: 113.9 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.9289, allocations: 0 / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003524/0.9293, allocations: 129.6 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.9293, allocations: 4 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.9293, allocations: 4 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.9293, allocations: 3.938 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.9295, allocations: 19.98 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.9295, allocations: 7.938 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.76e-05/0.9296, allocations: 15.83 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.9296, allocations: 8 kB / 1.022 GB, free: 13.64 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.0001297/0.9297, allocations: 125.9 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.839e-05/0.9298, allocations: 11.91 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.542e-05/0.9298, allocations: 8.359 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.9298, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.9298, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.9298, allocations: 8 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005295/0.9304, allocations: 374.4 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9304, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.571e-05/0.9304, allocations: 12 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.9305, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.9305, allocations: 3.938 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.972e-06/0.9305, allocations: 7.922 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.9305, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.9308, allocations: 203.8 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.386e-05/0.9308, allocations: 81.02 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.9309, allocations: 3.984 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.435e-05/0.931, allocations: 7.938 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.249e-05/0.931, allocations: 11.98 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.931, allocations: 4 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.934e-05/0.9311, allocations: 91.27 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.21e-07/0.9311, allocations: 0 / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003006/0.9314, allocations: 20 kB / 1.023 GB, free: 12.58 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.0001791/0.9316, allocations: 104.8 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002931/0.9319, allocations: 83.88 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.9319, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.9321, allocations: 40.39 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.9324, allocations: 8 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004105/0.9328, allocations: 162.2 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.9331, allocations: 0.6963 MB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.859e-05/0.9332, allocations: 4 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.326e-05/0.9332, allocations: 15.42 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of SimCode: time 2.094e-06/0.9332, allocations: 0 / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of Templates: time 0.004099/0.9373, allocations: 0.9647 MB / 1.025 GB, free: 10.45 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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