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.001554/0.001554, 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.001626/0.001627, allocations: 196 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.54/1.54, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.988/2.988, allocations: 437 MB / 0.7104 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 71.89 kB / 0.8693 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8378/0.8398, 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.002561/0.8424, allocations: 0.7459 MB / 1.018 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001743/0.8441, allocations: 1.07 MB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.924e-05/0.8442, allocations: 0 / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.169e-05/0.8443, allocations: 7.922 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.282e-05/0.8444, allocations: 15.86 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.8447, allocations: 51.83 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.8448, allocations: 67.84 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.845, allocations: 28.14 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.807e-05/0.8451, allocations: 31.86 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.881e-05/0.8451, allocations: 35.89 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.8452, allocations: 7.938 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.665e-05/0.8453, allocations: 23.92 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.619e-05/0.8453, allocations: 15.92 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.338e-05/0.8453, allocations: 35.84 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.8455, allocations: 75.75 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.8455, allocations: 0 / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.342e-06/0.8455, allocations: 4 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.8455, allocations: 0 / 1.019 GB, free: 284 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.0006717/0.8462, allocations: 381.2 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.8463, allocations: 11.98 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.683e-05/0.8463, allocations: 8.922 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.8465, allocations: 176.2 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.8465, allocations: 8.375 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.8465, allocations: 4.375 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.8467, allocations: 74.16 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.8468, allocations: 3.938 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.8468, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.8468, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.847, allocations: 43.95 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007099/0.8477, allocations: 328.6 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.8479, allocations: 54.55 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.848, allocations: 32.95 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.848, allocations: 4 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.8482, allocations: 75.38 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.8482, allocations: 0 / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004755/0.8487, allocations: 133.5 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.8488, allocations: 55.39 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.8489, allocations: 121.8 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.8489, allocations: 29.7 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.964e-05/0.849, allocations: 100 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.849, allocations: 11.81 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.469e-05/0.8491, allocations: 29.7 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.8493, allocations: 322.8 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.8494, allocations: 27.97 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.8495, allocations: 73.98 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.8498, allocations: 113.8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.8498, allocations: 7.875 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003992/0.8502, allocations: 133.7 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.8502, allocations: 8 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.8503, allocations: 0 / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.8503, allocations: 7.984 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.8504, allocations: 19.92 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.8504, allocations: 320 / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.027e-05/0.8505, allocations: 19.84 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.8506, allocations: 7.984 kB / 1.022 GB, free: 13.63 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.0001131/0.8507, allocations: 127.2 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.8507, allocations: 7.906 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.878e-05/0.8508, allocations: 8.375 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.8508, allocations: 4 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.8508, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.8508, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006378/0.8514, allocations: 370.5 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.8514, allocations: 8 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.457e-05/0.8515, allocations: 11.92 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.8515, allocations: 3.984 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.8515, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.8515, allocations: 3.938 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8515, allocations: 4 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003431/0.8519, allocations: 203.4 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.276e-05/0.852, allocations: 81.02 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.852, allocations: 8 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.503e-05/0.8521, allocations: 11.92 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.8521, allocations: 0 / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.8521, allocations: 7.984 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.505e-05/0.8522, allocations: 87.28 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8522, allocations: 0 / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002597/0.8525, allocations: 19.98 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.0002344/0.8527, allocations: 111.2 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003212/0.853, allocations: 83.81 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8531, allocations: 0 / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.8532, allocations: 31.92 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.000307/0.8535, allocations: 20.42 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.0004891/0.854, allocations: 158.2 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004571/0.8545, allocations: 0.6885 MB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.636e-05/0.8545, allocations: 11.94 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.029e-05/0.8546, allocations: 11.44 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.8546, allocations: 0 / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of Templates: time 0.004465/0.859, allocations: 0.9704 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=400 -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