Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.006843/0.006843, allocations: 101 kB / 15.73 MB, free: 6.055 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.001897/0.001897, allocations: 192.9 kB / 16.67 MB, free: 5.969 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.537/2.537, allocations: 482.6 MB / 0.7551 GB, free: 6.625 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 68.41 kB / 1.083 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.276, allocations: 162.3 MB / 1.242 GB, free: 9.016 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001804/0.2778, allocations: 0.7588 MB / 1.243 GB, free: 8.258 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001225/0.2791, allocations: 1.059 MB / 1.244 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.445e-05/0.2791, allocations: 4 kB / 1.244 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.967e-05/0.2792, allocations: 3.938 kB / 1.244 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.665e-05/0.2792, allocations: 19.84 kB / 1.244 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.2795, allocations: 47.84 kB / 1.244 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.2796, allocations: 79.77 kB / 1.244 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.088e-05/0.2797, allocations: 20.16 kB / 1.244 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.401e-05/0.2798, allocations: 27.86 kB / 1.244 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.273e-05/0.2799, allocations: 39.83 kB / 1.244 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.2799, allocations: 4 kB / 1.244 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.995e-05/0.2799, allocations: 19.98 kB / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.421e-05/0.28, allocations: 19.92 kB / 1.244 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.957e-05/0.28, allocations: 27.86 kB / 1.244 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.2801, allocations: 79.97 kB / 1.244 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.2802, allocations: 0 / 1.244 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.875e-06/0.2802, allocations: 4 kB / 1.244 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.2802, allocations: 0 / 1.244 GB, free: 6.793 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.0004991/0.2807, allocations: 379.2 kB / 1.244 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2807, allocations: 12.03 kB / 1.244 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.684e-05/0.2808, allocations: 38.73 kB / 1.244 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.893e-05/0.2808, allocations: 12.83 kB / 1.244 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.2809, allocations: 180.2 kB / 1.245 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.2809, allocations: 4.375 kB / 1.245 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.281, allocations: 8.375 kB / 1.245 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.2812, allocations: 69.97 kB / 1.245 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.2812, allocations: 3.938 kB / 1.245 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.2812, allocations: 0 / 1.245 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.2812, allocations: 4 kB / 1.245 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.2814, allocations: 47.89 kB / 1.245 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005769/0.282, allocations: 332.7 kB / 1.245 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.2821, allocations: 50.59 kB / 1.245 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.629e-05/0.2822, allocations: 32.95 kB / 1.245 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.2823, allocations: 4 kB / 1.245 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.2824, allocations: 79.38 kB / 1.245 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.2825, allocations: 0 / 1.245 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003871/0.2828, allocations: 129.8 kB / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.2829, allocations: 55.34 kB / 1.245 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.694e-05/0.283, allocations: 129.8 kB / 1.246 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.283, allocations: 25.7 kB / 1.246 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.334e-05/0.2831, allocations: 92.12 kB / 1.246 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.2831, allocations: 11.91 kB / 1.246 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-05/0.2832, allocations: 33.7 kB / 1.246 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.2833, allocations: 322.8 kB / 1.246 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.2834, allocations: 23.98 kB / 1.246 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.2835, allocations: 77.97 kB / 1.246 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.2838, allocations: 109.9 kB / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2838, allocations: 0 / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003011/0.2841, allocations: 137.6 kB / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.2841, allocations: 4 kB / 1.246 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2841, allocations: 4.078 kB / 1.246 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.2841, allocations: 0 / 1.246 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.2842, allocations: 19.92 kB / 1.246 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.2843, allocations: 11.92 kB / 1.246 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.885e-05/0.2843, allocations: 15.88 kB / 1.246 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.2844, allocations: 4 kB / 1.246 GB, free: 4.102 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 9.202e-05/0.2845, allocations: 135.2 kB / 1.247 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.2845, allocations: 7.938 kB / 1.247 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.254e-05/0.2845, allocations: 8.359 kB / 1.247 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.2845, allocations: 0 / 1.247 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.2845, allocations: 0 / 1.247 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2845, allocations: 0 / 1.247 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000457/0.285, allocations: 378.4 kB / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.285, allocations: 7.984 kB / 1.247 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.032e-05/0.2851, allocations: 4 kB / 1.247 GB, free: 3.512 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.2851, allocations: 4 kB / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.2851, allocations: 0 / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2851, allocations: 3.938 kB / 1.247 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2851, allocations: 3.984 kB / 1.247 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002829/0.2854, allocations: 199.4 kB / 1.247 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.165e-05/0.2854, allocations: 85.06 kB / 1.247 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.2854, allocations: 3.984 kB / 1.247 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.23e-05/0.2855, allocations: 11.94 kB / 1.247 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.922e-05/0.2856, allocations: 7.984 kB / 1.247 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.2856, allocations: 7.984 kB / 1.247 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.356e-05/0.2856, allocations: 95.27 kB / 1.247 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2857, allocations: 0 / 1.247 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002337/0.2859, allocations: 19.94 kB / 1.247 GB, free: 3.043 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.0005864/0.2865, allocations: 0.7402 MB / 1.248 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002572/0.2867, allocations: 79.94 kB / 1.248 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2868, allocations: 0 / 1.248 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.2869, allocations: 35.98 kB / 1.248 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/0.2871, allocations: 20.84 kB / 1.248 GB, free: 2.145 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.2888, allocations: 1.509 MB / 1.25 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.2891, allocations: 0.6924 MB / 1.25 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.216e-05/0.2891, allocations: 7.984 kB / 1.25 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.841e-05/0.2892, allocations: 21.97 kB / 1.25 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of SimCode: time 4.71e-07/0.2892, allocations: 4 kB / 1.25 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.016/1.305, allocations: 2.126 MB / 1.252 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.75/17.06, allocations: 7.922 kB / 1.252 GB, free: 13.82 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches