Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 107.8 kB / 15.99 MB, free: 6.359 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.001789/0.001789, allocations: 195.2 kB / 16.91 MB, free: 6.191 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.378/1.378, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.241/2.241, allocations: 390.2 MB / 0.665 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 66.56 kB / 0.8127 GB, free: 32.44 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2654, allocations: 140.4 MB / 0.9498 GB, free: 9.215 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002207/0.2676, allocations: 0.813 MB / 0.9506 GB, free: 8.395 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001373/0.269, allocations: 1.074 MB / 0.9516 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.36e-05/0.2691, allocations: 0 / 0.9516 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.845e-05/0.2691, allocations: 3.938 kB / 0.9516 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.127e-05/0.2692, allocations: 3.938 kB / 0.9516 GB, free: 7.297 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003224/0.2695, allocations: 47.89 kB / 0.9517 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.2697, allocations: 71.78 kB / 0.9518 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.2698, allocations: 20.16 kB / 0.9518 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.035e-05/0.2699, allocations: 31.92 kB / 0.9518 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.111e-05/0.2699, allocations: 31.84 kB / 0.9518 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.27, allocations: 8 kB / 0.9518 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.189e-05/0.27, allocations: 23.97 kB / 0.9519 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.253e-05/0.2701, allocations: 15.88 kB / 0.9519 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.415e-05/0.2701, allocations: 27.86 kB / 0.9519 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.2702, allocations: 59.88 kB / 0.952 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2702, allocations: 0 / 0.952 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2703, allocations: 0 / 0.952 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.229e-06/0.2703, allocations: 0 / 0.952 GB, free: 6.961 MB / 0.7325 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.0005741/0.2708, allocations: 387.4 kB / 0.9523 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2709, allocations: 8.031 kB / 0.9523 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.2709, allocations: 4.938 kB / 0.9524 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.2711, allocations: 184.1 kB / 0.9525 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.2711, allocations: 4.375 kB / 0.9525 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.2711, allocations: 8.375 kB / 0.9525 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002041/0.2713, allocations: 70.11 kB / 0.9526 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.2713, allocations: 3.938 kB / 0.9526 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.2714, allocations: 7.984 kB / 0.9526 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.2714, allocations: 4 kB / 0.9526 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.2716, allocations: 39.97 kB / 0.9527 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006564/0.2722, allocations: 324.6 kB / 0.953 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.2724, allocations: 54.55 kB / 0.953 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.2725, allocations: 32.97 kB / 0.9531 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.2725, allocations: 0 / 0.9531 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.2728, allocations: 79.36 kB / 0.9531 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.2728, allocations: 4 kB / 0.9531 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004294/0.2732, allocations: 129.6 kB / 0.9533 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.2733, allocations: 55.41 kB / 0.9533 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.347e-05/0.2734, allocations: 125.8 kB / 0.9534 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.2734, allocations: 25.7 kB / 0.9535 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.818e-05/0.2735, allocations: 92.05 kB / 0.9535 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.328e-05/0.2735, allocations: 27.72 kB / 0.9536 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.699e-05/0.2736, allocations: 33.7 kB / 0.9536 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.2737, allocations: 318.8 kB / 0.9539 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.2738, allocations: 27.97 kB / 0.9539 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.2739, allocations: 73.98 kB / 0.954 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.2742, allocations: 113.8 kB / 0.9541 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2742, allocations: 0 / 0.9541 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003184/0.2745, allocations: 129.5 kB / 0.9542 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2745, allocations: 4 kB / 0.9542 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2746, allocations: 4 kB / 0.9542 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.2746, allocations: 4.219 kB / 0.9542 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.2747, allocations: 19.92 kB / 0.9543 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.2747, allocations: 7.984 kB / 0.9543 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.726e-05/0.2748, allocations: 7.906 kB / 0.9543 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.2748, allocations: 8 kB / 0.9543 GB, free: 4.32 MB / 0.7325 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.937e-05/0.2749, allocations: 128.4 kB / 0.9544 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.275, allocations: 11.84 kB / 0.9544 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.785e-05/0.275, allocations: 8.375 kB / 0.9544 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.275, allocations: 4 kB / 0.9544 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.275, allocations: 0 / 0.9544 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.275, allocations: 0 / 0.9544 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004696/0.2755, allocations: 366.5 kB / 0.9548 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2755, allocations: 0 / 0.9548 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.865e-05/0.2756, allocations: 15.92 kB / 0.9548 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.2756, allocations: 3.938 kB / 0.9548 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.2756, allocations: 4 kB / 0.9548 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.2756, allocations: 3.938 kB / 0.9548 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2756, allocations: 4 kB / 0.9548 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.2759, allocations: 203.4 kB / 0.955 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.846e-05/0.276, allocations: 84.95 kB / 0.9551 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.276, allocations: 0 / 0.9551 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.292e-05/0.2761, allocations: 23.91 kB / 0.9551 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.2761, allocations: 4 kB / 0.9551 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.2761, allocations: 0 / 0.9551 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.814e-05/0.2762, allocations: 95.27 kB / 0.9552 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2762, allocations: 0 / 0.9552 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002667/0.2765, allocations: 16 kB / 0.9552 GB, free: 3.266 MB / 0.7325 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.0001435/0.2766, allocations: 111.2 kB / 0.9553 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000291/0.2769, allocations: 75.89 kB / 0.9554 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2769, allocations: 3.938 kB / 0.9554 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.2771, allocations: 35.97 kB / 0.9554 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.2773, allocations: 22.88 kB / 0.9555 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000372/0.2777, allocations: 200.4 kB / 0.9556 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.278, allocations: 0.6922 MB / 0.9563 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.48e-05/0.278, allocations: 15.44 kB / 0.9563 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.278, allocations: 0 / 0.9563 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of Templates: time 0.002648/0.2807, allocations: 1.045 MB / 0.9574 GB, free: 1.012 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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