Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 83.73 kB / 19.76 MB, free: 2.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 161.8 kB / 23 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 177.2 MB / 203.4 MB, free: 8.941 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.958/2.958, allocations: 394.2 MB / 0.6387 GB, free: 11.93 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002431/0.002431, allocations: 72.17 kB / 1.009 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9282/0.9307, allocations: 181.8 MB / 1.187 GB, free: 16.38 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001848/0.9325, allocations: 0.73 MB / 1.187 GB, free: 15.93 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.9336, allocations: 1.081 MB / 1.188 GB, free: 15.14 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.825e-05/0.9337, allocations: 5.312 kB / 1.188 GB, free: 15.14 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.014e-05/0.9337, allocations: 4.688 kB / 1.188 GB, free: 15.14 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 6.8e-05/0.9338, allocations: 16.02 kB / 1.188 GB, free: 15.12 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002801/0.9341, allocations: 55.52 kB / 1.188 GB, free: 15.09 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.9342, allocations: 72.17 kB / 1.189 GB, free: 15.06 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.9343, allocations: 24.61 kB / 1.189 GB, free: 15.04 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.195e-05/0.9344, allocations: 30.95 kB / 1.189 GB, free: 15.03 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 6.535e-05/0.9344, allocations: 28.72 kB / 1.189 GB, free: 15.02 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.9344, allocations: 6.875 kB / 1.189 GB, free: 15.02 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.368e-05/0.9345, allocations: 17.77 kB / 1.189 GB, free: 15.01 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.817e-05/0.9345, allocations: 18.41 kB / 1.189 GB, free: 15 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 3.921e-05/0.9346, allocations: 22.27 kB / 1.189 GB, free: 14.99 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.9347, allocations: 84.06 kB / 1.189 GB, free: 14.95 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.9347, allocations: 0 / 1.189 GB, free: 14.95 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.362e-06/0.9347, allocations: 4 kB / 1.189 GB, free: 14.95 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.9348, allocations: 1.094 kB / 1.189 GB, free: 14.95 MB / 1.076 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.0004695/0.9352, allocations: 302.1 kB / 1.189 GB, free: 14.66 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.9353, allocations: 9.812 kB / 1.189 GB, free: 14.66 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.211e-05/0.9353, allocations: 8.828 kB / 1.189 GB, free: 14.66 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.794e-05/0.9354, allocations: 124.4 kB / 1.189 GB, free: 14.52 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.9354, allocations: 3.641 kB / 1.189 GB, free: 14.52 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.9354, allocations: 8.75 kB / 1.189 GB, free: 14.52 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.9356, allocations: 71.84 kB / 1.189 GB, free: 14.47 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.9356, allocations: 7.938 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.9356, allocations: 1.703 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.9356, allocations: 1.062 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.9358, allocations: 43.58 kB / 1.189 GB, free: 14.45 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005402/0.9364, allocations: 259.3 kB / 1.19 GB, free: 14.23 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.9365, allocations: 48.86 kB / 1.19 GB, free: 14.2 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.796e-05/0.9366, allocations: 31.3 kB / 1.19 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.9366, allocations: 2.938 kB / 1.19 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001803/0.9368, allocations: 73.7 kB / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.9368, allocations: 0 / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of matching and sorting (n=7): time 0.0004062/0.9372, allocations: 136.8 kB / 1.19 GB, free: 14.06 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.9373, allocations: 57.75 kB / 1.19 GB, free: 14 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.601e-05/0.9373, allocations: 127.6 kB / 1.19 GB, free: 13.88 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.9373, allocations: 30.83 kB / 1.19 GB, free: 13.85 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.341e-05/0.9374, allocations: 88.09 kB / 1.19 GB, free: 13.76 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.9374, allocations: 24.17 kB / 1.19 GB, free: 13.74 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/0.9374, allocations: 26.62 kB / 1.19 GB, free: 13.72 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.9375, allocations: 327.7 kB / 1.19 GB, free: 13.4 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.9376, allocations: 31.36 kB / 1.191 GB, free: 13.39 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.9377, allocations: 75.03 kB / 1.191 GB, free: 13.32 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.9379, allocations: 108.3 kB / 1.191 GB, free: 13.25 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.9379, allocations: 0 / 1.191 GB, free: 13.25 MB / 1.076 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003112/0.9382, allocations: 127.2 kB / 1.191 GB, free: 13.19 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.9383, allocations: 6 kB / 1.191 GB, free: 13.19 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.9383, allocations: 1.406 kB / 1.191 GB, free: 13.19 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.9383, allocations: 3.031 kB / 1.191 GB, free: 13.19 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.9384, allocations: 21.08 kB / 1.191 GB, free: 13.18 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.9384, allocations: 3.312 kB / 1.191 GB, free: 13.18 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.562e-05/0.9385, allocations: 15.73 kB / 1.191 GB, free: 13.18 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.9385, allocations: 9.906 kB / 1.191 GB, free: 13.17 MB / 1.076 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 5.867e-05/0.9386, allocations: 125.4 kB / 1.191 GB, free: 13.05 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.362e-05/0.9386, allocations: 7.391 kB / 1.191 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.466e-05/0.9386, allocations: 11.42 kB / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.9386, allocations: 2 kB / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.9386, allocations: 0 / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.9386, allocations: 0.6562 kB / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003902/0.939, allocations: 320.2 kB / 1.191 GB, free: 12.76 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.939, allocations: 9.859 kB / 1.191 GB, free: 12.75 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.523e-05/0.9391, allocations: 7.391 kB / 1.191 GB, free: 12.75 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.9391, allocations: 1.188 kB / 1.191 GB, free: 12.75 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.9391, allocations: 1.953 kB / 1.191 GB, free: 12.75 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.9391, allocations: 80 / 1.191 GB, free: 12.75 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.9391, allocations: 8.594 kB / 1.191 GB, free: 12.75 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000256/0.9393, allocations: 202.1 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.129e-05/0.9393, allocations: 6.797 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/0.9394, allocations: 5.406 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.567e-05/0.9394, allocations: 11.45 kB / 1.192 GB, free: 12.58 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.9395, allocations: 4.391 kB / 1.192 GB, free: 12.58 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.9395, allocations: 10.47 kB / 1.192 GB, free: 12.57 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.637e-05/0.9395, allocations: 92.19 kB / 1.192 GB, free: 12.5 MB / 1.076 GB Notification: Performance of sort global known variables: time 9.1e-08/0.9395, allocations: 0 / 1.192 GB, free: 12.5 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000263/0.9398, allocations: 18.14 kB / 1.192 GB, free: 12.49 MB / 1.076 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.0001013/0.9399, allocations: 98.66 kB / 1.192 GB, free: 12.41 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002736/0.9402, allocations: 80.8 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9402, allocations: 1.125 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.9403, allocations: 36.88 kB / 1.192 GB, free: 12.37 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.9405, allocations: 12.36 kB / 1.192 GB, free: 12.37 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003072/0.9409, allocations: 159.8 kB / 1.192 GB, free: 12.23 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.043e-05/0.9409, allocations: 80.81 kB / 1.192 GB, free: 12.15 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.354e-05/0.9409, allocations: 9.344 kB / 1.192 GB, free: 12.14 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.745e-05/0.941, allocations: 13.77 kB / 1.192 GB, free: 12.14 MB / 1.076 GB Notification: Performance of SimCode: time 2.8e-07/0.941, allocations: 1.031 kB / 1.192 GB, free: 12.14 MB / 1.076 GB Notification: Performance of Templates: time 0.003781/0.9447, allocations: 1.011 MB / 1.193 GB, free: 12.01 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.106130625936203]