Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004827/0.004827, allocations: 98.42 kB / 15.73 MB, free: 5.547 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.001247/0.001247, allocations: 192 kB / 16.67 MB, free: 5.48 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.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.557/2.557, allocations: 482.6 MB / 0.7551 GB, free: 6.621 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 69.52 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2808, allocations: 162.3 MB / 1.242 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001819/0.2826, allocations: 0.7401 MB / 1.243 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001299/0.2839, allocations: 1.078 MB / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.921e-05/0.284, allocations: 0 / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.965e-05/0.284, allocations: 11.81 kB / 1.244 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.512e-05/0.2841, allocations: 3.938 kB / 1.244 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.2844, allocations: 59.81 kB / 1.244 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.2845, allocations: 67.78 kB / 1.244 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.2846, allocations: 29.55 kB / 1.244 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.512e-05/0.2847, allocations: 27.86 kB / 1.244 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.324e-05/0.2847, allocations: 35.84 kB / 1.244 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.2848, allocations: 4 kB / 1.244 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.484e-05/0.2848, allocations: 19.98 kB / 1.244 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.766e-05/0.2849, allocations: 23.91 kB / 1.244 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.206e-05/0.2849, allocations: 23.88 kB / 1.244 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.2851, allocations: 83.95 kB / 1.244 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2851, allocations: 0 / 1.244 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2851, allocations: 0 / 1.244 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.754e-06/0.2851, allocations: 0 / 1.244 GB, free: 6.723 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.0005401/0.2856, allocations: 383.2 kB / 1.244 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.2857, allocations: 12.03 kB / 1.244 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.747e-05/0.2857, allocations: 38.73 kB / 1.244 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.2858, allocations: 8.891 kB / 1.244 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.2859, allocations: 176.2 kB / 1.245 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.2859, allocations: 8.375 kB / 1.245 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.2859, allocations: 384 / 1.245 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000196/0.2861, allocations: 73.97 kB / 1.245 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2862, allocations: 4 kB / 1.245 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.2862, allocations: 4 kB / 1.245 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.2862, allocations: 0 / 1.245 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/0.2864, allocations: 47.89 kB / 1.245 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005974/0.287, allocations: 332.6 kB / 1.245 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.2871, allocations: 50.59 kB / 1.245 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.2873, allocations: 36.95 kB / 1.245 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.2873, allocations: 3.984 kB / 1.245 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000196/0.2875, allocations: 79.38 kB / 1.245 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2875, allocations: 0 / 1.245 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004227/0.2879, allocations: 129.6 kB / 1.245 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.288, allocations: 55.34 kB / 1.245 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.2881, allocations: 121.8 kB / 1.246 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.2881, allocations: 29.64 kB / 1.246 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.87e-05/0.2882, allocations: 96.12 kB / 1.246 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.2882, allocations: 19.89 kB / 1.246 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.411e-05/0.2883, allocations: 29.7 kB / 1.246 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.2884, allocations: 322.8 kB / 1.246 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.2885, allocations: 23.98 kB / 1.246 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.2886, allocations: 73.98 kB / 1.246 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002359/0.2889, allocations: 113.8 kB / 1.246 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2889, allocations: 0 / 1.246 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003048/0.2892, allocations: 133.5 kB / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.2892, allocations: 4 kB / 1.246 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2892, allocations: 4.219 kB / 1.246 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.2892, allocations: 4 kB / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.2894, allocations: 19.92 kB / 1.246 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.2894, allocations: 4 kB / 1.246 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.208e-05/0.2895, allocations: 19.88 kB / 1.246 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.2895, allocations: 8 kB / 1.246 GB, free: 4.027 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 8.476e-05/0.2896, allocations: 121.7 kB / 1.247 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.248e-05/0.2896, allocations: 4 kB / 1.247 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.449e-05/0.2896, allocations: 12.38 kB / 1.247 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.2896, allocations: 0 / 1.247 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2896, allocations: 3.984 kB / 1.247 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.2897, allocations: 4 kB / 1.247 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/0.2901, allocations: 370.4 kB / 1.247 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2901, allocations: 0 / 1.247 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.247e-05/0.2902, allocations: 11.98 kB / 1.247 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2902, allocations: 0 / 1.247 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.2902, allocations: 4 kB / 1.247 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.2902, allocations: 3.938 kB / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2902, allocations: 0 / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.2905, allocations: 203.4 kB / 1.247 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.424e-05/0.2905, allocations: 81.06 kB / 1.247 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.2906, allocations: 8 kB / 1.247 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.031e-05/0.2907, allocations: 15.92 kB / 1.247 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.2907, allocations: 7.984 kB / 1.247 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.2907, allocations: 7.984 kB / 1.247 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.273e-05/0.2908, allocations: 91.92 kB / 1.247 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2908, allocations: 0 / 1.247 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000238/0.291, allocations: 19.94 kB / 1.247 GB, free: 2.977 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.0006327/0.2917, allocations: 0.7449 MB / 1.248 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000269/0.2919, allocations: 83.8 kB / 1.248 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2919, allocations: 4 kB / 1.248 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.2921, allocations: 40.42 kB / 1.248 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.2923, allocations: 15.92 kB / 1.248 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.294, allocations: 1.512 MB / 1.25 GB, free: 444 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.2943, allocations: 0.6885 MB / 1.25 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.439e-05/0.2944, allocations: 4 kB / 1.25 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.734e-05/0.2944, allocations: 27.36 kB / 1.25 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.2944, allocations: 0 / 1.25 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.526/1.82, allocations: 2.115 MB / 1.252 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.62/18.44, allocations: 10.81 kB / 1.252 GB, free: 13.76 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches