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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_9_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_9_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.01038/0.01038, allocations: 100.3 kB / 15.73 MB, free: 6.031 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.001951/0.001951, allocations: 186.7 kB / 16.67 MB, free: 5.965 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.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.352/2.352, allocations: 390.3 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001348, allocations: 63.88 kB / 0.9504 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2832, allocations: 140.4 MB / 1.087 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002137/0.2854, allocations: 0.7488 MB / 1.088 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.2869, allocations: 1.083 MB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.771e-05/0.287, allocations: 0 / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.647e-05/0.287, allocations: 3.938 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.293e-05/0.2872, allocations: 15.86 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.2876, allocations: 51.81 kB / 1.089 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.2877, allocations: 67.92 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.2878, allocations: 20.17 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.444e-05/0.2879, allocations: 31.86 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.577e-05/0.288, allocations: 31.81 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.288, allocations: 8 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.749e-05/0.2881, allocations: 19.98 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.436e-05/0.2882, allocations: 15.92 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.979e-05/0.2882, allocations: 23.88 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.2884, allocations: 87.67 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.2884, allocations: 3.938 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.763e-06/0.2884, allocations: 4 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.05e-05/0.2884, allocations: 0 / 1.09 GB, free: 15.74 MB / 0.8575 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.0006031/0.289, allocations: 379 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.2891, allocations: 8.031 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.207e-05/0.2891, allocations: 42.73 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.658e-05/0.2892, allocations: 4.844 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.2893, allocations: 180.2 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.2893, allocations: 4.375 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.598e-05/0.2894, allocations: 8.375 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.2896, allocations: 77.91 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.2896, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.2896, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.2896, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.2898, allocations: 43.95 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006024/0.2904, allocations: 324.7 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001609/0.2906, allocations: 54.55 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.832e-05/0.2907, allocations: 32.95 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.2907, allocations: 4 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002163/0.291, allocations: 75.38 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.944e-06/0.291, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000432/0.2914, allocations: 133.5 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.2915, allocations: 59.41 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.2916, allocations: 121.7 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.2916, allocations: 29.7 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.773e-05/0.2917, allocations: 92.12 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.2917, allocations: 19.75 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.715e-05/0.2917, allocations: 29.7 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.2919, allocations: 330.7 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.292, allocations: 23.98 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.2921, allocations: 78.23 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.2924, allocations: 109.9 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.2924, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003195/0.2927, allocations: 129.4 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.2927, allocations: 12.2 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.2927, allocations: 4 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.2928, allocations: 4 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.2929, allocations: 19.92 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.2929, allocations: 3.984 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.581e-05/0.293, allocations: 11.98 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.293, allocations: 4 kB / 1.092 GB, free: 13.07 MB / 0.8575 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 9.087e-05/0.2931, allocations: 127.3 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.521e-05/0.2931, allocations: 11.91 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.539e-05/0.2932, allocations: 8.375 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2932, allocations: 4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2932, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2932, allocations: 3.984 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004406/0.2936, allocations: 378.3 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.2937, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.469e-05/0.2937, allocations: 7.984 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2937, allocations: 4 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.2937, allocations: 0 / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.2938, allocations: 7.938 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2938, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.294, allocations: 191.5 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.798e-05/0.2941, allocations: 85.02 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.2941, allocations: 4 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.683e-05/0.2942, allocations: 19.86 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/0.2942, allocations: 11.91 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.2943, allocations: 7.938 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.222e-05/0.2943, allocations: 91.27 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2943, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002553/0.2946, allocations: 20 kB / 1.093 GB, free: 12 MB / 0.8575 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.000579/0.2952, allocations: 0.7363 MB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002755/0.2955, allocations: 83.81 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2955, allocations: 448 / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.2956, allocations: 31.98 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002753/0.2959, allocations: 19.92 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.2975, allocations: 1.519 MB / 1.095 GB, free: 9.473 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.2978, allocations: 0.6912 MB / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.978e-05/0.2978, allocations: 8 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.071e-05/0.2979, allocations: 23.42 kB / 1.096 GB, free: 8.727 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.2979, allocations: 0 / 1.096 GB, free: 8.727 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01949/0.3174, allocations: 2.145 MB / 1.098 GB, free: 6.762 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.1/8.418, allocations: 8.062 kB / 1.098 GB, free: 6.758 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > 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) Reference file matches