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 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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 108 kB / 15.61 MB, free: 152 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.002093/0.002094, allocations: 193.9 kB / 16.53 MB, free: 6.699 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.527/1.527, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.148/3.148, allocations: 472.7 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 63.44 kB / 0.9121 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4431/0.4445, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002808/0.4474, allocations: 0.7418 MB / 1.069 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.4491, allocations: 1.083 MB / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.299e-05/0.4491, allocations: 0 / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.507e-05/0.4492, allocations: 7.875 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.138e-05/0.4493, allocations: 7.938 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/0.4497, allocations: 59.81 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.4498, allocations: 63.84 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.4499, allocations: 28.11 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.021e-05/0.45, allocations: 35.84 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.664e-05/0.4501, allocations: 27.91 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.4501, allocations: 11.94 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.304e-05/0.4502, allocations: 19.98 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.617e-05/0.4503, allocations: 15.97 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.676e-05/0.4503, allocations: 39.78 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.4505, allocations: 71.81 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.4505, allocations: 0 / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.963e-06/0.4505, allocations: 0 / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.4505, allocations: 0 / 1.07 GB, free: 8.164 MB / 0.8262 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.0006243/0.4512, allocations: 383.5 kB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.4512, allocations: 8.031 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.899e-05/0.4513, allocations: 12.78 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.4514, allocations: 176.2 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.4514, allocations: 4.375 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.4515, allocations: 8.375 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.4517, allocations: 62.22 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.4517, allocations: 7.938 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.4517, allocations: 4 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.4517, allocations: 0 / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.4519, allocations: 43.95 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007101/0.4526, allocations: 324.7 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.4528, allocations: 50.56 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.4529, allocations: 32.95 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.453, allocations: 3.938 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.4532, allocations: 91.3 kB / 1.072 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.4533, allocations: 0 / 1.072 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004188/0.4537, allocations: 125.6 kB / 1.072 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.4537, allocations: 51.41 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.4538, allocations: 121.8 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.4539, allocations: 29.69 kB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.935e-05/0.4539, allocations: 96.14 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.454, allocations: 19.73 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.575e-05/0.454, allocations: 29.7 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4542, allocations: 326.7 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.4543, allocations: 23.98 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.4545, allocations: 85.91 kB / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.4547, allocations: 101.9 kB / 1.073 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.4547, allocations: 0 / 1.073 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003156/0.455, allocations: 137.3 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.4551, allocations: 8 kB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.4551, allocations: 4.219 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.4551, allocations: 4 kB / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.4552, allocations: 15.98 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.4553, allocations: 0 / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.263e-05/0.4553, allocations: 11.98 kB / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.4554, allocations: 11.94 kB / 1.073 GB, free: 5.531 MB / 0.8262 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.0002148/0.4556, allocations: 120.8 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.4556, allocations: 7.906 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.16e-05/0.4556, allocations: 16.36 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.4556, allocations: 0 / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4557, allocations: 4 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4557, allocations: 0 / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005179/0.4562, allocations: 370.6 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.4562, allocations: 3.984 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.663e-05/0.4563, allocations: 12 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.4563, allocations: 4 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.4563, allocations: 0 / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4563, allocations: 3.938 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4563, allocations: 3.984 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004212/0.4567, allocations: 199.4 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.4568, allocations: 88.94 kB / 1.074 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.4568, allocations: 15.98 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-05/0.4569, allocations: 7.938 kB / 1.074 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.491e-05/0.457, allocations: 3.984 kB / 1.074 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.457, allocations: 4 kB / 1.074 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.481e-05/0.4571, allocations: 99.8 kB / 1.074 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.376e-06/0.4571, allocations: 0 / 1.074 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002759/0.4574, allocations: 19.94 kB / 1.074 GB, free: 4.469 MB / 0.8262 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.000232/0.4576, allocations: 103.8 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003426/0.458, allocations: 83.88 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.458, allocations: 3.938 kB / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.4581, allocations: 31.97 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.4584, allocations: 8.438 kB / 1.074 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004919/0.4589, allocations: 170 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.4592, allocations: 0.6894 MB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.959e-05/0.4593, allocations: 11.78 kB / 1.075 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.216e-05/0.4593, allocations: 19.42 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.4593, allocations: 0 / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of Templates: time 0.003897/0.4632, allocations: 0.9577 MB / 1.076 GB, free: 2.344 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start