Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001912/0.001912, allocations: 105.2 kB / 16.27 MB, free: 6.059 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.002107/0.002107, allocations: 187.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.395/1.395, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.446/2.446, allocations: 437 MB / 0.711 GB, free: 4.539 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001626, allocations: 72.59 kB / 0.8699 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3356, allocations: 151.6 MB / 1.018 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002695/0.3383, allocations: 0.7541 MB / 1.019 GB, free: 9.918 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001707/0.3401, allocations: 1.075 MB / 1.02 GB, free: 8.828 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.471e-05/0.3402, allocations: 4 kB / 1.02 GB, free: 8.824 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.971e-05/0.3402, allocations: 3.938 kB / 1.02 GB, free: 8.82 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.58e-05/0.3404, allocations: 11.86 kB / 1.02 GB, free: 8.809 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003871/0.3408, allocations: 55.81 kB / 1.02 GB, free: 8.754 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.3409, allocations: 71.84 kB / 1.02 GB, free: 8.684 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.341, allocations: 24.09 kB / 1.02 GB, free: 8.656 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.554e-05/0.3411, allocations: 27.91 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.269e-05/0.3412, allocations: 31.91 kB / 1.02 GB, free: 8.598 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.3412, allocations: 7.938 kB / 1.02 GB, free: 8.59 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.172e-05/0.3413, allocations: 19.98 kB / 1.02 GB, free: 8.57 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.298e-05/0.3414, allocations: 15.98 kB / 1.02 GB, free: 8.555 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.346e-05/0.3414, allocations: 39.78 kB / 1.02 GB, free: 8.516 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.3416, allocations: 71.81 kB / 1.02 GB, free: 8.445 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3416, allocations: 0 / 1.02 GB, free: 8.445 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.726e-06/0.3417, allocations: 4 kB / 1.02 GB, free: 8.441 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.586e-06/0.3417, allocations: 0 / 1.02 GB, free: 8.441 MB / 0.795 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.0006678/0.3423, allocations: 387.3 kB / 1.021 GB, free: 8.016 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3424, allocations: 12.92 kB / 1.021 GB, free: 8.004 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.998e-05/0.3425, allocations: 8.781 kB / 1.021 GB, free: 7.996 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.3426, allocations: 168.3 kB / 1.021 GB, free: 7.793 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.3427, allocations: 12.38 kB / 1.021 GB, free: 7.781 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.3427, allocations: 4.375 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.3429, allocations: 70.16 kB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.3429, allocations: 3.938 kB / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.343, allocations: 4 kB / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.343, allocations: 3.938 kB / 1.021 GB, free: 7.691 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.3432, allocations: 39.95 kB / 1.021 GB, free: 7.652 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007737/0.344, allocations: 328.7 kB / 1.021 GB, free: 7.281 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/0.3442, allocations: 54.59 kB / 1.021 GB, free: 7.219 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.3443, allocations: 36.95 kB / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.3443, allocations: 4 kB / 1.021 GB, free: 7.176 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002487/0.3446, allocations: 79.36 kB / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.3446, allocations: 0 / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004787/0.3451, allocations: 129.5 kB / 1.021 GB, free: 6.953 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/0.3452, allocations: 59.41 kB / 1.021 GB, free: 6.883 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.3453, allocations: 117.8 kB / 1.022 GB, free: 6.758 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.3453, allocations: 37.69 kB / 1.022 GB, free: 6.715 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.041e-05/0.3454, allocations: 88.05 kB / 1.022 GB, free: 6.625 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/0.3454, allocations: 19.75 kB / 1.022 GB, free: 6.605 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.466e-05/0.3455, allocations: 25.7 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.3456, allocations: 326.8 kB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.3458, allocations: 31.98 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.3459, allocations: 77.91 kB / 1.022 GB, free: 6.117 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002731/0.3462, allocations: 105.9 kB / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3462, allocations: 0 / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003626/0.3466, allocations: 133.4 kB / 1.022 GB, free: 5.855 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3466, allocations: 8 kB / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3466, allocations: 0 / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.3467, allocations: 4 kB / 1.022 GB, free: 5.844 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.3468, allocations: 19.92 kB / 1.022 GB, free: 5.824 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.3468, allocations: 4 kB / 1.022 GB, free: 5.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.708e-05/0.3469, allocations: 11.98 kB / 1.022 GB, free: 5.809 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.3469, allocations: 8.219 kB / 1.022 GB, free: 5.801 MB / 0.795 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.0001047/0.3471, allocations: 117.8 kB / 1.023 GB, free: 5.676 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.525e-05/0.3471, allocations: 7.906 kB / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.233e-05/0.3471, allocations: 16.36 kB / 1.023 GB, free: 5.648 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3471, allocations: 0 / 1.023 GB, free: 5.648 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3471, allocations: 0 / 1.023 GB, free: 5.648 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3471, allocations: 0 / 1.023 GB, free: 5.648 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000536/0.3477, allocations: 374.4 kB / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3477, allocations: 3.984 kB / 1.023 GB, free: 5.223 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.582e-05/0.3478, allocations: 7.938 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.3478, allocations: 3.984 kB / 1.023 GB, free: 5.211 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.3478, allocations: 8 kB / 1.023 GB, free: 5.203 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3478, allocations: 3.938 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3478, allocations: 7.922 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.3481, allocations: 203.8 kB / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.3482, allocations: 88.95 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.3482, allocations: 3.984 kB / 1.023 GB, free: 4.867 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.548e-05/0.3483, allocations: 7.938 kB / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.027e-05/0.3484, allocations: 11.98 kB / 1.023 GB, free: 4.848 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.3484, allocations: 0 / 1.023 GB, free: 4.848 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.778e-05/0.3484, allocations: 91.27 kB / 1.023 GB, free: 4.758 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.473e-06/0.3484, allocations: 4 kB / 1.023 GB, free: 4.754 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002794/0.3487, allocations: 19.94 kB / 1.023 GB, free: 4.734 MB / 0.795 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.0001919/0.3489, allocations: 106.1 kB / 1.023 GB, free: 4.625 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003313/0.3493, allocations: 83.81 kB / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3493, allocations: 448 / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.3494, allocations: 39.97 kB / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.3497, allocations: 10.64 kB / 1.024 GB, free: 4.496 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004694/0.3502, allocations: 187.9 kB / 1.024 GB, free: 4.277 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.3505, allocations: 0.6924 MB / 1.024 GB, free: 3.559 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.3506, allocations: 11.44 kB / 1.024 GB, free: 3.547 MB / 0.795 GB Notification: Performance of SimCode: time 2.21e-07/0.3506, allocations: 0 / 1.024 GB, free: 3.547 MB / 0.795 GB Notification: Performance of Templates: time 0.003161/0.3537, allocations: 1.037 MB / 1.025 GB, free: 2.523 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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