Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001465/0.001465, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001685/0.001685, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.26/2.26, allocations: 390.3 MB / 0.6653 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 65.8 kB / 0.8132 GB, free: 33.14 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2851, allocations: 140.4 MB / 0.9503 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002679/0.2878, allocations: 0.754 MB / 0.951 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.2895, allocations: 1.064 MB / 0.9521 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.696e-05/0.2896, allocations: 7.938 kB / 0.9521 GB, free: 7.027 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.958e-05/0.2896, allocations: 7.875 kB / 0.9521 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.399e-05/0.2897, allocations: 7.922 kB / 0.9521 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000389/0.2901, allocations: 59.81 kB / 0.9522 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000127/0.2903, allocations: 71.78 kB / 0.9522 GB, free: 6.883 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001362/0.2904, allocations: 20.17 kB / 0.9522 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.2905, allocations: 27.86 kB / 0.9523 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.404e-05/0.2906, allocations: 39.83 kB / 0.9523 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.982e-05/0.2906, allocations: 4 kB / 0.9523 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.302e-05/0.2907, allocations: 16 kB / 0.9523 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.444e-05/0.2908, allocations: 15.92 kB / 0.9523 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.973e-05/0.2908, allocations: 39.84 kB / 0.9524 GB, free: 6.719 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.291, allocations: 71.75 kB / 0.9524 GB, free: 6.648 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.291, allocations: 0 / 0.9524 GB, free: 6.648 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.879e-06/0.291, allocations: 4 kB / 0.9525 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.291, allocations: 0 / 0.9525 GB, free: 6.645 MB / 0.7325 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.000656/0.2917, allocations: 383.4 kB / 0.9528 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.2918, allocations: 12.03 kB / 0.9528 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.835e-05/0.2918, allocations: 0.9375 kB / 0.9528 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.292, allocations: 176.2 kB / 0.953 GB, free: 6 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.292, allocations: 12.36 kB / 0.953 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.292, allocations: 8.375 kB / 0.953 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.2923, allocations: 62.23 kB / 0.9531 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2923, allocations: 3.938 kB / 0.9531 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.2923, allocations: 0 / 0.9531 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.2923, allocations: 0 / 0.9531 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.2925, allocations: 43.95 kB / 0.9531 GB, free: 5.867 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006983/0.2932, allocations: 332.6 kB / 0.9534 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.2934, allocations: 54.48 kB / 0.9535 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.2935, allocations: 32.97 kB / 0.9535 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.2935, allocations: 4 kB / 0.9535 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002058/0.2938, allocations: 75.41 kB / 0.9536 GB, free: 5.305 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.2938, allocations: 4 kB / 0.9536 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.000436/0.2942, allocations: 129.5 kB / 0.9537 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.2943, allocations: 63.41 kB / 0.9538 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.2944, allocations: 121.8 kB / 0.9539 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.2944, allocations: 33.64 kB / 0.9539 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.963e-05/0.2945, allocations: 88.05 kB / 0.954 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.2945, allocations: 19.75 kB / 0.954 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/0.2946, allocations: 29.7 kB / 0.9541 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2947, allocations: 326.8 kB / 0.9544 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.2948, allocations: 35.91 kB / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.295, allocations: 69.98 kB / 0.9545 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002272/0.2952, allocations: 105.9 kB / 0.9546 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2952, allocations: 0 / 0.9546 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003141/0.2955, allocations: 133.5 kB / 0.9547 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.2956, allocations: 10.19 kB / 0.9547 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2956, allocations: 0 / 0.9547 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.2956, allocations: 4 kB / 0.9547 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.2957, allocations: 15.98 kB / 0.9547 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.2957, allocations: 4 kB / 0.9547 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.781e-05/0.2958, allocations: 12.11 kB / 0.9548 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-05/0.2959, allocations: 8 kB / 0.9548 GB, free: 4.016 MB / 0.7325 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.0001048/0.296, allocations: 129.7 kB / 0.9549 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/0.296, allocations: 15.83 kB / 0.9549 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.229e-05/0.2961, allocations: 12.38 kB / 0.9549 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.2961, allocations: 0 / 0.9549 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2961, allocations: 0 / 0.9549 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2961, allocations: 0 / 0.9549 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004837/0.2966, allocations: 382.4 kB / 0.9553 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.2966, allocations: 0 / 0.9553 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.199e-05/0.2966, allocations: 4 kB / 0.9553 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.2966, allocations: 3.984 kB / 0.9553 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.2967, allocations: 4 kB / 0.9553 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.2967, allocations: 3.938 kB / 0.9553 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2967, allocations: 0 / 0.9553 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.297, allocations: 203.3 kB / 0.9555 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.297, allocations: 92.94 kB / 0.9556 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.297, allocations: 0 / 0.9556 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.232e-05/0.2971, allocations: 11.94 kB / 0.9556 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.114e-05/0.2972, allocations: 7.984 kB / 0.9556 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.972e-06/0.2972, allocations: 0 / 0.9556 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.334e-05/0.2973, allocations: 91.27 kB / 0.9557 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2973, allocations: 4 kB / 0.9557 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002649/0.2975, allocations: 20 kB / 0.9557 GB, free: 2.949 MB / 0.7325 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.0001753/0.2977, allocations: 107.2 kB / 0.9558 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002945/0.298, allocations: 75.89 kB / 0.9559 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.298, allocations: 448 / 0.9559 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.2982, allocations: 47.84 kB / 0.9559 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.2984, allocations: 8 kB / 0.9559 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004366/0.2989, allocations: 180 kB / 0.9561 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.2992, allocations: 0.6961 MB / 0.9568 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.577e-05/0.2992, allocations: 19.42 kB / 0.9568 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of SimCode: time 3.91e-07/0.2992, allocations: 0 / 0.9568 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of Templates: time 0.002942/0.3022, allocations: 1.047 MB / 0.9578 GB, free: 0.7148 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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