Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.SampleTrigger,fileNamePrefix="Buildings_latest_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_latest_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.001373/0.001372, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.49/1.49, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.78/2.78, allocations: 461.9 MB / 0.7347 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 66.3 kB / 0.8992 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3743, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00226/0.3766, allocations: 0.7455 MB / 1.054 GB, free: 7.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.378, allocations: 1.092 MB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.605e-05/0.3781, allocations: 0 / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.425e-05/0.3781, allocations: 7.922 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.339e-05/0.3782, allocations: 7.875 kB / 1.055 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000336/0.3786, allocations: 51.83 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.3787, allocations: 71.83 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.3788, allocations: 16.17 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.222e-05/0.3789, allocations: 35.86 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.331e-05/0.379, allocations: 27.91 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.379, allocations: 8 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.463e-05/0.3791, allocations: 23.97 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.272e-05/0.3791, allocations: 15.92 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.3791, allocations: 27.86 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.3793, allocations: 83.69 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3793, allocations: 0 / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3793, allocations: 0 / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.3793, allocations: 0 / 1.055 GB, free: 6.02 MB / 0.8106 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.0005619/0.3799, allocations: 375.5 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.3799, allocations: 12.62 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.38, allocations: 42.67 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.318e-05/0.38, allocations: 8.844 kB / 1.056 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.3802, allocations: 176.2 kB / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.3802, allocations: 8.359 kB / 1.056 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.3802, allocations: 8.375 kB / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.3805, allocations: 73.91 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3805, allocations: 4 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.3805, allocations: 0 / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.3805, allocations: 0 / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.3807, allocations: 43.95 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006868/0.3814, allocations: 332.6 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.3816, allocations: 50.56 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.3817, allocations: 32.95 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.3817, allocations: 0 / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002572/0.382, allocations: 75.38 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.382, allocations: 4 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004594/0.3825, allocations: 133.6 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.3825, allocations: 55.39 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.3827, allocations: 117.8 kB / 1.057 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.3827, allocations: 25.7 kB / 1.057 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.554e-05/0.3828, allocations: 100 kB / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.3828, allocations: 19.75 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-05/0.3829, allocations: 29.7 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.383, allocations: 326.8 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.3831, allocations: 23.98 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.3833, allocations: 77.97 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002406/0.3835, allocations: 109.8 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3835, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003114/0.3838, allocations: 133.4 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.3839, allocations: 8 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3839, allocations: 224 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.3839, allocations: 8 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.384, allocations: 19.92 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.3841, allocations: 0 / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.538e-05/0.3841, allocations: 11.98 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.3842, allocations: 8 kB / 1.057 GB, free: 3.34 MB / 0.8106 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.0001458/0.3843, allocations: 127.2 kB / 1.058 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/0.3843, allocations: 7.906 kB / 1.058 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.34e-05/0.3844, allocations: 12.36 kB / 1.058 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.3844, allocations: 12 kB / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3844, allocations: 0 / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3844, allocations: 0 / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005088/0.3849, allocations: 370.7 kB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.385, allocations: 7.984 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.181e-05/0.385, allocations: 7.938 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.385, allocations: 4 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.385, allocations: 0 / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.385, allocations: 3.938 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.385, allocations: 7.984 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.3853, allocations: 191.4 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.361e-05/0.3854, allocations: 81.02 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.3854, allocations: 11.98 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.144e-05/0.3855, allocations: 11.94 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.623e-05/0.3856, allocations: 7.969 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.3856, allocations: 4 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.864e-05/0.3857, allocations: 91.27 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3857, allocations: 0 / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002587/0.3859, allocations: 16 kB / 1.058 GB, free: 2.285 MB / 0.8106 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.0006643/0.3866, allocations: 0.7474 MB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002883/0.3869, allocations: 83.81 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3869, allocations: 4.438 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.387, allocations: 31.98 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.3873, allocations: 17.8 kB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.3891, allocations: 1.506 MB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.3894, allocations: 0.6885 MB / 1.061 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.569e-05/0.3894, allocations: 4 kB / 1.061 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.167e-05/0.3895, allocations: 26.17 kB / 1.061 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of SimCode: time 1.543e-06/0.3895, allocations: 4 kB / 1.061 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.4104, allocations: 2.069 MB / 1.063 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.163, allocations: 9.297 kB / 1.063 GB, free: 13.06 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches