Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 91.92 kB / 16.02 MB, free: 76 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.001871/0.001871, allocations: 183.4 kB / 16.92 MB, free: 6.926 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.519/1.519, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.627/2.627, allocations: 437.8 MB / 0.7128 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003667, allocations: 12 kB / 0.8735 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7298/0.7302, allocations: 153.8 MB / 1.024 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.0008931/0.7311, allocations: 489.4 kB / 1.024 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.7324, allocations: 1.054 MB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.264e-05/0.7325, allocations: 7.938 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.752e-05/0.7325, allocations: 3.938 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.072e-05/0.7326, allocations: 15.91 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002354/0.7328, allocations: 47.78 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.495e-05/0.7329, allocations: 59.84 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.733, allocations: 24.16 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.624e-05/0.7331, allocations: 23.86 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.687e-05/0.7332, allocations: 35.84 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.7332, allocations: 0 / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.966e-05/0.7333, allocations: 19.98 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.827e-05/0.7333, allocations: 7.922 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.103e-05/0.7333, allocations: 57.55 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.7335, allocations: 47.89 kB / 1.026 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.7335, allocations: 4 kB / 1.026 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.527e-06/0.7335, allocations: 0 / 1.026 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.7335, allocations: 3.938 kB / 1.026 GB, free: 13.96 MB / 0.7794 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.000499/0.734, allocations: 373.3 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.734, allocations: 8.031 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.489e-05/0.7341, allocations: 8.844 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.7342, allocations: 180.2 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.7342, allocations: 4.375 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.7342, allocations: 4.375 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.7344, allocations: 78.17 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.7345, allocations: 3.938 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.7345, allocations: 3.984 kB / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.7345, allocations: 0 / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.7347, allocations: 55.95 kB / 1.026 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000591/0.7353, allocations: 340.5 kB / 1.027 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.7355, allocations: 62.55 kB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.7356, allocations: 32.97 kB / 1.027 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.7356, allocations: 0 / 1.027 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001966/0.7358, allocations: 87.41 kB / 1.027 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.7358, allocations: 0 / 1.027 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004186/0.7363, allocations: 149.8 kB / 1.027 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.7363, allocations: 51.41 kB / 1.027 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.7364, allocations: 129.7 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.7364, allocations: 29.64 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.756e-05/0.7365, allocations: 88.14 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.4e-05/0.7365, allocations: 19.8 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.991e-05/0.7366, allocations: 17.72 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.7367, allocations: 322.8 kB / 1.028 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.7368, allocations: 31.98 kB / 1.028 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.7369, allocations: 85.86 kB / 1.028 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.7372, allocations: 117.9 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.7372, allocations: 4 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003117/0.7375, allocations: 149.5 kB / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.7376, allocations: 5.719 kB / 1.028 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.7376, allocations: 4.078 kB / 1.028 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.7376, allocations: 4 kB / 1.028 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.7377, allocations: 15.98 kB / 1.028 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.7377, allocations: 7.984 kB / 1.028 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.721e-05/0.7378, allocations: 20.02 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.7378, allocations: 4 kB / 1.028 GB, free: 11.25 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 8.354e-05/0.7379, allocations: 126.2 kB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.7379, allocations: 7.906 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.53e-05/0.738, allocations: 8.375 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.738, allocations: 4 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.738, allocations: 3.984 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.738, allocations: 3.938 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004596/0.7385, allocations: 386.3 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.7385, allocations: 0 / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.689e-05/0.7385, allocations: 11.98 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.7386, allocations: 4 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.7386, allocations: 0 / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.7386, allocations: 7.938 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.7386, allocations: 0 / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000293/0.7389, allocations: 207.4 kB / 1.029 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.769e-05/0.7389, allocations: 81.11 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.7389, allocations: 0 / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.886e-05/0.739, allocations: 19.92 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.702e-05/0.7391, allocations: 7.922 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.7391, allocations: 4 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.012e-05/0.7391, allocations: 95.2 kB / 1.029 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7392, allocations: 4 kB / 1.029 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002521/0.7394, allocations: 23.91 kB / 1.029 GB, free: 10.16 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.0001474/0.7396, allocations: 103.2 kB / 1.029 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002738/0.7398, allocations: 95.92 kB / 1.029 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.7399, allocations: 0 / 1.029 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.74, allocations: 47.84 kB / 1.029 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.7402, allocations: 8.562 kB / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003438/0.7406, allocations: 203.4 kB / 1.029 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.7408, allocations: 0.6887 MB / 1.03 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.974e-05/0.7409, allocations: 11.44 kB / 1.03 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.7409, allocations: 0 / 1.03 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of Templates: time 0.002419/0.7433, allocations: 1.032 MB / 1.031 GB, free: 7.938 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y