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.001081/0.001081, allocations: 99.58 kB / 16.02 MB, free: 76 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.0015/0.001501, allocations: 187.1 kB / 16.92 MB, free: 6.75 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.539/1.539, allocations: 223.3 MB / 241 MB, free: 5.32 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.486/2.486, allocations: 390.9 MB / 0.667 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0006626/0.0006628, allocations: 16 kB / 0.8167 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8353/0.836, allocations: 142.4 MB / 0.9557 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0009674/0.837, allocations: 486.7 kB / 0.9562 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001248/0.8383, allocations: 1.062 MB / 0.9572 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.467e-05/0.8383, allocations: 0 / 0.9572 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.838e-05/0.8383, allocations: 5.344 kB / 0.9572 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.896e-05/0.8384, allocations: 8.891 kB / 0.9572 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.8387, allocations: 40.41 kB / 0.9573 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.641e-05/0.8388, allocations: 72.12 kB / 0.9574 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.8389, allocations: 19.75 kB / 0.9574 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.2e-05/0.839, allocations: 25.16 kB / 0.9574 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.337e-05/0.8391, allocations: 30 kB / 0.9574 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.8391, allocations: 2.625 kB / 0.9574 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.8392, allocations: 15.97 kB / 0.9574 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.098e-05/0.8392, allocations: 19.03 kB / 0.9575 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.875e-05/0.8392, allocations: 48.47 kB / 0.9575 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.955e-05/0.8393, allocations: 53.11 kB / 0.9576 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.8394, allocations: 4 kB / 0.9576 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.973e-06/0.8394, allocations: 1 kB / 0.9576 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.8394, allocations: 0 / 0.9576 GB, free: 6.293 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.0004729/0.8399, allocations: 367.2 kB / 0.9579 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.8399, allocations: 8.812 kB / 0.9579 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.84, allocations: 9.094 kB / 0.9579 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.077e-05/0.8401, allocations: 179.8 kB / 0.9581 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.8401, allocations: 10.88 kB / 0.9581 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.8401, allocations: 3.469 kB / 0.9581 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.8403, allocations: 75.36 kB / 0.9582 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.8403, allocations: 7.875 kB / 0.9582 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.8403, allocations: 3.984 kB / 0.9582 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.8404, allocations: 2.25 kB / 0.9582 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.8405, allocations: 57.31 kB / 0.9583 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005779/0.8411, allocations: 336.6 kB / 0.9586 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.8413, allocations: 56.27 kB / 0.9586 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.8414, allocations: 40.59 kB / 0.9587 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.8415, allocations: 1.438 kB / 0.9587 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.8417, allocations: 82.41 kB / 0.9587 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.8417, allocations: 0 / 0.9587 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004347/0.8421, allocations: 151.5 kB / 0.9589 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.8422, allocations: 52.44 kB / 0.9589 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.44e-05/0.8423, allocations: 126 kB / 0.9591 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.8423, allocations: 25.7 kB / 0.9591 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.228e-05/0.8423, allocations: 94.89 kB / 0.9592 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.8423, allocations: 14.45 kB / 0.9592 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.8424, allocations: 18.84 kB / 0.9592 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.651e-05/0.8424, allocations: 324 kB / 0.9595 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.8426, allocations: 29.11 kB / 0.9595 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.8427, allocations: 86.97 kB / 0.9596 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.8429, allocations: 117.8 kB / 0.9597 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.8429, allocations: 0 / 0.9597 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002963/0.8432, allocations: 143.4 kB / 0.9599 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.8433, allocations: 5.875 kB / 0.9599 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.8433, allocations: 5.438 kB / 0.9599 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.8433, allocations: 3.031 kB / 0.9599 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.8434, allocations: 21.77 kB / 0.9599 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.8434, allocations: 6.688 kB / 0.9599 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.546e-05/0.8435, allocations: 19.77 kB / 0.9599 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.8436, allocations: 4.594 kB / 0.9599 GB, free: 4.102 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.788e-05/0.8436, allocations: 125.4 kB / 0.9601 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.22e-05/0.8436, allocations: 10.62 kB / 0.9601 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.568e-05/0.8437, allocations: 13.3 kB / 0.9601 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.8437, allocations: 1.062 kB / 0.9601 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.8437, allocations: 1.219 kB / 0.9601 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.8437, allocations: 3.984 kB / 0.9601 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003912/0.8441, allocations: 383.1 kB / 0.9605 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.8441, allocations: 3.984 kB / 0.9605 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.216e-05/0.8442, allocations: 12.19 kB / 0.9605 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.8442, allocations: 0 / 0.9605 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.8442, allocations: 5.312 kB / 0.9605 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.8442, allocations: 4.328 kB / 0.9605 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.8442, allocations: 5.359 kB / 0.9605 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002558/0.8445, allocations: 214.5 kB / 0.9607 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.584e-05/0.8445, allocations: 82.39 kB / 0.9608 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.8445, allocations: 5.359 kB / 0.9608 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-05/0.8446, allocations: 14.81 kB / 0.9608 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.783e-05/0.8447, allocations: 6.734 kB / 0.9608 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.8447, allocations: 1.375 kB / 0.9608 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.649e-05/0.8447, allocations: 96.89 kB / 0.9609 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8447, allocations: 0 / 0.9609 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002479/0.845, allocations: 12.38 kB / 0.9609 GB, free: 3.199 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.0001328/0.8451, allocations: 105.2 kB / 0.961 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002738/0.8454, allocations: 93.5 kB / 0.9611 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.8454, allocations: 0 / 0.9611 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.8455, allocations: 42.53 kB / 0.9611 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.8458, allocations: 11.86 kB / 0.9611 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003323/0.8461, allocations: 212 kB / 0.9613 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.8463, allocations: 0.693 MB / 0.962 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.8463, allocations: 11.56 kB / 0.962 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8463, allocations: 0 / 0.962 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of Templates: time 0.002597/0.8489, allocations: 1.034 MB / 0.963 GB, free: 1.609 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