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.001105/0.001105, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001054/0.001054, allocations: 183.9 kB / 17.19 MB, free: 5.688 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.332/1.332, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.204/2.204, allocations: 390.2 MB / 0.6653 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 72.88 kB / 0.8132 GB, free: 33.04 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2903, allocations: 140.4 MB / 0.9503 GB, free: 8.855 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002213/0.2926, allocations: 0.7615 MB / 0.951 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001439/0.294, allocations: 1.064 MB / 0.9521 GB, free: 7.008 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.675e-05/0.2941, allocations: 0 / 0.9521 GB, free: 7.008 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.841e-05/0.2942, allocations: 7.875 kB / 0.9521 GB, free: 7 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.213e-05/0.2943, allocations: 15.86 kB / 0.9521 GB, free: 6.984 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003239/0.2946, allocations: 55.88 kB / 0.9521 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.2947, allocations: 71.72 kB / 0.9522 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.2948, allocations: 24.16 kB / 0.9522 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.233e-05/0.2949, allocations: 27.92 kB / 0.9523 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.864e-05/0.295, allocations: 31.84 kB / 0.9523 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.295, allocations: 8 kB / 0.9523 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.207e-05/0.2951, allocations: 23.91 kB / 0.9523 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.651e-05/0.2952, allocations: 15.92 kB / 0.9523 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.358e-05/0.2952, allocations: 31.88 kB / 0.9524 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.2954, allocations: 79.73 kB / 0.9524 GB, free: 6.617 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2954, allocations: 0 / 0.9524 GB, free: 6.617 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2954, allocations: 0 / 0.9524 GB, free: 6.617 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.2954, allocations: 0 / 0.9524 GB, free: 6.617 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.0005611/0.296, allocations: 383.4 kB / 0.9528 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.296, allocations: 8.031 kB / 0.9528 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.566e-05/0.2961, allocations: 4.938 kB / 0.9528 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.2962, allocations: 180.2 kB / 0.953 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.2962, allocations: 4.375 kB / 0.953 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.2962, allocations: 8.375 kB / 0.953 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.2965, allocations: 62.23 kB / 0.9531 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.2965, allocations: 3.938 kB / 0.9531 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.2965, allocations: 7.984 kB / 0.9531 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.2965, allocations: 0 / 0.9531 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.2967, allocations: 47.84 kB / 0.9531 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006504/0.2974, allocations: 328.7 kB / 0.9534 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001735/0.2976, allocations: 50.55 kB / 0.9535 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.2977, allocations: 33.06 kB / 0.9535 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.2977, allocations: 7.938 kB / 0.9535 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.2979, allocations: 75.38 kB / 0.9536 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.298, allocations: 0 / 0.9536 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004221/0.2984, allocations: 125.5 kB / 0.9537 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.2984, allocations: 55.41 kB / 0.9538 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.2985, allocations: 125.8 kB / 0.9539 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.2986, allocations: 25.7 kB / 0.9539 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.329e-05/0.2986, allocations: 99.97 kB / 0.954 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.2987, allocations: 23.73 kB / 0.954 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.414e-05/0.2987, allocations: 29.7 kB / 0.9541 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.2988, allocations: 318.8 kB / 0.9544 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.299, allocations: 27.97 kB / 0.9544 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.2991, allocations: 74.42 kB / 0.9545 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.2994, allocations: 109.9 kB / 0.9546 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2994, allocations: 0 / 0.9546 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003157/0.2997, allocations: 141.4 kB / 0.9547 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.2997, allocations: 4 kB / 0.9547 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.2998, allocations: 4 kB / 0.9547 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.2998, allocations: 0 / 0.9547 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.2999, allocations: 19.98 kB / 0.9547 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.2999, allocations: 7.922 kB / 0.9547 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.946e-05/0.3, allocations: 11.91 kB / 0.9547 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.3, allocations: 8.156 kB / 0.9548 GB, free: 3.984 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 8.936e-05/0.3001, allocations: 131.7 kB / 0.9549 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.689e-05/0.3002, allocations: 11.89 kB / 0.9549 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.437e-05/0.3002, allocations: 4.375 kB / 0.9549 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.3002, allocations: 0 / 0.9549 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3002, allocations: 0 / 0.9549 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.3002, allocations: 4 kB / 0.9549 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004691/0.3007, allocations: 378.4 kB / 0.9553 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3007, allocations: 0 / 0.9553 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.774e-05/0.3008, allocations: 11.98 kB / 0.9553 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3008, allocations: 0 / 0.9553 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.3008, allocations: 0 / 0.9553 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.3008, allocations: 3.938 kB / 0.9553 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3008, allocations: 0 / 0.9553 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002969/0.3011, allocations: 211.7 kB / 0.9555 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.82e-05/0.3012, allocations: 84.95 kB / 0.9556 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.3012, allocations: 0 / 0.9556 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.553e-05/0.3013, allocations: 15.92 kB / 0.9556 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.3013, allocations: 4 kB / 0.9556 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.3013, allocations: 4 kB / 0.9556 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.282e-05/0.3014, allocations: 95.42 kB / 0.9557 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3014, allocations: 0 / 0.9557 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002671/0.3017, allocations: 20 kB / 0.9557 GB, free: 2.926 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.0001717/0.3019, allocations: 113.6 kB / 0.9558 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000285/0.3021, allocations: 79.81 kB / 0.9559 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3022, allocations: 0 / 0.9559 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.3023, allocations: 44.41 kB / 0.9559 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.3026, allocations: 13.48 kB / 0.9559 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003929/0.303, allocations: 176 kB / 0.9561 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.3033, allocations: 0.6961 MB / 0.9568 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.706e-05/0.3033, allocations: 15.44 kB / 0.9568 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of SimCode: time 2.004e-06/0.3033, allocations: 3.938 kB / 0.9568 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of Templates: time 0.002797/0.3061, allocations: 1.048 MB / 0.9578 GB, free: 0.6836 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