Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.SampleTrigger,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.005222/0.005222, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001432/0.001432, allocations: 197.2 kB / 16.68 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.254/1.254, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.431/2.431, allocations: 469.8 MB / 0.7425 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 79.89 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.597/0.5988, allocations: 159.1 MB / 1.22 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001628/0.6004, allocations: 0.7519 MB / 1.221 GB, free: 1.297 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.6016, allocations: 1.065 MB / 1.222 GB, free: 224 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.326e-05/0.6016, allocations: 7.938 kB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.536e-05/0.6017, allocations: 7.922 kB / 1.222 GB, free: 208 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.079e-05/0.6017, allocations: 11.88 kB / 1.222 GB, free: 196 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.602, allocations: 48.89 kB / 1.222 GB, free: 148 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.6021, allocations: 79.7 kB / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.551e-05/0.6022, allocations: 20.17 kB / 1.222 GB, free: 44 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.943e-05/0.6022, allocations: 23.92 kB / 1.222 GB, free: 20 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.831e-05/0.6023, allocations: 35.84 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.556e-05/0.6023, allocations: 4 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 5.782e-05/0.6024, allocations: 23.97 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.02e-05/0.6024, allocations: 19.92 kB / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.318e-05/0.6025, allocations: 31.86 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.6026, allocations: 70.42 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.6026, allocations: 4 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.062e-06/0.6026, allocations: 3.938 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.6026, allocations: 0 / 1.222 GB, free: 15.83 MB / 0.9512 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.000475/0.6031, allocations: 388.1 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.6031, allocations: 12.03 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.951e-05/0.6032, allocations: 30.75 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.883e-05/0.6032, allocations: 12.89 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.6033, allocations: 180.2 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.6033, allocations: 4.375 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.6034, allocations: 4.375 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.6035, allocations: 69.92 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.6036, allocations: 0 / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.6036, allocations: 8 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.6036, allocations: 0 / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.6038, allocations: 43.95 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005488/0.6043, allocations: 324.7 kB / 1.223 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.6045, allocations: 58.58 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.483e-05/0.6046, allocations: 32.97 kB / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.6046, allocations: 0 / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001765/0.6048, allocations: 83.33 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.6048, allocations: 0 / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0003693/0.6052, allocations: 129.6 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.6052, allocations: 55.41 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.337e-05/0.6053, allocations: 129.7 kB / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.6053, allocations: 29.7 kB / 1.224 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.6054, allocations: 96.06 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.6054, allocations: 15.89 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.813e-05/0.6055, allocations: 29.72 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.6056, allocations: 322.8 kB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.6057, allocations: 35.97 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.6058, allocations: 73.92 kB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.6061, allocations: 113.8 kB / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.6061, allocations: 0 / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002873/0.6064, allocations: 129.5 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.6064, allocations: 4 kB / 1.225 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.6064, allocations: 4 kB / 1.225 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.827e-06/0.6064, allocations: 0 / 1.225 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.6065, allocations: 23.86 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.6065, allocations: 4 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.797e-05/0.6066, allocations: 16.16 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.6066, allocations: 12 kB / 1.225 GB, free: 13.13 MB / 0.9512 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.258e-05/0.6067, allocations: 121.7 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.6067, allocations: 11.94 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.337e-05/0.6068, allocations: 8.375 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.6068, allocations: 0 / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.6068, allocations: 3.938 kB / 1.225 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.6068, allocations: 0 / 1.225 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004424/0.6072, allocations: 374.8 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.6072, allocations: 0 / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.434e-05/0.6073, allocations: 15.92 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.6073, allocations: 0 / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.6073, allocations: 4 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.6073, allocations: 3.938 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.92e-07/0.6073, allocations: 0 / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.6076, allocations: 207.5 kB / 1.225 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.015e-05/0.6077, allocations: 81.06 kB / 1.225 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.6077, allocations: 0 / 1.225 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.975e-05/0.6078, allocations: 11.92 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.024e-05/0.6078, allocations: 8 kB / 1.226 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.6078, allocations: 0 / 1.226 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.346e-05/0.6079, allocations: 95.27 kB / 1.226 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6079, allocations: 0 / 1.226 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002278/0.6081, allocations: 16 kB / 1.226 GB, free: 12.08 MB / 0.9512 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.0005565/0.6087, allocations: 0.7479 MB / 1.226 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002515/0.6089, allocations: 79.88 kB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.6089, allocations: 0 / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.6091, allocations: 39.91 kB / 1.226 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.6093, allocations: 15.94 kB / 1.226 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.6108, allocations: 1.519 MB / 1.228 GB, free: 9.539 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.6111, allocations: 0.6846 MB / 1.229 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.25e-05/0.6112, allocations: 11.98 kB / 1.229 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.959e-05/0.6112, allocations: 27.38 kB / 1.229 GB, free: 8.789 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.6112, allocations: 0 / 1.229 GB, free: 8.789 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.846/2.458, allocations: 2.1 MB / 1.231 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.56/20.01, allocations: 18.2 kB / 1.231 GB, free: 6.82 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches