Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.987/1.987, allocations: 306.1 MB / 321.4 MB, free: 10.72 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009998/0.001, allocations: 179.3 kB / 393.1 MB, free: 4.086 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.611/1.611, allocations: 225.7 MB / 0.6743 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008454/0.0008458, allocations: 88.64 kB / 0.7935 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004448/0.000445, allocations: 8 kB / 0.9224 GB, free: 8.645 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7201/0.7206, allocations: 121.3 MB / 1.041 GB, free: 58.62 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00112/0.7218, allocations: 475.6 kB / 1.041 GB, free: 58.36 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.7231, allocations: 1.132 MB / 1.042 GB, free: 57.49 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.756e-05/0.7231, allocations: 0 / 1.042 GB, free: 57.49 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.747e-05/0.7231, allocations: 5.312 kB / 1.042 GB, free: 57.48 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 9.556e-05/0.7232, allocations: 5.312 kB / 1.042 GB, free: 57.48 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003209/0.7236, allocations: 45.78 kB / 1.043 GB, free: 57.46 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.7237, allocations: 71.97 kB / 1.043 GB, free: 57.42 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.7238, allocations: 20.42 kB / 1.043 GB, free: 57.41 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 8.757e-05/0.7239, allocations: 21.88 kB / 1.043 GB, free: 57.4 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 7.241e-05/0.724, allocations: 27.55 kB / 1.043 GB, free: 57.39 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.724, allocations: 1.375 kB / 1.043 GB, free: 57.39 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.426e-05/0.7241, allocations: 18.45 kB / 1.043 GB, free: 57.39 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.7e-05/0.7241, allocations: 13.5 kB / 1.043 GB, free: 57.38 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 6.648e-05/0.7242, allocations: 53.2 kB / 1.043 GB, free: 57.33 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001581/0.7244, allocations: 72.66 kB / 1.043 GB, free: 57.31 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.7244, allocations: 0.7812 kB / 1.043 GB, free: 57.31 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.705e-06/0.7244, allocations: 1.375 kB / 1.043 GB, free: 57.31 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.7244, allocations: 0.5 kB / 1.043 GB, free: 57.31 MB / 0.698 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.0005194/0.7249, allocations: 373.5 kB / 1.043 GB, free: 56.94 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.725, allocations: 8.281 kB / 1.043 GB, free: 56.94 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.725, allocations: 9.75 kB / 1.043 GB, free: 56.93 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.004e-05/0.7251, allocations: 177.9 kB / 1.043 GB, free: 56.73 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.7252, allocations: 6.344 kB / 1.043 GB, free: 56.73 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.7252, allocations: 10.09 kB / 1.043 GB, free: 56.72 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001972/0.7254, allocations: 73.03 kB / 1.043 GB, free: 56.68 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.7254, allocations: 10 kB / 1.043 GB, free: 56.67 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.7254, allocations: 0 / 1.043 GB, free: 56.67 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.7254, allocations: 0 / 1.043 GB, free: 56.67 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.7256, allocations: 59.27 kB / 1.043 GB, free: 56.66 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005598/0.7262, allocations: 331.3 kB / 1.044 GB, free: 56.37 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.7264, allocations: 56.95 kB / 1.044 GB, free: 56.34 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.7265, allocations: 42.77 kB / 1.044 GB, free: 56.32 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.7265, allocations: 5.047 kB / 1.044 GB, free: 56.32 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002003/0.7267, allocations: 86.28 kB / 1.044 GB, free: 56.26 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.7267, allocations: 0.9375 kB / 1.044 GB, free: 56.26 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.000392/0.7271, allocations: 132.2 kB / 1.044 GB, free: 56.21 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.7272, allocations: 65.22 kB / 1.044 GB, free: 56.14 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.344e-05/0.7273, allocations: 127.2 kB / 1.044 GB, free: 56.03 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.7273, allocations: 26.64 kB / 1.044 GB, free: 56 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.533e-05/0.7273, allocations: 96.62 kB / 1.044 GB, free: 55.91 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.7274, allocations: 18.39 kB / 1.044 GB, free: 55.89 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-06/0.7274, allocations: 0 / 1.044 GB, free: 55.89 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.778e-05/0.7274, allocations: 327.5 kB / 1.045 GB, free: 55.57 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.7275, allocations: 36.08 kB / 1.045 GB, free: 55.56 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.7277, allocations: 77.48 kB / 1.045 GB, free: 55.5 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.7279, allocations: 121.2 kB / 1.045 GB, free: 55.41 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.7279, allocations: 3.656 kB / 1.045 GB, free: 55.41 MB / 0.698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002855/0.7282, allocations: 134.1 kB / 1.045 GB, free: 55.35 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.7282, allocations: 10.16 kB / 1.045 GB, free: 55.35 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.7282, allocations: 5.328 kB / 1.045 GB, free: 55.35 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.7283, allocations: 1.812 kB / 1.045 GB, free: 55.35 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.7284, allocations: 25.59 kB / 1.045 GB, free: 55.34 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.7284, allocations: 6.75 kB / 1.045 GB, free: 55.34 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.052e-05/0.7285, allocations: 14.14 kB / 1.045 GB, free: 55.33 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.7285, allocations: 6.422 kB / 1.045 GB, free: 55.33 MB / 0.698 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 7.775e-05/0.7286, allocations: 120.3 kB / 1.045 GB, free: 55.21 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.255e-05/0.7286, allocations: 8.547 kB / 1.045 GB, free: 55.21 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.7287, allocations: 15.16 kB / 1.045 GB, free: 55.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.7287, allocations: 2.062 kB / 1.045 GB, free: 55.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.7287, allocations: 0 / 1.045 GB, free: 55.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.7287, allocations: 0 / 1.045 GB, free: 55.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004211/0.7291, allocations: 390 kB / 1.046 GB, free: 54.86 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.7291, allocations: 0 / 1.046 GB, free: 54.86 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.404e-05/0.7292, allocations: 11.61 kB / 1.046 GB, free: 54.86 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.7292, allocations: 0 / 1.046 GB, free: 54.86 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.7292, allocations: 8.719 kB / 1.046 GB, free: 54.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.7292, allocations: 6.844 kB / 1.046 GB, free: 54.85 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7292, allocations: 80 / 1.046 GB, free: 54.85 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.7295, allocations: 213.1 kB / 1.046 GB, free: 54.69 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.963e-05/0.7295, allocations: 88.28 kB / 1.046 GB, free: 54.59 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.7296, allocations: 1.844 kB / 1.046 GB, free: 54.59 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.38e-05/0.7296, allocations: 14.42 kB / 1.046 GB, free: 54.59 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.58e-05/0.7297, allocations: 6.656 kB / 1.046 GB, free: 54.58 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.7297, allocations: 6.062 kB / 1.046 GB, free: 54.58 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.024e-05/0.7298, allocations: 93.92 kB / 1.046 GB, free: 54.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7298, allocations: 0 / 1.046 GB, free: 54.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002241/0.73, allocations: 14.94 kB / 1.046 GB, free: 54.5 MB / 0.698 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.0001783/0.7302, allocations: 116.1 kB / 1.046 GB, free: 54.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002866/0.7305, allocations: 92.66 kB / 1.046 GB, free: 54.38 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7305, allocations: 0 / 1.046 GB, free: 54.38 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.7306, allocations: 33.83 kB / 1.046 GB, free: 54.38 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.7309, allocations: 17.34 kB / 1.046 GB, free: 54.37 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003752/0.7313, allocations: 185.6 kB / 1.047 GB, free: 54.21 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001373/0.7314, allocations: 0.6884 MB / 1.047 GB, free: 53.52 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.387e-05/0.7314, allocations: 12.75 kB / 1.047 GB, free: 53.51 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.814e-05/0.7315, allocations: 14.72 kB / 1.047 GB, free: 53.5 MB / 0.698 GB Notification: Performance of SimCode: time 2.2e-07/0.7315, allocations: 0 / 1.047 GB, free: 53.5 MB / 0.698 GB Notification: Performance of Templates: time 0.003253/0.7347, allocations: 0.8632 MB / 1.048 GB, free: 53.42 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (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=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1)