Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: 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_9_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_9_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.007316/0.007316, allocations: 101.8 kB / 15.88 MB, free: 5.867 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.001801/0.001801, allocations: 192.9 kB / 16.79 MB, free: 5.809 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.449/1.449, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.417/2.417, allocations: 390.2 MB / 0.6649 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 67.91 kB / 0.8125 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6764/0.678, allocations: 140.3 MB / 0.9496 GB, free: 9.277 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00183/0.6799, allocations: 0.8116 MB / 0.9504 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001075/0.681, allocations: 1.07 MB / 0.9514 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.064e-05/0.681, allocations: 5.062 kB / 0.9514 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.539e-05/0.6811, allocations: 8.891 kB / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.706e-05/0.6812, allocations: 5.188 kB / 0.9515 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.6814, allocations: 49.14 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.334e-05/0.6815, allocations: 67.39 kB / 0.9516 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.6816, allocations: 12.59 kB / 0.9516 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.42e-05/0.6817, allocations: 25.11 kB / 0.9516 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.226e-05/0.6817, allocations: 33.38 kB / 0.9516 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.716e-05/0.6818, allocations: 4.562 kB / 0.9516 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.454e-05/0.6818, allocations: 25.91 kB / 0.9517 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.944e-05/0.6819, allocations: 14.64 kB / 0.9517 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.02e-05/0.6819, allocations: 28.05 kB / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.69e-05/0.682, allocations: 52.39 kB / 0.9518 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.682, allocations: 3.938 kB / 0.9518 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.22e-07/0.682, allocations: 0 / 0.9518 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.682, allocations: 1.156 kB / 0.9518 GB, free: 7.562 MB / 0.7169 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.0004683/0.6825, allocations: 379.7 kB / 0.9521 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.6825, allocations: 8.938 kB / 0.9521 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.904e-05/0.6826, allocations: 8.688 kB / 0.9521 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.444e-05/0.6827, allocations: 171.9 kB / 0.9523 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.6827, allocations: 7.219 kB / 0.9523 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.6827, allocations: 4.031 kB / 0.9523 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.6829, allocations: 73.41 kB / 0.9524 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.6829, allocations: 3.938 kB / 0.9524 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.6829, allocations: 5.375 kB / 0.9524 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.6829, allocations: 4 kB / 0.9524 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.6831, allocations: 41.42 kB / 0.9524 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005597/0.6837, allocations: 324.7 kB / 0.9528 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.6839, allocations: 59.58 kB / 0.9528 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.185e-05/0.684, allocations: 31.39 kB / 0.9528 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.684, allocations: 5.047 kB / 0.9528 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.6842, allocations: 77.92 kB / 0.9529 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.6842, allocations: 5.125 kB / 0.9529 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004071/0.6846, allocations: 135.2 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.641e-05/0.6846, allocations: 54.12 kB / 0.9531 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.67e-05/0.6847, allocations: 120.7 kB / 0.9532 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.6848, allocations: 30.73 kB / 0.9532 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.518e-05/0.6848, allocations: 94.97 kB / 0.9533 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.6848, allocations: 14.48 kB / 0.9534 GB, free: 6 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.834e-05/0.6849, allocations: 30.7 kB / 0.9534 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.625e-05/0.6849, allocations: 325 kB / 0.9537 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.6851, allocations: 31.23 kB / 0.9537 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.6852, allocations: 71.14 kB / 0.9538 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.6854, allocations: 114.7 kB / 0.9539 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.6854, allocations: 1.156 kB / 0.9539 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002833/0.6857, allocations: 125.7 kB / 0.954 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.6857, allocations: 8.984 kB / 0.954 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.6857, allocations: 1.406 kB / 0.954 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.6858, allocations: 2.469 kB / 0.954 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.6859, allocations: 24.52 kB / 0.9541 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.6859, allocations: 2.781 kB / 0.9541 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.471e-05/0.686, allocations: 21.33 kB / 0.9541 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.686, allocations: 4.344 kB / 0.9541 GB, free: 5.359 MB / 0.7169 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 6.293e-05/0.6861, allocations: 123.2 kB / 0.9542 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.6861, allocations: 7.344 kB / 0.9542 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.551e-05/0.6861, allocations: 9.406 kB / 0.9542 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.6861, allocations: 1 kB / 0.9542 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.6861, allocations: 4 kB / 0.9542 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.6861, allocations: 5.078 kB / 0.9542 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003747/0.6865, allocations: 361.2 kB / 0.9546 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.6865, allocations: 0 / 0.9546 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.376e-05/0.6866, allocations: 13.23 kB / 0.9546 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.6866, allocations: 1.125 kB / 0.9546 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.6866, allocations: 5.219 kB / 0.9546 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.6866, allocations: 7.938 kB / 0.9546 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.6866, allocations: 0 / 0.9546 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002423/0.6869, allocations: 200.9 kB / 0.9548 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.074e-05/0.6869, allocations: 83.05 kB / 0.9549 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.6869, allocations: 5.156 kB / 0.9549 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.615e-05/0.687, allocations: 16.39 kB / 0.9549 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.6871, allocations: 7.109 kB / 0.9549 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.6871, allocations: 9.625 kB / 0.9549 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.987e-05/0.6871, allocations: 91.8 kB / 0.955 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6871, allocations: 0 / 0.955 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002604/0.6874, allocations: 17.66 kB / 0.955 GB, free: 4.465 MB / 0.7169 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.0001578/0.6876, allocations: 111.1 kB / 0.9551 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000272/0.6878, allocations: 79.41 kB / 0.9552 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.6878, allocations: 1.406 kB / 0.9552 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.688, allocations: 32.88 kB / 0.9552 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.6882, allocations: 8.75 kB / 0.9552 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000337/0.6886, allocations: 216 kB / 0.9554 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.6887, allocations: 0.6911 MB / 0.9561 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.6887, allocations: 10.78 kB / 0.9561 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of SimCode: time 5.61e-07/0.6888, allocations: 1.125 kB / 0.9561 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of Templates: time 0.002274/0.691, allocations: 1.03 MB / 0.9571 GB, free: 2.875 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y